Started fps system
This commit is contained in:
parent
0dc6247f91
commit
cc26793ab6
32 changed files with 2756 additions and 11 deletions
25
scripts/weapon_system/usable.gd
Normal file
25
scripts/weapon_system/usable.gd
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue