[MIRROR] Readds actual fun to admins throwing around drop pods (#7052)
* Readds actual fun to admins throwing around drop pods (#38374) * Readds fun * Fun * Readds actual fun to admins throwing around drop pods
This commit is contained in:
committed by
kevinz000
parent
e279392386
commit
e68fbe9fa4
@@ -106,11 +106,13 @@
|
||||
|
||||
/obj/effect/DPtarget/Initialize(mapload, var/SO, var/podID, var/target)
|
||||
. = ..()
|
||||
var/delayTime = 30//default time is 30 seconds
|
||||
var/delayTime = 17 //We're forcefully adminspawned, make it faster
|
||||
switch(podID)
|
||||
if(POD_STANDARD)
|
||||
delayTime = 30
|
||||
if(POD_BLUESPACE)
|
||||
delayTime = 15
|
||||
if(POD_CENTCOM)
|
||||
if(POD_CENTCOM) //Admin smite, even faster.
|
||||
delayTime = 5//speedy delivery
|
||||
|
||||
addtimer(CALLBACK(src, .proc/beginLaunch, SO, podID), delayTime)//standard pods take 3 seconds to come in, bluespace pods take 1.5
|
||||
@@ -121,18 +123,21 @@
|
||||
addtimer(CALLBACK(src, .proc/endLaunch, SO, podID), 3, TIMER_CLIENT_TIME)//fall 0.3seconds
|
||||
|
||||
/obj/effect/DPtarget/proc/endLaunch(var/SO, var/podID)
|
||||
if (podID == POD_STANDARD)
|
||||
if(podID == POD_STANDARD)
|
||||
new /obj/structure/closet/supplypod(drop_location(), SO)//pod is created
|
||||
explosion(src,0,0,2, flame_range = 3) //less advanced equipment than bluespace pod, so larger explosion when landing
|
||||
else if (podID == POD_BLUESPACE)
|
||||
else if(podID == POD_BLUESPACE)
|
||||
new /obj/structure/closet/supplypod/bluespacepod(drop_location(), SO)//pod is created
|
||||
explosion(src,0,0,2, flame_range = 1) //explosion and camshake (shoutout to @cyberboss)
|
||||
else
|
||||
else if(podID == POD_CENTCOM)
|
||||
new /obj/structure/closet/supplypod/bluespacepod/centcompod(drop_location(), SO)//CentCom supplypods dont create explosions; instead they directly deal 40 fire damage to people on the turf
|
||||
var/turf/T = get_turf(src)
|
||||
T.hotspot_expose(700, 50, 1)//same as fireball
|
||||
for(var/mob/living/M in T.contents)
|
||||
M.adjustFireLoss(40)
|
||||
else //We're buildmoded or directly spawned, blow them up damnit.
|
||||
new /obj/structure/closet/supplypod/bluespacepod/centcompod(drop_location(), SO)
|
||||
explosion(src, 0, 0, 2, flame_range = 3)
|
||||
qdel(src)
|
||||
|
||||
/obj/effect/DPtarget/Destroy()
|
||||
@@ -146,4 +151,4 @@
|
||||
icon = 'icons/obj/module.dmi'
|
||||
icon_state = "cargodisk"
|
||||
item_state = "card-id"
|
||||
w_class = WEIGHT_CLASS_SMALL
|
||||
w_class = WEIGHT_CLASS_SMALL
|
||||
|
||||
Reference in New Issue
Block a user