ammo working through weapon manager

This commit is contained in:
derek
2024-07-15 13:21:13 -05:00
parent 06b8229db1
commit f2ff68b7fa
5 changed files with 659 additions and 19 deletions

View File

@@ -29,7 +29,7 @@ func _ready():
player.ammo = player.gun.max_ammo
player.ammo_reserve = player.gun.max_ammo * player.gun.start_mags
player.gun_fire_pitch_starting = player.gun.audio_fire.pitch_scale
current_gun_index = 0
instance_gun.gun_index = 0
player.weapon_holder.add_child(instance_gun)
# Called every frame. 'delta' is the elapsed time since the previous frame.