crouch fixed

This commit is contained in:
Rendo 2025-11-26 23:04:24 +05:00
commit 276ff0252b
11 changed files with 167 additions and 115 deletions

View file

@ -8,7 +8,7 @@ func enter() -> void:
func exit() -> void:
pass
func _input(event: InputEvent) -> void:
func state_input(event: InputEvent) -> void:
if not machine.is_multiplayer_authority(): return
if event.is_action_pressed("plr_reload"):

View file

@ -84,6 +84,9 @@ func _physics_process(delta: float) -> void:
func _input(event: InputEvent) -> void:
if is_multiplayer_authority() == false: return
if current_state != null:
current_state.state_input(event)
if event.is_action_pressed("plr_ult"):
switch("ultimate")
elif event.is_action_pressed("plr_bomb"):