Seems more reliable than the original method but not perfect

This commit is contained in:
derek
2024-10-29 16:18:39 -05:00
parent 7bf8a0744b
commit 00aa8db85d
10 changed files with 27 additions and 21 deletions

View File

@@ -156,7 +156,7 @@ func fire(delta):
instance_bullet.player_velocity = player.velocity
instance_bullet.instance_bullethole = bullethole.instantiate()
get_tree().get_root().add_child(instance_bullet)
player.recoil.add_recoil(recoil_amount)
player.recoil.add_recoil(recoil_amount,10,10)
chamber.rotate_object_local(Vector3(0,-1,0),deg_to_rad(60))
func reload(delta):