Recoil system
This commit is contained in:
parent
1c062489b1
commit
cdfce4c7db
11 changed files with 144 additions and 8 deletions
|
|
@ -34,6 +34,7 @@ func fire() -> void:
|
|||
raycast.get_collider().hp -= damage
|
||||
|
||||
fire_timer.start()
|
||||
machine.player_camera.recoil(0,0.1)
|
||||
|
||||
func with_morphems(animation):
|
||||
return machine.animation_prefix + ((animation+"_empty") if emptyable and machine.ammo == 0 else animation)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue