feat: added explosion sounds
This commit is contained in:
@@ -83,5 +83,6 @@ func _spawn_custom_projectile(origin: Vector3, fire_dir: Vector3) -> void:
|
||||
proj.falloff_curve = 2.0 # Steep dropoff: "Should be an instant kill in closest 50%"
|
||||
# (0-50% = dist<6. 6/12 = 0.5. 1.0 - 0.5^2 = 0.75 multiplier. 200 * 0.75 = 150 damage -> 1 shot kill)
|
||||
proj.can_self_damage = true # Can self damage
|
||||
proj.explosion_pitch = 0.4 # Deepest explosion
|
||||
|
||||
get_tree().current_scene.add_child(proj)
|
||||
|
||||
Reference in New Issue
Block a user