mortar + mini gun cannot hit weak points

This commit is contained in:
Michael Campbell 2026-02-19 01:01:39 -05:00
parent f73f093ae2
commit 045faf2333
10 changed files with 77 additions and 1 deletions

View file

@ -6,6 +6,7 @@ func fire(aim_angle: float) -> void:
var player_projectile: PlayerProjectile = preload("res://player/projectile/player_projectile.tscn").instantiate()
player_projectile.init(dir)
player_projectile.damage = 5
player_projectile.can_hit_weak_points = false
player_projectile.global_position = global_position + Vector3.UP * 0.5
get_tree().current_scene.add_child(player_projectile)
fire_clock = 60. / fire_rate