Skip to content

Commit

Permalink
That
Browse files Browse the repository at this point in the history
  • Loading branch information
silicons committed Sep 13, 2024
1 parent cbf2976 commit e620ac6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/projectiles/guns/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@
pin.emag_act(remaining_charges, user)

/obj/item/gun/proc/Fire(atom/target, mob/living/user, clickparams, pointblank=0, reflex=0)
SHOULD_NOT_OVERRIDE(TRUE)
if(!user || !target) return
if(target.z != user.z) return

Expand Down Expand Up @@ -573,6 +574,7 @@

// Similar to the above proc, but does not require a user, which is ideal for things like turrets.
/obj/item/gun/proc/Fire_userless(atom/target)
SHOULD_NOT_OVERRIDE(TRUE)
if(!target)
return

Expand Down

0 comments on commit e620ac6

Please sign in to comment.