Skip to content

Commit

Permalink
Update gun.dm
Browse files Browse the repository at this point in the history
adds iff to PBs
  • Loading branch information
silencer-pl committed Sep 26, 2024
1 parent 5506751 commit e2717f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e2717f2

Please sign in to comment.