Started fps system

This commit is contained in:
Rendo 2025-11-24 04:44:42 +05:00
commit cc26793ab6
32 changed files with 2756 additions and 11 deletions

View file

@ -0,0 +1,25 @@
@abstract
extends Node
class_name Usable
var system: WeaponSystem
var in_use: bool = false
@rpc("authority","call_local","reliable")
@abstract func use_begin() -> void
@rpc("authority","call_local","reliable")
@abstract func use_end() -> void
@abstract func alternate_state() -> void
# Need to clarify naming; Switch mode like firemode. For different states use
# alternate_state
@abstract func switch_mode() -> void
func enter() -> void:
pass
func exit() -> void:
pass
func update(_delta: float) -> void:
pass
func physics_update(_delta: float) -> void:
pass