From e2717f28471ea5da5c39d1d548227f11becbc594 Mon Sep 17 00:00:00 2001 From: silencer-pl <103842328+silencer-pl@users.noreply.github.com> Date: Thu, 26 Sep 2024 02:55:08 -0400 Subject: [PATCH] Update gun.dm adds iff to PBs --- code/modules/projectiles/gun.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index eb1dba21be..f83d3f02e9 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -1374,6 +1374,9 @@ and you're good to go. if(!able_to_fire(user)) //If it's a valid PB aside from that you can't fire the gun, do nothing. return TRUE + if(user.faction == attacked_mob.faction) // IFF check. Just like the global smart bullets, for the moment no PBing of friendlies. + return TRUE + //The following relating to bursts was borrowed from Fire code. var/check_for_attachment_fire = FALSE if(active_attachable)