From e8af70b198fd911c7e7c84ef3a000b3a068aad87 Mon Sep 17 00:00:00 2001 From: Rendo Date: Fri, 12 Dec 2025 01:48:28 +0500 Subject: [PATCH] Players shouldn't be allowed to shoot during buy phase --- systems/weapon_system/weapon_system.gd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/systems/weapon_system/weapon_system.gd b/systems/weapon_system/weapon_system.gd index b712147..ef2832e 100644 --- a/systems/weapon_system/weapon_system.gd +++ b/systems/weapon_system/weapon_system.gd @@ -184,17 +184,25 @@ func _physics_process(delta: float) -> void: current_state.physics_update(delta) func use_begin() -> void: + if Session.round_state == Session.ROUND_STATES.BUY: + return if current_state != null: current_state.use_begin() func use_end() -> void: + if Session.round_state == Session.ROUND_STATES.BUY: + return if current_state != null: current_state.use_end() func alternate_state() -> void: + if Session.round_state == Session.ROUND_STATES.BUY: + return if current_state != null: current_state.alternate_state() func switch_mode() -> void: + if Session.round_state == Session.ROUND_STATES.BUY: + return if current_state != null: current_state.switch_mode()