feat: add Rocket Swarm, Mortar, and BouncingProjectile weapon types

This commit is contained in:
DottsGit
2026-06-04 18:17:34 -04:00
parent e6a2199777
commit 09103ce366
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ extends ExplosiveProjectile
class_name BouncingProjectile
var fuse_time: float = -1.0 # -1 means no fuse started yet
var bounce_fuse_delay: float = 3.0 # How long to wait after bouncing
var impact_detonate_time: float = 2.0
var bounciness: float = 0.4
var flight_time: float = 0.0
@@ -41,7 +42,7 @@ func _physics_process(delta: float) -> void:
# Start the fuse if it hasn't started
if fuse_time < 0.0:
fuse_time = 3.0 # Explode 3 seconds after the first bounce
fuse_time = bounce_fuse_delay
# If it hits an entity directly, still bounce, it's a heavy mortar shell!
else: