Merge task #17: Propane Torch sprays a band of fire
Band hit test from the scarecrow along the aim (torch_width, longer torch_range), a particle flame held lit while firing (and on the partner's screen via attack events), reusable held-effect pattern in WeaponModels, torch roar cue. Resolved farm_audio.gd header with #19. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
51b553bba8
12 changed files with 483 additions and 37 deletions
|
|
@ -4,7 +4,8 @@ extends Node3D
|
|||
## stingers and outcomes; SFX: everything else; Ambience: the day and night loops). FarmSim
|
||||
## creates it and setup() connects it to the farm's systems:
|
||||
## * scarecrow: footsteps, its weapons (a pitchfork's whoosh and what it strikes, corn shots,
|
||||
## a pumpkin bomb's toss and burst), hurt, fall, fear and fear ready, patching and patched
|
||||
## the propane torch's roar, a pumpkin bomb's toss and burst), hurt, fall, fear and fear
|
||||
## ready, patching and patched
|
||||
## * enemies: crow caws and thieves' / fence breakers' / UFOs' arrivals (from where they come
|
||||
## in), hits and deaths by type
|
||||
## * theft: grabbed, dropped, recovered, carried off (with an alarm tone), animals following
|
||||
|
|
@ -41,6 +42,8 @@ const CUES := {
|
|||
"step": {"files": ["kenney/impact/footstep_grass_00*.ogg"], "db": -15.0, "pitch": 0.08},
|
||||
"shot": {"files": ["kenney/interface/pluck_00*.ogg"], "db": -9.0, "pitch": 0.12, "max": 3},
|
||||
"stab": {"files": ["synth/pitchfork_whoosh.wav"], "db": -6.0, "pitch": 0.12, "max": 3},
|
||||
# The Propane Torch: one roar per tick, each longer than a tick, so a held torch roars on.
|
||||
"burn": {"files": ["synth/torch_roar.wav"], "db": -7.0, "pitch": 0.08, "gap": 0.1, "max": 3},
|
||||
"throw": {"files": ["kenney/rpg/cloth*.ogg"], "db": -4.0, "pitch": 0.1},
|
||||
"boom": {"files": ["synth/pumpkin_boom.wav"], "db": 0.0, "pitch": 0.08, "gap": 0.05, "max": 4},
|
||||
"hurt": {"files": ["kenney/impact/impactSoft_heavy_00*.ogg"], "db": -1.0, "pitch": 0.1, "gap": 0.1},
|
||||
|
|
@ -299,6 +302,7 @@ func _wire_weapons(combat: ScarecrowCombat, at: Callable) -> void:
|
|||
var where := func() -> Vector3: return at.call() if at.is_valid() else Vector3.INF
|
||||
combat.fired.connect(func() -> void: play("shot", where.call()))
|
||||
combat.stabbed.connect(func(_n: int) -> void: play("stab", where.call()))
|
||||
combat.burned.connect(func(_n: int) -> void: play("burn", where.call()))
|
||||
combat.struck.connect(func(p: Vector3, type: int) -> void: play("hit_crow" if type == EnemySystem.TYPE_CROW else "hit", p))
|
||||
combat.threw.connect(func(_to: Vector3) -> void: play("throw", where.call()))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue