Using explosives at end round now gibs you (#26465)

* Using explosives at end round now gibs you

* More tweaks

* Tweaks
This commit is contained in:
AffectedArc07
2024-08-17 22:24:21 +00:00
committed by GitHub
parent e21b8ea4c3
commit 3a3768bac3
5 changed files with 29 additions and 5 deletions
+13
View File
@@ -13,6 +13,19 @@
if(!epicenter)
return
// If we are in end round, make explosions gib the user
// Why? Its funny
if(GLOB.disable_explosions && usr && istype(usr, /mob/living/carbon/human))
to_chat(usr, "<span class='userdanger'>Your explosive backfires!</span>")
var/mob/living/carbon/human/H = usr
H.gib() // lol
return
// If explosions are disabled, and there isnt a user, or the user isnt an admin, abort
// Admins can still ruin things :P
if(GLOB.disable_explosions && ((!usr) || !is_admin(usr)))
return
// Archive the uncapped explosion for the doppler array
var/orig_dev_range = devastation_range
var/orig_heavy_range = heavy_impact_range