Defuse win

This commit is contained in:
Rendo 2025-11-30 02:06:44 +05:00
commit 8535dba9cd
10 changed files with 151 additions and 21 deletions

View file

@ -3,11 +3,12 @@ extends Node
class_name PlayerMovement
@export var player: Player
var disabled: bool
func process_movement(max_speed: float,acceleration: float,deceleration: float,delta: float) -> void:
if is_multiplayer_authority() == false:
return
if Session.round_state == Session.ROUND_STATES.BUY:
if Session.round_state == Session.ROUND_STATES.BUY or disabled or player.passived:
player.velocity.x = 0
player.velocity.z = 0
return