From 9bcc51fe91cecde9dcd62d2e163db10327fcf5ed Mon Sep 17 00:00:00 2001 From: derek Date: Thu, 17 Apr 2025 15:39:27 -0500 Subject: [PATCH] fixed gun bullet spawn on wall collision --- scripts/weapon_uberscript.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/weapon_uberscript.gd b/scripts/weapon_uberscript.gd index 7d838e4..4fc1665 100644 --- a/scripts/weapon_uberscript.gd +++ b/scripts/weapon_uberscript.gd @@ -274,7 +274,7 @@ func projectile_initialize(): var instance_bullet = weapon_info.bullet.asset.instantiate() instance_bullet.position = player.bullet_ray.global_position #shoot bullet from real gun if gun is folded up - if player.gun_folded == false: + if !player.gun_ray.is_colliding(): instance_bullet.transform.basis = player.bullet_ray.global_transform.basis else: instance_bullet.transform.basis = barrel_ray.global_transform.basis