mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
next set of admin verbs (#19260)
* next set of admin verbs * invoke * . * a few more * few more * . * few more * some more * move thos * next * some debug verbs * axe the old mod loading * del * is local for some verbs * few more * . * . * . * Add local narrate. * Fixes this Needed to be user.mob, since user is the client and usr was the old user.mob * fixes * . * . * . * . --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
5cf2876a85
commit
89fb9871e0
@@ -1,22 +1,19 @@
|
||||
/client/proc/spawn_tanktransferbomb()
|
||||
set category = "Debug.Game"
|
||||
set desc = "Spawn a tank transfer valve bomb"
|
||||
set name = "Instant TTV"
|
||||
|
||||
if(!check_rights(R_SPAWN)) return
|
||||
|
||||
ADMIN_VERB(spawn_tanktransferbomb, R_SPAWN, "Instant TTV", "Spawn a tank transfer valve bomb.", ADMIN_CATEGORY_DEBUG_GAME)
|
||||
var/obj/effect/spawner/newbomb/proto = /obj/effect/spawner/newbomb/radio/custom
|
||||
|
||||
var/p = tgui_input_number(usr, "Enter phoron amount (mol):","Phoron", initial(proto.phoron_amt))
|
||||
if(p == null) return
|
||||
var/p = tgui_input_number(user, "Enter phoron amount (mol):","Phoron", initial(proto.phoron_amt))
|
||||
if(isnull(p))
|
||||
return
|
||||
|
||||
var/o = tgui_input_number(usr, "Enter oxygen amount (mol):","Oxygen", initial(proto.oxygen_amt))
|
||||
if(o == null) return
|
||||
var/o = tgui_input_number(user, "Enter oxygen amount (mol):","Oxygen", initial(proto.oxygen_amt))
|
||||
if(isnull(o))
|
||||
return
|
||||
|
||||
var/c = tgui_input_number(usr, "Enter carbon dioxide amount (mol):","Carbon Dioxide", initial(proto.carbon_amt))
|
||||
if(c == null) return
|
||||
var/c = tgui_input_number(user, "Enter carbon dioxide amount (mol):","Carbon Dioxide", initial(proto.carbon_amt))
|
||||
if(isnull(c))
|
||||
return
|
||||
|
||||
new /obj/effect/spawner/newbomb/radio/custom(get_turf(mob), p, o, c)
|
||||
new /obj/effect/spawner/newbomb/radio/custom(get_turf(user.mob), p, o, c)
|
||||
|
||||
/obj/effect/spawner/newbomb
|
||||
name = "TTV bomb"
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
/client/proc/kaboom()
|
||||
var/power = tgui_input_number(src, "power?", "power?")
|
||||
var/turf/T = get_turf(src.mob)
|
||||
explosion(T, power)
|
||||
|
||||
/turf
|
||||
var/explosion_resistance
|
||||
|
||||
|
||||
@@ -276,13 +276,7 @@
|
||||
disposal_holder.destinationTag = sortTag
|
||||
|
||||
// Mail spawn for events
|
||||
/datum/admins/proc/spawn_mail(var/object as text)
|
||||
set name = "Spawn Mail"
|
||||
set category = "Fun.Event Kit"
|
||||
set desc = "Spawn mail for a specific player, with a specific item."
|
||||
|
||||
if(!check_rights(R_SPAWN)) return
|
||||
|
||||
ADMIN_VERB(spawn_mail, R_SPAWN, "Spawn Mail", "Spawn mail for a specific player, with a specific item.", ADMIN_CATEGORY_FUN_EVENT_KIT, object as text)
|
||||
var/list/types = typesof(/atom)
|
||||
var/list/matches = new()
|
||||
var/list/recipients = list()
|
||||
@@ -298,23 +292,25 @@
|
||||
if(matches.len==1)
|
||||
chosen = matches[1]
|
||||
else
|
||||
chosen = tgui_input_list(usr, "Select an atom type", "Spawn Atom in Mail", matches)
|
||||
chosen = tgui_input_list(user, "Select an atom type", "Spawn Atom in Mail", matches)
|
||||
if(!chosen)
|
||||
return
|
||||
|
||||
for(var/mob/living/player in GLOB.player_list)
|
||||
recipients += player
|
||||
|
||||
var/mob/living/chosen_player = tgui_input_list(usr, "Choose recipient", "Recipients", recipients, recipients)
|
||||
var/mob/living/chosen_player = tgui_input_list(user, "Choose recipient", "Recipients", recipients, recipients)
|
||||
|
||||
recipient_mind = chosen_player.mind
|
||||
|
||||
if(!recipient_mind)
|
||||
return
|
||||
|
||||
var/shuttle_spawn = tgui_alert(usr, "Spawn mail at location or in the shuttle?", "Spawn mail", list("Location", "Shuttle"))
|
||||
var/shuttle_spawn = tgui_alert(user, "Spawn mail at location or in the shuttle?", "Spawn mail", list("Location", "Shuttle"))
|
||||
if(!shuttle_spawn)
|
||||
return
|
||||
|
||||
var/mob/user_mob = user.mob
|
||||
if(shuttle_spawn == "Shuttle")
|
||||
var/obj/item/mail/new_mail = new
|
||||
new_mail.initialize_for_recipient(recipient_mind, TRUE)
|
||||
@@ -322,10 +318,10 @@
|
||||
SSmail.admin_mail += new_mail
|
||||
log_and_message_admins("spawned [chosen] inside an envelope at the shuttle")
|
||||
else
|
||||
var/obj/item/mail/ground_mail = new /obj/item/mail(usr.loc)
|
||||
var/obj/item/mail/ground_mail = new /obj/item/mail(user_mob.loc)
|
||||
ground_mail.initialize_for_recipient(recipient_mind, TRUE)
|
||||
new chosen(ground_mail)
|
||||
log_and_message_admins("spawned [chosen] inside an envelope at ([usr.x],[usr.y],[usr.z])")
|
||||
log_and_message_admins("spawned [chosen] inside an envelope at ([user_mob.x],[user_mob.y],[user_mob.z])")
|
||||
|
||||
feedback_add_details("admin_verb","SM")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user