feat: add Rocket Swarm, Mortar, and BouncingProjectile weapon types
This commit is contained in:
+2
-1
@@ -68,7 +68,8 @@ func _spawn_custom_projectile(origin: Vector3, fire_dir: Vector3) -> void:
|
||||
proj.owner_player = player
|
||||
|
||||
# Mortar Bouncing logic
|
||||
proj.fuse_time = 3.0 # Explodes 3 seconds after launch if it bounces
|
||||
proj.fuse_time = -1.0 # Don't start ticking until it bounces
|
||||
proj.bounce_fuse_delay = 3.0 # Explodes 3 seconds after first bounce
|
||||
proj.impact_detonate_time = 2.0 # If flying > 2s, explode on impact instead
|
||||
proj.bounciness = 0.4 # Heavy, loses momentum on bounce
|
||||
|
||||
|
||||
Reference in New Issue
Block a user