built single-resource based script for weapons, most are broken right now
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user