Start of rewind system
This commit is contained in:
parent
a293242cb7
commit
42c95820d7
16 changed files with 55 additions and 33 deletions
|
|
@ -218,17 +218,17 @@ func _physics_process(delta: float) -> void:
|
|||
return
|
||||
current_state.physics_update(delta)
|
||||
|
||||
func use_begin() -> void:
|
||||
func use_begin(timestamp: float) -> void:
|
||||
if not multiplayer.is_server() or Session.round_state == Session.ROUND_STATES.BUY or disabled:
|
||||
return
|
||||
if current_state != null:
|
||||
current_state.use_begin()
|
||||
current_state.use_begin(timestamp)
|
||||
|
||||
func use_end() -> void:
|
||||
func use_end(timestamp: float) -> void:
|
||||
if not multiplayer.is_server() or Session.round_state == Session.ROUND_STATES.BUY or disabled:
|
||||
return
|
||||
if current_state != null:
|
||||
current_state.use_end()
|
||||
current_state.use_end(timestamp)
|
||||
|
||||
func alternate_state() -> void:
|
||||
if not multiplayer.is_server() or Session.round_state == Session.ROUND_STATES.BUY or disabled:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue