built single-resource based script for weapons, most are broken right now
This commit is contained in:
@@ -83,7 +83,6 @@ func shoot(delta):
|
||||
if !anim_player.is_playing():
|
||||
GameGlobals.gun_ammo[gun_name] -= 1
|
||||
#RECOIL --- fix later to happen over a period of time
|
||||
#(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()
|
||||
anim_player.play("shoot")
|
||||
|
||||
Reference in New Issue
Block a user