More work on pawn select sounds and controls.

This commit is contained in:
2026-01-02 03:25:41 -05:00
parent b4910013c0
commit 9fe376e27e
21 changed files with 351 additions and 17 deletions

View File

@@ -30,6 +30,7 @@ const bomb_explosion_template = preload("res://templates/explosion.tscn")
const mine_explosion_template = preload("res://templates/explosion.tscn")
const switch_explosion_template = preload("res://templates/explosion.tscn")
const gas_emitter_template = preload("res://templates/gas_emitter.tscn")
const force_activate_sound = preload("res://audio/sounds/TomWinandySFX_UI_ScifiTech_Start_06.wav")
@onready var range_area : Area3D = %RangeArea
@onready var range_shape : BoxShape3D = %RangeShape.shape
@@ -107,7 +108,7 @@ func _ready() -> void:
Type.FORCE_PANEL:
var r : float = atan2(direction.z, -direction.x) + PI/2
force_strip.rotate_y(r)
force_strip.visible = true
force_strip.visible = owns_trap
func _process(delta: float) -> void:
just_revealed = false
@@ -119,6 +120,7 @@ func activate() -> void:
var explode : bool = false
match(type):
Type.FORCE_PANEL:
Game.oneshot(force_activate_sound)
for body in get_overlapping_bodies():
body.fling(direction, 5.0)
Type.MINE: