built single-resource based script for weapons, most are broken right now

This commit is contained in:
derek
2025-03-03 15:33:59 -06:00
parent 3e6ad2a56d
commit 15f32eff61
16 changed files with 1566 additions and 191 deletions

View File

@@ -109,7 +109,6 @@ func shoot(delta):
if tracker != null and !check_track:
fire()
func fire():
if GameGlobals.gun_ammo[gun_name] > 0 and cycle_count > 0:
if !anim_player.is_playing():
@@ -209,7 +208,6 @@ func bullet_fire():
instance_bullet.player_position = player.global_position
get_tree().get_root().add_child(instance_bullet)
func swapped_out():
tracker_check_mesh.visible = false
queue_free()