Seems more reliable than the original method but not perfect
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user