improved recoil, fixing bounce
This commit is contained in:
@@ -157,7 +157,8 @@ func fire(delta):
|
||||
instance_bullet.player_velocity = (player.velocity * player.transform.basis)
|
||||
instance_bullet.instance_bullethole = bullethole.instantiate()
|
||||
get_tree().get_root().add_child(instance_bullet)
|
||||
player.recoil.add_recoil(recoil_amount,10,recoil_speed_change)
|
||||
player.recoil.add_recoil(Vector3(0,recoil_amount.y,recoil_amount.z),10,recoil_speed_change)
|
||||
player.recoil.add_gun_recoil(recoil_amount.x)
|
||||
chamber.rotate_object_local(Vector3(0,-1,0),deg_to_rad(60))
|
||||
|
||||
func reload(delta):
|
||||
|
||||
Reference in New Issue
Block a user