Removed revolver kickback for now

This commit is contained in:
derek
2024-11-18 09:58:55 -06:00
parent 4e0f977d1d
commit 6d1a416a6b

View File

@@ -134,7 +134,7 @@ func shoot(delta):
audio_fire.pitch_scale = 1 + rng.randf_range(-fire_pitch_scale_amt,fire_pitch_scale_amt) audio_fire.pitch_scale = 1 + rng.randf_range(-fire_pitch_scale_amt,fire_pitch_scale_amt)
audio_fire.play() audio_fire.play()
anim_player.play("shoot") #actual bullet spawn triggered by animation anim_player.play("shoot") #actual bullet spawn triggered by animation
player.velocity += player.bullet_ray.global_basis * Vector3(0,0, kick_amount) #knocks player back, use on bigger guns player.velocity += player.bullet_ray.global_basis * Vector3(0,0, kick_amount)
if fire_mode != 0: if fire_mode != 0:
cycle_count -= 1 cycle_count -= 1