FINISHED DAMN DROP SYSTEM

This commit is contained in:
Rendo 2025-11-28 18:03:30 +05:00
commit 100afe5e51
17 changed files with 151 additions and 25 deletions

View file

@ -15,11 +15,12 @@ func state_input(event: InputEvent) -> void:
init_reload.rpc()
func use_begin() -> void:
transition.emit("Shoot")
if machine.ammo > 0:
transition.emit("Shoot")
@rpc("authority","call_local","reliable")
func init_reload():
if machine.ammo == machine.max_ammo:
if machine.ammo == machine.max_ammo or machine.remaining_ammo <= 0:
return
transition.emit("Reload")