Merge branch 'master' of github.com:unfa/liblast
This commit is contained in:
commit
0563d5a155
2 changed files with 7 additions and 0 deletions
|
@ -365,6 +365,8 @@ func spawn():
|
|||
|
||||
sync func unset_death():
|
||||
is_dead = false
|
||||
for i in $Camera/Hand/Weapons.get_children():
|
||||
i.reset()
|
||||
|
||||
func shoot():
|
||||
# The underscore indicates an unused variable.
|
||||
|
|
|
@ -163,6 +163,11 @@ func reload():
|
|||
current_rounds = Rounds
|
||||
|
||||
emit_signal("ammo_changed", self)
|
||||
|
||||
func reset():
|
||||
currently_fireing = false
|
||||
current_rounds = Rounds
|
||||
emit_signal("ammo_changed", self)
|
||||
|
||||
sync func play_reload_animation():
|
||||
$Model/AnimationPlayer.play("Reload", 0.5, 1)
|
||||
|
|
Reference in a new issue