revolver tweaks

This commit is contained in:
Derek
2024-07-15 23:14:22 -05:00
parent fcd54563a2
commit fe32a00140
3 changed files with 24 additions and 13 deletions

View File

@@ -85,7 +85,6 @@ func shoot(player,delta):
level_control.ammo_current[gun_index] -= 1
#RECOIL --- fix later to happen over a period of time
#player.camera.rotation.x = clamp(lerp(player.camera.rotation.x, player.camera.rotation.x + recoil_amount, delta * 10), deg_to_rad(-90), deg_to_rad(60))
player.weapon_recoil(delta)
#(ADD PLAYER KICK HERE. RELATIVE TO GUN POSITION)
audio_fire.pitch_scale = 1 + rng.randf_range(-fire_pitch_scale_amt,fire_pitch_scale_amt)
audio_fire.play()
@@ -104,8 +103,9 @@ func shoot(player,delta):
instance_bullet.instance_bullethole = bullethole.instantiate()
instance_bullet.gun = self
get_tree().get_root().add_child(instance_bullet)
player.weapon_recoil(delta)
# chamberspin transform
#chamber.rotate.x =
#DO SOMETHING HERE
if fire_mode != 0:
cycle_count -= 1