This commit is contained in:
Nicholas Butzke
2026-08-02 02:20:02 -04:00
parent 61669627db
commit 922983429e
226 changed files with 34032 additions and 18521 deletions
+4 -2
View File
@@ -26,7 +26,8 @@ static func _flat_mat(color: Color, emissive: float = 0.0) -> StandardMaterial3D
return m
static func spawn(scene_tree: SceneTree, pos: Vector3, radius: float) -> void:
static func spawn(scene_tree: SceneTree, pos: Vector3, radius: float,
pitch_scale: float = 1.0) -> void:
var root := scene_tree.current_scene
if root == null:
return
@@ -127,7 +128,8 @@ static func spawn(scene_tree: SceneTree, pos: Vector3, radius: float) -> void:
# ── Audio: explosion samples with variation ───────────────────────────
var am = scene_tree.root.get_node_or_null("AudioManager")
if am and am.has_sound("explosion"):
am.play_3d("explosion", pos)
var size_db := clampf((radius - 2.5) * 0.42, -2.5, 2.5)
am.play_3d("explosion", pos, size_db, clampf(pitch_scale, 0.72, 1.15))
## Comic star-flash at a weapon muzzle: 4 flat spikes + hot core, parented to