Admin Supplypod tweaks (Behaves like fireballs, also stuns targets) (#38290)

* Arianya

* whups caps
This commit is contained in:
MrDoomBringer
2018-06-05 19:01:48 -04:00
committed by letterjay
parent 3489ed23c6
commit 71f684e5d8
2 changed files with 13 additions and 11 deletions
+5 -4
View File
@@ -1310,17 +1310,18 @@ GLOBAL_LIST_EMPTY(custom_outfits) //Admin created outfits
var/target_path = input(usr,"Enter typepath of an atom you'd like to send with the pod (type \"empty\" to send an empty pod):" ,"Typepath","/obj/item/reagent_containers/food/snacks/grown/harebell") as null|text
if (isnull(target_path))
return
if (target_path == "empty")//if you type "abort", spawn an empty pod
if (target_path == "empty")//if you type "empty", spawn an empty pod
new /obj/effect/DPtarget(get_turf(target), null, POD_CENTCOM)
return
var/delivery = text2path(target_path)
if(!ispath(delivery))
delivery = pick_closest_path(target_path)
if(!delivery)
delivery = /obj/item/reagent_containers/food/snacks/grown/harebell
alert("That path is not allowed.")
alert("ERROR: Incorrect / improper path given.")
return
//send the pod
new /obj/effect/DPtarget(get_turf(target), delivery, POD_CENTCOM)
target.Stun(10)//takes 0.53 seconds for CentCom pod to land
new /obj/effect/DPtarget(get_turf(target), delivery, POD_CENTCOM, target)
var/msg = "[key_name_admin(usr)] punished [key_name_admin(target)] with [punishment]."
message_admins(msg)