mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 19:44:46 +01:00
var/global/list -> GLOB. conversion (#17928)
* These two are easy * !!!runlevel_flags the fact it was global.runlevel_flags.len has me a bit...iffy on this. * !!!json_cache Same as above. used global. * player_list & observer_mob_list * mechas_list * this wasn't even used * surgery_steps * event_triggers * landmarks_list * dead_mob_list * living_mob_list * ai_list * cable_list * cleanbot_reserved_turfs * listening_objects * silicon_mob_list * human_mob_list * Update global_lists.dm * joblist * mob_list * Update global_lists.dm * holomap_markers * mapping_units * mapping_beacons * hair_styles_list * facial_hair_styles_list * Update global_lists.dm * facial_hair_styles_male_list * facial_hair_styles_female_list * body_marking_styles_list * body_marking_nopersist_list * ear_styles_list * hair_styles_male_list * tail_styles_list * wing_styles_list * escape_list & rune_list & endgame_exits these were all really small * endgame_safespawns * stool_cache * emotes_by_key * random_maps & map_count * item_tf_spawnpoints * narsie_list * active_radio_jammers * unused * paikeys * pai_software_by_key & default_pai_software * plant_seed_sprites * magazine_icondata_keys & magazine_icondata_states * unused * ashtray_cache * light_type_cache * HOLIDAY!!! this one was annoying * faction stuff (red?!) * Update preferences_factions.dm * vs edit removal * backbaglist, pdachoicelist, exclude_jobs * item_digestion_blacklist, edible_tech, blacklisted_artifact_effect, selectable_footstep, hexNums, syndicate_access * string_slot_flags and hexdigits->hexNums * possible_changeling_IDs * vr_mob_tf_options * vr_mob_spawner_options * pipe_colors * vr_mob_spawner_options * common_tools * newscaster_standard_feeds * Update periodic_news.dm * changeling_fabricated_clothing * semirandom_mob_spawner_decisions * id_card_states * Update syndicate_ids.dm * overlay_cache & gear_distributed_to * more * radio_channels_by_freq * Update global_lists.dm * proper * default_medbay_channels & default_internal_channels default_internal_channels is weird as it has a mapbased proc() but that proc is never called... * valid_ringtones * move this * possible_plants * more * separate these moves xeno2chemlist from a hook to a new global list. * tube_dir_list * valid_bloodreagents & monitor_states * Junk * valid_bloodtypes * breach_burn_descriptors & burn * more!! appliance_available_recipes seems uber cursed, re-look at later * Appliance code is cursed * wide_chassis & flying_chassis * allows_eye_color * all_tooltip_styles * direction_table * gun_choices * severity_to_string * old event_viruses * description_icons * MOVE_KEY_MAPPINGS * more more * pai & robot modules * Update global_lists.dm * GEOSAMPLES Also swaps a .len to LAZYLEN() * shieldgens * reagent recipies * global ammo types * rad collector * old file and unused global * nif_look_messages * FESH * nifsoft * chamelion * the death of sortAtom * globulins * lazylen that * Update global_lists.dm * LAZY * Theese too * quick fix --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -25,7 +25,7 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
confidential = TRUE)
|
||||
|
||||
/proc/admin_notice(var/message, var/rights)
|
||||
for(var/mob/M in mob_list)
|
||||
for(var/mob/M in GLOB.mob_list)
|
||||
var/C = M.client
|
||||
|
||||
if(!C)
|
||||
@@ -1035,7 +1035,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
|
||||
world.Reboot()
|
||||
|
||||
/datum/admins/proc/unprison(var/mob/M in mob_list)
|
||||
/datum/admins/proc/unprison(var/mob/M in GLOB.mob_list)
|
||||
set category = "Admin.Moderation"
|
||||
set name = "Unprison"
|
||||
if (M.z == 2)
|
||||
@@ -1177,7 +1177,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","SA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
|
||||
/datum/admins/proc/show_traitor_panel(var/mob/M in mob_list)
|
||||
/datum/admins/proc/show_traitor_panel(var/mob/M in GLOB.mob_list)
|
||||
set category = "Admin.Events"
|
||||
set desc = "Edit mobs's memory and role"
|
||||
set name = "Show Traitor Panel"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/client/proc/cmd_admin_check_player_logs(mob/living/M as mob in mob_list)
|
||||
/client/proc/cmd_admin_check_player_logs(mob/living/M as mob in GLOB.mob_list)
|
||||
set category = "Admin.Logs"
|
||||
set name = "Check Player Attack Logs"
|
||||
set desc = "Check a player's attack logs."
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
feedback_add_details("admin_verb","PL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/cmd_admin_check_dialogue_logs(mob/living/M as mob in mob_list)
|
||||
/client/proc/cmd_admin_check_dialogue_logs(mob/living/M as mob in GLOB.mob_list)
|
||||
set category = "Admin.Logs"
|
||||
set name = "Check Player Dialogue Logs"
|
||||
set desc = "Check a player's dialogue logs."
|
||||
|
||||
@@ -14,12 +14,12 @@ var/list/admin_verbs_admin = list(
|
||||
/datum/admins/proc/intercom, //send a fake intercom message, like an arrivals announcement,
|
||||
/datum/admins/proc/intercom_convo, //send a fake intercom conversation, like an ATC exchange,
|
||||
/client/proc/admin_ghost, //allows us to ghost/reenter body at will,
|
||||
/client/proc/player_panel_new, //shows an interface for all players, with links to various panels, //VOREStation Add,
|
||||
/client/proc/player_panel, //VOREStation Add,
|
||||
/client/proc/hide_verbs, //hides all our adminverbs, //VOREStation Add,
|
||||
/client/proc/hide_most_verbs, //hides all our hideable adminverbs, //VOREStation Add,
|
||||
/client/proc/debug_variables, //allows us to -see- the variables of any instance in the game. +VAREDIT needed to modify, //VOREStation Add,
|
||||
/client/proc/cmd_check_new_players, //allows us to see every new player, //VOREStation Add,
|
||||
/client/proc/player_panel_new, //shows an interface for all players, with links to various panels,
|
||||
/client/proc/player_panel,
|
||||
/client/proc/hide_verbs, //hides all our adminverbs,
|
||||
/client/proc/hide_most_verbs, //hides all our hideable adminverbs,
|
||||
/client/proc/debug_variables, //allows us to -see- the variables of any instance in the game. +VAREDIT needed to modify,
|
||||
/client/proc/cmd_check_new_players, //allows us to see every new player,
|
||||
/client/proc/toggle_view_range, //changes how far we can see,
|
||||
/client/proc/cmd_admin_pm_context, //right-click adminPM interface,
|
||||
/client/proc/cmd_admin_pm_panel, //admin-pm list,
|
||||
@@ -80,7 +80,7 @@ var/list/admin_verbs_admin = list(
|
||||
/client/proc/view_chemical_reaction_logs,
|
||||
/client/proc/makepAI,
|
||||
/datum/admins/proc/paralyze_mob,
|
||||
/datum/admins/proc/set_uplink, //VOREStation Add,
|
||||
/datum/admins/proc/set_uplink,
|
||||
/datum/admins/proc/sendFax,
|
||||
/client/proc/despawn_player,
|
||||
/datum/admins/proc/view_feedback,
|
||||
@@ -114,12 +114,11 @@ var/list/admin_verbs_fun = list(
|
||||
/client/proc/roll_dices,
|
||||
/datum/admins/proc/call_supply_drop,
|
||||
/datum/admins/proc/call_drop_pod,
|
||||
// /client/proc/smite, //Replaced by player_effects
|
||||
/client/proc/player_effects,
|
||||
/client/proc/admin_lightning_strike,
|
||||
/client/proc/cmd_admin_droppod_deploy,
|
||||
/client/proc/adminorbit, //VOREStation Add
|
||||
/client/proc/getPlayerStatus, //VORESTation Add
|
||||
/client/proc/adminorbit,
|
||||
/client/proc/getPlayerStatus,
|
||||
/client/proc/manage_event_triggers,
|
||||
/client/proc/fake_pdaconvos
|
||||
|
||||
@@ -133,14 +132,14 @@ var/list/admin_verbs_spawn = list(
|
||||
/datum/admins/proc/spawn_atom, //allows us to spawn instances,
|
||||
/datum/admins/proc/spawn_mail,
|
||||
/client/proc/cmd_admin_droppod_spawn,
|
||||
/client/proc/spawn_character_mob, //VOREStation Add,
|
||||
/client/proc/spawn_character_mob,
|
||||
/client/proc/spawn_chemdisp_cartridge,
|
||||
/client/proc/map_template_load,
|
||||
/client/proc/map_template_upload,
|
||||
/client/proc/map_template_load_on_new_z,
|
||||
/client/proc/eventkit_open_mob_spawner,
|
||||
/client/proc/generic_structure, //VOREStation Add
|
||||
/client/proc/generic_item, //VOREStation Add
|
||||
/client/proc/generic_structure,
|
||||
/client/proc/generic_item,
|
||||
/client/proc/create_gm_message,
|
||||
/client/proc/remove_gm_message,
|
||||
/client/proc/AdminCreateVirus,
|
||||
@@ -208,15 +207,15 @@ var/list/admin_verbs_debug = list(
|
||||
/client/proc/jumptocoord,
|
||||
/client/proc/dsay,
|
||||
/client/proc/admin_ghost, //allows us to ghost/reenter body at will,
|
||||
/client/proc/player_panel_new, //shows an interface for all players, with links to various panels, //VOREStation Add,
|
||||
/client/proc/player_panel, //VOREStation Add,
|
||||
/client/proc/hide_verbs, //hides all our adminverbs, //VOREStation Add,
|
||||
/client/proc/hide_most_verbs, //hides all our hideable adminverbs, //VOREStation Add,
|
||||
/client/proc/debug_variables, //allows us to -see- the variables of any instance in the game. +VAREDIT needed to modify, //VOREStation Add,
|
||||
/client/proc/cmd_check_new_players, //allows us to see every new player, //VOREStation Add,
|
||||
/client/proc/player_panel_new, //shows an interface for all players, with links to various panels,
|
||||
/client/proc/player_panel,
|
||||
/client/proc/hide_verbs, //hides all our adminverbs,
|
||||
/client/proc/hide_most_verbs, //hides all our hideable adminverbs,
|
||||
/client/proc/debug_variables, //allows us to -see- the variables of any instance in the game. +VAREDIT needed to modify,
|
||||
/client/proc/cmd_check_new_players, //allows us to see every new player,
|
||||
/datum/admins/proc/view_runtimes,
|
||||
// /client/proc/show_gm_status, // VOREStation Edit - We don't use SSgame_master yet.
|
||||
/datum/admins/proc/set_uplink, //VOREStation Add,
|
||||
// /client/proc/show_gm_status, //We don't use SSgame_master yet.
|
||||
/datum/admins/proc/set_uplink,
|
||||
/datum/admins/proc/change_weather,
|
||||
/datum/admins/proc/change_time,
|
||||
/client/proc/cmd_regenerate_asset_cache,
|
||||
@@ -293,7 +292,7 @@ var/list/admin_verbs_hideable = list(
|
||||
/client/proc/air_report,
|
||||
/client/proc/enable_debug_verbs,
|
||||
/client/proc/roll_dices,
|
||||
/datum/admins/proc/set_uplink, //VOREStation Add,
|
||||
/datum/admins/proc/set_uplink,
|
||||
/datum/admins/proc/set_tcrystals,
|
||||
/client/proc/stop_sounds
|
||||
)
|
||||
@@ -303,12 +302,12 @@ var/list/admin_verbs_mod = list(
|
||||
/client/proc/debug_variables, //allows us to -see- the variables of any instance in the game.,
|
||||
/datum/admins/proc/PlayerNotes,
|
||||
/client/proc/admin_ghost, //allows us to ghost/reenter body at will,
|
||||
/client/proc/player_panel_new, //shows an interface for all players, with links to various panels, //VOREStation Add,
|
||||
/client/proc/player_panel, //VOREStation Add,
|
||||
/client/proc/hide_verbs, //hides all our adminverbs, //VOREStation Add,
|
||||
/client/proc/hide_most_verbs, //hides all our hideable adminverbs, //VOREStation Add,
|
||||
/client/proc/debug_variables, //allows us to -see- the variables of any instance in the game. +VAREDIT needed to modify, //VOREStation Add,
|
||||
/client/proc/cmd_check_new_players, //allows us to see every new player, //VOREStation Add,
|
||||
/client/proc/player_panel_new, //shows an interface for all players, with links to various panels,
|
||||
/client/proc/player_panel,
|
||||
/client/proc/hide_verbs, //hides all our adminverbs,
|
||||
/client/proc/hide_most_verbs, //hides all our hideable adminverbs,
|
||||
/client/proc/debug_variables, //allows us to -see- the variables of any instance in the game. +VAREDIT needed to modify,
|
||||
/client/proc/cmd_check_new_players, //allows us to see every new player,
|
||||
/datum/admins/proc/show_player_info,
|
||||
/datum/admins/proc/show_traitor_panel,
|
||||
/client/proc/player_panel_new,
|
||||
@@ -329,12 +328,12 @@ var/list/admin_verbs_event_manager = list(
|
||||
/client/proc/cmd_admin_pm_context,
|
||||
/client/proc/cmd_admin_pm_panel,
|
||||
/client/proc/admin_ghost,
|
||||
/client/proc/player_panel_new, //shows an interface for all players, with links to various panels, //VOREStation Add,
|
||||
/client/proc/player_panel, //VOREStation Add,
|
||||
/client/proc/hide_verbs, //hides all our adminverbs, //VOREStation Add,
|
||||
/client/proc/hide_most_verbs, //hides all our hideable adminverbs, //VOREStation Add,
|
||||
/client/proc/debug_variables, //allows us to -see- the variables of any instance in the game. +VAREDIT needed to modify, //VOREStation Add,
|
||||
/client/proc/cmd_check_new_players, //allows us to see every new player, //VOREStation Add,
|
||||
/client/proc/player_panel_new, //shows an interface for all players, with links to various panels,
|
||||
/client/proc/player_panel,
|
||||
/client/proc/hide_verbs, //hides all our adminverbs,
|
||||
/client/proc/hide_most_verbs, //hides all our hideable adminverbs,
|
||||
/client/proc/debug_variables, //allows us to -see- the variables of any instance in the game. +VAREDIT needed to modify,
|
||||
/client/proc/cmd_check_new_players, //allows us to see every new player,
|
||||
/datum/admins/proc/show_player_info,
|
||||
/client/proc/dsay,
|
||||
/client/proc/cmd_admin_subtle_message,
|
||||
|
||||
@@ -396,7 +396,7 @@ ADMIN_VERB(deadmin, R_NONE, "DeAdmin", "Shed your admin powers.", ADMIN_CATEGORY
|
||||
|
||||
if(!check_rights(R_ADMIN|R_FUN|R_EVENT)) return
|
||||
|
||||
var/mob/living/silicon/S = tgui_input_list(usr, "Select silicon.", "Rename Silicon.", silicon_mob_list)
|
||||
var/mob/living/silicon/S = tgui_input_list(usr, "Select silicon.", "Rename Silicon.", GLOB.silicon_mob_list)
|
||||
if(!S) return
|
||||
|
||||
var/new_name = sanitizeSafe(tgui_input_text(src, "Enter new name. Leave blank or as is to cancel.", "[S.real_name] - Enter new silicon name", S.real_name))
|
||||
@@ -411,7 +411,7 @@ ADMIN_VERB(deadmin, R_NONE, "DeAdmin", "Shed your admin powers.", ADMIN_CATEGORY
|
||||
|
||||
if(!check_rights(R_ADMIN|R_EVENT)) return
|
||||
|
||||
var/mob/living/silicon/S = tgui_input_list(usr, "Select silicon.", "Manage Silicon Laws", silicon_mob_list)
|
||||
var/mob/living/silicon/S = tgui_input_list(usr, "Select silicon.", "Manage Silicon Laws", GLOB.silicon_mob_list)
|
||||
if(!S) return
|
||||
|
||||
var/datum/tgui_module/law_manager/admin/L = new(S)
|
||||
@@ -494,7 +494,7 @@ ADMIN_VERB(deadmin, R_NONE, "DeAdmin", "Shed your admin powers.", ADMIN_CATEGORY
|
||||
CONFIG_SET(flag/allow_drone_spawn, !CONFIG_GET(flag/allow_drone_spawn))
|
||||
message_admins("Admin [key_name_admin(usr)] has [CONFIG_GET(flag/allow_drone_spawn) ? "en" : "dis"]abled maintenance drones.", 1)
|
||||
|
||||
/client/proc/man_up(mob/T as mob in mob_list)
|
||||
/client/proc/man_up(mob/T as mob in GLOB.mob_list)
|
||||
set category = "Fun.Do Not"
|
||||
set name = "Man Up"
|
||||
set desc = "Tells mob to man up and deal with it."
|
||||
@@ -515,7 +515,7 @@ ADMIN_VERB(deadmin, R_NONE, "DeAdmin", "Shed your admin powers.", ADMIN_CATEGORY
|
||||
|
||||
if(tgui_alert(usr, "Are you sure you want to tell the whole server up?","Confirmation",list("Deal with it","No")) != "Deal with it") return
|
||||
|
||||
for (var/mob/T as mob in mob_list)
|
||||
for (var/mob/T as mob in GLOB.mob_list)
|
||||
to_chat(T, "<br><center>" + span_filter_system(span_notice(span_bold(span_huge("Man up.<br> Deal with it.")) + "<br>Move along.")) + "</center><br>")
|
||||
T << 'sound/voice/manup1.ogg'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Command to set the ckey of a mob without requiring VV permission
|
||||
/client/proc/SetCKey(var/mob/M in mob_list)
|
||||
/client/proc/SetCKey(var/mob/M in GLOB.mob_list)
|
||||
set category = "Admin.Game"
|
||||
set name = "Set CKey"
|
||||
set desc = "Mob to teleport"
|
||||
@@ -8,7 +8,7 @@
|
||||
return
|
||||
|
||||
var/list/keys = list()
|
||||
for(var/mob/playerMob in player_list)
|
||||
for(var/mob/playerMob in GLOB.player_list)
|
||||
keys += playerMob.client
|
||||
var/client/selection = tgui_input_list(usr, "Please, select a player!", "Set CKey", sortKey(keys))
|
||||
if(!selection || !istype(selection))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/client/proc/modify_robot(var/mob/living/silicon/robot/target in silicon_mob_list)
|
||||
/client/proc/modify_robot(var/mob/living/silicon/robot/target in GLOB.silicon_mob_list)
|
||||
set name = "Modify Robot"
|
||||
set desc = "Allows to add or remove modules to/from robots."
|
||||
set category = "Admin.Silicon"
|
||||
@@ -63,7 +63,7 @@
|
||||
.["target"]["crisis_override"] = target.crisis_override
|
||||
.["target"]["active_restrictions"] = target.restrict_modules_to
|
||||
var/list/possible_restrictions = list()
|
||||
for(var/entry in robot_modules)
|
||||
for(var/entry in GLOB.robot_modules)
|
||||
if(!target.restrict_modules_to.Find(entry))
|
||||
possible_restrictions += entry
|
||||
.["target"]["possible_restrictions"] = possible_restrictions
|
||||
@@ -74,7 +74,7 @@
|
||||
.["target"]["sprite_size"] = spritesheet.icon_size_id(.["target"]["sprite"] + "S")
|
||||
.["target"]["modules"] = get_target_items(user)
|
||||
var/list/module_options = list()
|
||||
for(var/module in robot_modules)
|
||||
for(var/module in GLOB.robot_modules)
|
||||
module_options += module
|
||||
.["model_options"] = module_options
|
||||
// Data for the upgrade options
|
||||
@@ -122,7 +122,7 @@
|
||||
if(source)
|
||||
.["source"] += get_module_source(user, spritesheet)
|
||||
var/list/all_robots = list()
|
||||
for(var/mob/living/silicon/robot/R in silicon_mob_list)
|
||||
for(var/mob/living/silicon/robot/R in GLOB.silicon_mob_list)
|
||||
if(!R.loc)
|
||||
continue
|
||||
all_robots += list(list("displayText" = "[R]", "value" = "\ref[R]"))
|
||||
@@ -190,7 +190,7 @@
|
||||
if("select_source")
|
||||
if(source)
|
||||
qdel(source)
|
||||
var/module_type = robot_modules[params["new_source"]]
|
||||
var/module_type = GLOB.robot_modules[params["new_source"]]
|
||||
if(ispath(module_type, /obj/item/robot_module/robot/syndicate))
|
||||
source = new /mob/living/silicon/robot/syndicate(null)
|
||||
else
|
||||
@@ -282,7 +282,7 @@
|
||||
return FALSE
|
||||
var/mod_type = source.modtype
|
||||
qdel(source.module)
|
||||
var/module_type = robot_modules[target.modtype]
|
||||
var/module_type = GLOB.robot_modules[target.modtype]
|
||||
source.modtype = target.modtype
|
||||
new module_type(source)
|
||||
source.sprite_datum = target.sprite_datum
|
||||
@@ -293,7 +293,7 @@
|
||||
target.hud_used?.update_robot_modules_display(TRUE)
|
||||
qdel(target.module)
|
||||
target.modtype = mod_type
|
||||
module_type = robot_modules[mod_type]
|
||||
module_type = GLOB.robot_modules[mod_type]
|
||||
target.transform_with_anim()
|
||||
new module_type(target)
|
||||
target.hands.icon_state = target.get_hud_module_icon()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/client/proc/player_effects(var/mob/target in mob_list)
|
||||
/client/proc/player_effects(var/mob/target in GLOB.mob_list)
|
||||
set name = "Player Effects"
|
||||
set desc = "Modify a player character with various 'special treatments' from a list."
|
||||
set category = "Fun.Event Kit"
|
||||
@@ -690,7 +690,7 @@
|
||||
if(where == "To Me")
|
||||
user.client.Getmob(target)
|
||||
if(where == "To Mob")
|
||||
var/mob/selection = tgui_input_list(ui.user, "Select a mob to jump [target] to:", "Jump to mob", mob_list)
|
||||
var/mob/selection = tgui_input_list(ui.user, "Select a mob to jump [target] to:", "Jump to mob", GLOB.mob_list)
|
||||
target.on_mob_jump()
|
||||
target.forceMove(get_turf(selection))
|
||||
log_admin("[key_name(user)] jumped [target] to [selection]")
|
||||
|
||||
@@ -216,7 +216,7 @@
|
||||
<span id='maintable_data_archive'>
|
||||
<table width='560' align='center' cellspacing='0' cellpadding='5' id='maintable_data'>"}
|
||||
|
||||
var/list/mobs = sortmobs()
|
||||
var/list/mobs = sort_mobs()
|
||||
var/i = 1
|
||||
for(var/mob/M in mobs)
|
||||
if(M.ckey)
|
||||
@@ -331,7 +331,7 @@
|
||||
dat += "<body><table border=1 cellspacing=5>" + span_bold("<tr><th>Name</th><th>Real Name</th><th>Assigned Job</th><th>Key</th><th>Options</th><th>PM</th><th>Traitor?</th></tr>")
|
||||
//add <th>IP:</th> to this if wanting to add back in IP checking
|
||||
//add <td>(IP: [M.lastKnownIP])</td> if you want to know their ip to the lists below
|
||||
var/list/mobs = sortmobs()
|
||||
var/list/mobs = sort_mobs()
|
||||
|
||||
for(var/mob/M in mobs)
|
||||
if(!M.ckey) continue
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
|
||||
var/mob/playermob
|
||||
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
if(M.ckey == banckey)
|
||||
playermob = M
|
||||
break
|
||||
@@ -198,7 +198,7 @@
|
||||
href_list["secretsadmin"] = "check_antagonist"
|
||||
|
||||
else if(href_list["delay_round_end"])
|
||||
if(!check_rights(R_SERVER)) return //VOREStation Edit
|
||||
if(!check_rights(R_SERVER)) return
|
||||
|
||||
ticker.delay_end = !ticker.delay_end
|
||||
log_admin("[key_name(usr)] [ticker.delay_end ? "delayed the round end" : "has made the round end normally"].")
|
||||
@@ -460,7 +460,6 @@
|
||||
|
||||
jobs += "</tr></table>"
|
||||
|
||||
//VOREStation Edit Start
|
||||
//Exploration (Purple)
|
||||
counter = 0
|
||||
jobs += "<table cellpadding='1' cellspacing='0' width='100%'>"
|
||||
@@ -505,7 +504,6 @@
|
||||
|
||||
jobs += "</tr></table>"
|
||||
|
||||
//VOREstation Edit End
|
||||
//Civilian (Grey)
|
||||
counter = 0
|
||||
jobs += "<table cellpadding='1' cellspacing='0' width='100%'>"
|
||||
@@ -660,7 +658,6 @@
|
||||
var/datum/job/temp = job_master.GetJob(jobPos)
|
||||
if(!temp) continue
|
||||
joblist += temp.title
|
||||
//VOREStation Edit Start
|
||||
if("explorationdept")
|
||||
for(var/jobPos in SSjob.get_job_titles_in_department(DEPARTMENT_PLANET))
|
||||
if(!jobPos) continue
|
||||
@@ -674,7 +671,6 @@
|
||||
var/datum/job/temp = job_master.GetJob(jobPos)
|
||||
if(!temp) continue
|
||||
joblist += temp.title
|
||||
//VOREStation Edit End
|
||||
if("civiliandept")
|
||||
for(var/jobPos in SSjob.get_job_titles_in_department(DEPARTMENT_CIVILIAN))
|
||||
if(!jobPos) continue
|
||||
@@ -805,7 +801,7 @@
|
||||
log_admin("[key_name(usr)] booted [key_name(M)] for reason: '[reason]'.")
|
||||
message_admins(span_blue("[key_name_admin(usr)] booted [key_name_admin(M)] for reason '[reason]'."), 1)
|
||||
//M.client = null
|
||||
admin_action_message(usr.key, M.key, "kicked", reason, 0) //VOREStation Add
|
||||
admin_action_message(usr.key, M.key, "kicked", reason, 0)
|
||||
qdel(M.client)
|
||||
|
||||
else if(href_list["removejobban"])
|
||||
@@ -1251,7 +1247,7 @@
|
||||
SSadmin_verbs.dynamic_invoke_verb(usr.client, /datum/admin_verb/show_player_panel, M)
|
||||
|
||||
else if(href_list["adminplayerobservejump"])
|
||||
if(!check_rights(R_MOD|R_ADMIN|R_SERVER)) return //VOREStation Edit
|
||||
if(!check_rights(R_MOD|R_ADMIN|R_SERVER)) return
|
||||
|
||||
var/mob/M = locate(href_list["adminplayerobservejump"])
|
||||
|
||||
@@ -1261,7 +1257,7 @@
|
||||
C.do_jumptomob(M)
|
||||
|
||||
else if(href_list["adminplayerobservefollow"])
|
||||
if(!check_rights(R_MOD|R_ADMIN|R_SERVER)) //VOREStation Edit
|
||||
if(!check_rights(R_MOD|R_ADMIN|R_SERVER))
|
||||
return
|
||||
|
||||
var/mob/M = locate(href_list["adminplayerobservefollow"])
|
||||
@@ -1284,7 +1280,6 @@
|
||||
if(check_rights_for(X, (R_ADMIN|R_MOD|R_SERVER)))
|
||||
to_chat(X, take_msg)
|
||||
to_chat(M, span_filter_pm(span_boldnotice("Your adminhelp is being attended to by [usr.client]. Thanks for your patience!")))
|
||||
// VoreStation Edit Start
|
||||
if (CONFIG_GET(string/chat_webhook_url))
|
||||
spawn(0)
|
||||
var/query_string = "type=admintake"
|
||||
@@ -1292,12 +1287,11 @@
|
||||
query_string += "&admin=[url_encode(key_name(usr.client))]"
|
||||
query_string += "&user=[url_encode(key_name(M))]"
|
||||
world.Export("[CONFIG_GET(string/chat_webhook_url)]?[query_string]")
|
||||
// VoreStation Edit End
|
||||
else
|
||||
to_chat(usr, span_warning("Unable to locate mob."))
|
||||
|
||||
else if(href_list["adminplayerobservecoodjump"])
|
||||
if(!check_rights(R_ADMIN|R_SERVER|R_MOD)) return //VOREStation Edit
|
||||
if(!check_rights(R_ADMIN|R_SERVER|R_MOD)) return
|
||||
|
||||
var/x = text2num(href_list["X"])
|
||||
var/y = text2num(href_list["Y"])
|
||||
@@ -1942,7 +1936,7 @@
|
||||
vsc.SetDefault(usr)
|
||||
|
||||
else if(href_list["toglang"])
|
||||
if(check_rights(R_SPAWN)) //VOREStation Edit
|
||||
if(check_rights(R_SPAWN))
|
||||
var/mob/M = locate(href_list["toglang"])
|
||||
if(!istype(M))
|
||||
to_chat(usr, span_filter_adminlog("[M] is illegal type, must be /mob!"))
|
||||
@@ -1962,7 +1956,7 @@
|
||||
else if(href_list["cryoplayer"])
|
||||
if(!check_rights(R_ADMIN|R_EVENT)) return
|
||||
|
||||
var/mob/living/carbon/M = locate(href_list["cryoplayer"]) //VOREStation edit from just an all mob check to mob/living/carbon
|
||||
var/mob/living/carbon/M = locate(href_list["cryoplayer"])
|
||||
if(!istype(M))
|
||||
to_chat(usr, span_warning("Mob doesn't exist!"))
|
||||
return
|
||||
|
||||
@@ -118,8 +118,8 @@ The 4 queries you can do are:
|
||||
|
||||
"IN" (or "FROM", that works too but it's kinda weird to read),
|
||||
is the list of objects to work on. This defaults to world if not provided.
|
||||
But doing something like "IN living_mob_list" is quite handy and can optimize your query.
|
||||
All names inside the IN block are global scope, so you can do living_mob_list (a global var) easily.
|
||||
But doing something like "IN GLOB.living_mob_list" is quite handy and can optimize your query.
|
||||
All names inside the IN block are global scope, so you can do GLOB.living_mob_list (a global var) easily.
|
||||
You can also run it on a single object. Because SDQL is that convenient even for single operations.
|
||||
|
||||
<type> filters out objects of, well, that type easily. "*" is a wildcard and just takes everything in
|
||||
@@ -129,7 +129,7 @@ And then there's the MAP/WHERE chain.
|
||||
These operate on each individual object being ran through the query.
|
||||
They're both expressions like IN, but unlike it the expression is scoped *on the object*.
|
||||
So if you do "WHERE z == 4", this does "src.z", effectively.
|
||||
If you want to access global variables, you can do `global.living_mob_list`.
|
||||
If you want to access global variables, you can do `GLOB.living_mob_list`.
|
||||
Same goes for procs.
|
||||
|
||||
MAP "changes" the object into the result of the expression.
|
||||
|
||||
@@ -42,7 +42,7 @@ ADMIN_VERB(admin_emp, R_ADMIN|R_FUN, "EM Pulse", ADMIN_VERB_NO_DESCRIPTION, ADMI
|
||||
message_admins("[key_name_admin(user)] created an EM PUlse ([heavy],[med],[light],[long]) at ([orignator.x],[orignator.y],[orignator.z])", 1)
|
||||
feedback_add_details("admin_verb","EMP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
ADMIN_VERB_AND_CONTEXT_MENU(gib_them, (R_ADMIN|R_FUN), "Gib", ADMIN_VERB_NO_DESCRIPTION, ADMIN_CATEGORY_HIDDEN, mob/victim in mob_list)
|
||||
ADMIN_VERB_AND_CONTEXT_MENU(gib_them, (R_ADMIN|R_FUN), "Gib", ADMIN_VERB_NO_DESCRIPTION, ADMIN_CATEGORY_HIDDEN, mob/victim in GLOB.mob_list)
|
||||
var/confirm = tgui_alert(user, "You sure?", "Confirm", list("Yes", "No"))
|
||||
if(confirm != "Yes")
|
||||
return
|
||||
|
||||
@@ -47,10 +47,10 @@
|
||||
return
|
||||
|
||||
/// Verb wrapper around do_jumptomob()
|
||||
/client/proc/jumptomob(mob as null|anything in mob_list)
|
||||
/client/proc/jumptomob(mob as null|anything in GLOB.mob_list)
|
||||
set category = "Admin.Game"
|
||||
set name = "Jump to Mob"
|
||||
set popup_menu = FALSE //VOREStation Edit - Declutter.
|
||||
set popup_menu = FALSE
|
||||
|
||||
if(!check_rights(R_ADMIN|R_MOD|R_DEBUG|R_EVENT))
|
||||
return
|
||||
@@ -64,7 +64,7 @@
|
||||
return
|
||||
|
||||
if(!M)
|
||||
M = tgui_input_list(usr, "Pick a mob:", "Jump to Mob", mob_list)
|
||||
M = tgui_input_list(usr, "Pick a mob:", "Jump to Mob", GLOB.mob_list)
|
||||
if(!M)
|
||||
return
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
|
||||
if(CONFIG_GET(flag/allow_admin_jump))
|
||||
var/list/keys = list()
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
keys += M.client
|
||||
var/selection = tgui_input_list(usr, "Select a key:", "Jump to Key", sortKey(keys))
|
||||
if(!selection)
|
||||
@@ -124,17 +124,17 @@
|
||||
else
|
||||
tgui_alert_async(usr, "Admin jumping disabled")
|
||||
|
||||
/client/proc/Getmob(mob/living/M as null|anything in mob_list) //VOREStation Edit
|
||||
/client/proc/Getmob(mob/living/M as null|anything in GLOB.mob_list)
|
||||
set category = "Admin.Game"
|
||||
set name = "Get Mob"
|
||||
set desc = "Mob to teleport"
|
||||
set popup_menu = TRUE //VOREStation Edit
|
||||
set popup_menu = TRUE
|
||||
|
||||
if(!check_rights(R_ADMIN|R_MOD|R_DEBUG|R_EVENT))
|
||||
return
|
||||
if(CONFIG_GET(flag/allow_admin_jump))
|
||||
if(!M) //VOREStation Edit
|
||||
M = tgui_input_list(usr, "Pick a mob:", "Get Mob", mob_list) //VOREStation Edit
|
||||
if(!M)
|
||||
M = tgui_input_list(usr, "Pick a mob:", "Get Mob", GLOB.mob_list)
|
||||
if(!M)
|
||||
return
|
||||
log_admin("[key_name(usr)] jumped [key_name(M)] to them")
|
||||
@@ -157,7 +157,7 @@
|
||||
|
||||
if(CONFIG_GET(flag/allow_admin_jump))
|
||||
var/list/keys = list()
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
keys += M.client
|
||||
var/selection = tgui_input_list(usr, "Pick a key:", "Get Key", sortKey(keys))
|
||||
if(!selection)
|
||||
@@ -187,7 +187,7 @@
|
||||
var/area/A = tgui_input_list(usr, "Pick an area:", "Send Mob", return_sorted_areas())
|
||||
if(!A)
|
||||
return
|
||||
var/mob/M = tgui_input_list(usr, "Pick a mob:", "Send Mob", mob_list)
|
||||
var/mob/M = tgui_input_list(usr, "Pick a mob:", "Send Mob", GLOB.mob_list)
|
||||
if(!M)
|
||||
return
|
||||
M.on_mob_jump()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
//allows right clicking mobs to send an admin PM to their client, forwards the selected mob's client to cmd_admin_pm
|
||||
/client/proc/cmd_admin_pm_context(mob/M in mob_list)
|
||||
/client/proc/cmd_admin_pm_context(mob/M in GLOB.mob_list)
|
||||
set category = null
|
||||
set name = "Admin PM Mob"
|
||||
if(!check_rights(R_ADMIN))
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
// Name shown to other players. Admins whom are not also antags have their rank displayed.
|
||||
var/player_display = (is_admin && !is_antag) ? "[display_name]([usr.client.holder.rank_names()])" : display_name
|
||||
|
||||
for(var/mob/M in mob_list)
|
||||
for(var/mob/M in GLOB.mob_list)
|
||||
if(check_rights_for(M.client, R_ADMIN|R_MOD|R_EVENT)) // Staff can see AOOC unconditionally, and with more details.
|
||||
to_chat(M, span_ooc(span_aooc("[create_text_tag("aooc", "Antag-OOC:", M.client)] <EM>[get_options_bar(src, 0, 1, 1)]([admin_jump_link(usr, check_rights_for(M.client, R_HOLDER))]):</EM> " + span_message("[msg]"))))
|
||||
else if(M.client) // Players can only see AOOC if observing, or if they are an antag type allowed to use AOOC.
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
GLOBAL_LIST_EMPTY(active_buildmode_holders)
|
||||
|
||||
/proc/togglebuildmode(mob/M as mob in player_list)
|
||||
/proc/togglebuildmode(mob/M as mob in GLOB.player_list)
|
||||
set name = "Toggle Build Mode"
|
||||
set category = "Special Verbs"
|
||||
if(M.client)
|
||||
@@ -292,7 +292,7 @@ GLOBAL_LIST_EMPTY(active_buildmode_holders)
|
||||
if("number")
|
||||
master.buildmode.valueholder = tgui_input_number(usr,"Enter variable value:" ,"Value", 123)
|
||||
if("mob-reference")
|
||||
master.buildmode.valueholder = tgui_input_list(usr,"Enter variable value:", "Value", mob_list)
|
||||
master.buildmode.valueholder = tgui_input_list(usr,"Enter variable value:", "Value", GLOB.mob_list)
|
||||
if("obj-reference")
|
||||
master.buildmode.valueholder = tgui_input_list(usr,"Enter variable value:", "Value", world)
|
||||
if("turf-reference")
|
||||
@@ -706,7 +706,7 @@ GLOBAL_LIST_EMPTY(active_buildmode_holders)
|
||||
var/z = c1.z //Eh
|
||||
|
||||
var/i = 0
|
||||
for(var/mob/living/L in living_mob_list)
|
||||
for(var/mob/living/L in GLOB.living_mob_list)
|
||||
if(L.z != z || L.client)
|
||||
continue
|
||||
if(L.x >= low_x && L.x <= hi_x && L.y >= low_y && L.y <= hi_y)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
if(!check_rights(R_FUN)) return
|
||||
|
||||
var/mob/living/carbon/human/H = tgui_input_list(usr, "Select mob.", "Change Mob Appearance - Admin", human_mob_list)
|
||||
var/mob/living/carbon/human/H = tgui_input_list(usr, "Select mob.", "Change Mob Appearance - Admin", GLOB.human_mob_list)
|
||||
if(!H) return
|
||||
|
||||
log_and_message_admins("is altering the appearance of [H].")
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
if(!check_rights(R_FUN)) return
|
||||
|
||||
var/mob/living/carbon/human/H = tgui_input_list(usr, "Select mob.", "Change Mob Appearance - Self", human_mob_list)
|
||||
var/mob/living/carbon/human/H = tgui_input_list(usr, "Select mob.", "Change Mob Appearance - Self", GLOB.human_mob_list)
|
||||
if(!H) return
|
||||
|
||||
if(!H.client)
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
if(!check_rights(R_FUN)) return
|
||||
|
||||
var/mob/living/carbon/human/M = tgui_input_list(usr, "Select mob.", "Edit Appearance", human_mob_list)
|
||||
var/mob/living/carbon/human/M = tgui_input_list(usr, "Select mob.", "Edit Appearance", GLOB.human_mob_list)
|
||||
|
||||
if(!ishuman(M))
|
||||
to_chat(usr, span_warning("You can only do this to humans!"))
|
||||
@@ -80,12 +80,12 @@
|
||||
M.s_tone = -M.s_tone + 35
|
||||
|
||||
// hair
|
||||
var/new_hstyle = tgui_input_list(usr, "Select a hair style", "Grooming", hair_styles_list)
|
||||
var/new_hstyle = tgui_input_list(usr, "Select a hair style", "Grooming", GLOB.hair_styles_list)
|
||||
if(new_hstyle)
|
||||
M.h_style = new_hstyle
|
||||
|
||||
// facial hair
|
||||
var/new_fstyle = tgui_input_list(usr, "Select a facial hair style", "Grooming", facial_hair_styles_list)
|
||||
var/new_fstyle = tgui_input_list(usr, "Select a facial hair style", "Grooming", GLOB.facial_hair_styles_list)
|
||||
if(new_fstyle)
|
||||
M.f_style = new_fstyle
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
usr.show_message(t, 1)
|
||||
feedback_add_details("admin_verb","ASL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/cmd_admin_robotize(var/mob/M in mob_list)
|
||||
/client/proc/cmd_admin_robotize(var/mob/M in GLOB.mob_list)
|
||||
set category = "Fun.Event Kit"
|
||||
set name = "Make Robot"
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
else
|
||||
tgui_alert_async(usr, "Invalid mob")
|
||||
|
||||
/client/proc/cmd_admin_animalize(var/mob/M in mob_list)
|
||||
/client/proc/cmd_admin_animalize(var/mob/M in GLOB.mob_list)
|
||||
set category = "Fun.Event Kit"
|
||||
set name = "Make Simple Animal"
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
var/turf/T = get_turf(mob)
|
||||
|
||||
var/list/available = list()
|
||||
for(var/mob/C in mob_list)
|
||||
for(var/mob/C in GLOB.mob_list)
|
||||
if(C.key && isobserver(C))
|
||||
available.Add(C)
|
||||
var/mob/choice = tgui_input_list(usr, "Choose a player to play the pAI", "Spawn pAI", available)
|
||||
@@ -160,7 +160,7 @@
|
||||
log_admin("made a pAI with key=[pai.key] at ([T.x],[T.y],[T.z])")
|
||||
feedback_add_details("admin_verb","MPAI") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/cmd_admin_alienize(var/mob/M in mob_list)
|
||||
/client/proc/cmd_admin_alienize(var/mob/M in GLOB.mob_list)
|
||||
set category = "Fun.Event Kit"
|
||||
set name = "Make Alien"
|
||||
|
||||
@@ -273,7 +273,7 @@
|
||||
else
|
||||
. = lines.Join("\n")
|
||||
|
||||
/client/proc/cmd_admin_grantfullaccess(var/mob/M in mob_list)
|
||||
/client/proc/cmd_admin_grantfullaccess(var/mob/M in GLOB.mob_list)
|
||||
set category = "Admin.Events"
|
||||
set name = "Grant Full Access"
|
||||
|
||||
@@ -587,15 +587,15 @@ ADMIN_VERB(cmd_assume_direct_control, (R_DEBUG|R_ADMIN|R_EVENT), "Assume Direct
|
||||
|
||||
switch(tgui_input_list(usr, "Which list?", "List Choice", list("Players","Admins","Mobs","Living Mobs","Dead Mobs", "Clients")))
|
||||
if("Players")
|
||||
to_chat(usr, span_filter_debuglogs(jointext(player_list,",")))
|
||||
to_chat(usr, span_filter_debuglogs(jointext(GLOB.player_list,",")))
|
||||
if("Admins")
|
||||
to_chat(usr, span_filter_debuglogs(jointext(GLOB.admins,",")))
|
||||
if("Mobs")
|
||||
to_chat(usr, span_filter_debuglogs(jointext(mob_list,",")))
|
||||
to_chat(usr, span_filter_debuglogs(jointext(GLOB.mob_list,",")))
|
||||
if("Living Mobs")
|
||||
to_chat(usr, span_filter_debuglogs(jointext(living_mob_list,",")))
|
||||
to_chat(usr, span_filter_debuglogs(jointext(GLOB.living_mob_list,",")))
|
||||
if("Dead Mobs")
|
||||
to_chat(usr, span_filter_debuglogs(jointext(dead_mob_list,",")))
|
||||
to_chat(usr, span_filter_debuglogs(jointext(GLOB.dead_mob_list,",")))
|
||||
if("Clients")
|
||||
to_chat(usr, span_filter_debuglogs(jointext(GLOB.clients,",")))
|
||||
|
||||
@@ -739,7 +739,7 @@ ADMIN_VERB(cmd_assume_direct_control, (R_DEBUG|R_ADMIN|R_EVENT), "Assume Direct
|
||||
|
||||
ADMIN_VERB(quick_nif, R_ADMIN, "Quick NIF", "Spawns a NIF into someone in quick-implant mode.", "Fun.Add Nif")
|
||||
var/input_NIF
|
||||
var/mob/living/carbon/human/H = tgui_input_list(user, "Pick a mob with a player","Quick NIF", player_list)
|
||||
var/mob/living/carbon/human/H = tgui_input_list(user, "Pick a mob with a player","Quick NIF", GLOB.player_list)
|
||||
|
||||
if(!H)
|
||||
return
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
var/largest_click_time = 0
|
||||
var/mob/largest_move_mob = null
|
||||
var/mob/largest_click_mob = null
|
||||
for(var/mob/M in mob_list)
|
||||
for(var/mob/M in GLOB.mob_list)
|
||||
if(!M.client)
|
||||
continue
|
||||
if(M.next_move >= largest_move_time)
|
||||
|
||||
@@ -33,7 +33,7 @@ Eventkit verb to be used to spawn the obj/effect/landmarks defined under code\ga
|
||||
AN.set_vars(src)
|
||||
|
||||
if("Manage Personal Triggers")
|
||||
var/personal_list = event_triggers[src.ckey]
|
||||
var/personal_list = GLOB.event_triggers[src.ckey]
|
||||
if(!LAZYLEN(personal_list))
|
||||
to_chat(src, span_notice("You don't have any landmarks to manage!"))
|
||||
return
|
||||
@@ -68,7 +68,7 @@ Eventkit verb to be used to spawn the obj/effect/landmarks defined under code\ga
|
||||
qdel(ET)
|
||||
if("Manage Other's Triggers")
|
||||
var/other_ckey = sanitize(tgui_input_text(src, "input trigger owner's ckey", "CKEY", ""))
|
||||
var/others_list = event_triggers[other_ckey]
|
||||
var/others_list = GLOB.event_triggers[other_ckey]
|
||||
if(!LAZYLEN(others_list))
|
||||
to_chat(src, span_notice("[other_ckey] doesn't have any landmarks to manage!"))
|
||||
return
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
if(!check_rights(R_FUN)) return
|
||||
|
||||
var/player_list_local = player_list //Copying player list so we don't touch a global var all the time
|
||||
var/player_list_local = GLOB.player_list //Copying player list so we don't touch a global var all the time
|
||||
var/list/area_list = list() //An associative list, where key is area name, value is a list of mob references
|
||||
var/inactives = 0
|
||||
var/players = 0
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
// And for those far away. If the strike happens on a planet, everyone on the planet will hear it.
|
||||
// Otherwise only those on the current z-level will hear it.
|
||||
var/sound = get_sfx("thunder")
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
if( (P && (M.z in P.expected_z_levels)) || M.z == T.z)
|
||||
if(M.check_sound_preference(/datum/preference/toggle/weather_sounds))
|
||||
M.playsound_local(get_turf(M), soundin = sound, vol = 70, vary = FALSE, is_global = TRUE)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
/datum/admins/proc/list_dna()
|
||||
var/data = "<b>Showing DNA from blood.</b><hr>"
|
||||
data += "<table cellspacing=5 border=1><tr><th>Name</th><th>DNA</th><th>Blood Type</th></tr>"
|
||||
for(var/entry in mob_list)
|
||||
for(var/entry in GLOB.mob_list)
|
||||
var/mob/living/carbon/human/subject = entry
|
||||
if(subject.ckey)
|
||||
data += "<tr><td>[subject]</td><td>[subject.dna?.unique_enzymes]</td><td>[subject.dna ? subject.dna.b_type : DEFAULT_BLOOD_TYPE]</td></tr>"
|
||||
@@ -46,7 +46,7 @@
|
||||
/datum/admins/proc/list_fingerprints() //kid named fingerprints
|
||||
var/data = "<b>Showing Fingerprints.</b><hr>"
|
||||
data += "<table cellspacing=5 border=1><tr><th>Name</th><th>Fingerprints</th></tr>"
|
||||
for(var/entry in mob_list)
|
||||
for(var/entry in GLOB.mob_list)
|
||||
var/mob/living/carbon/human/subject = entry
|
||||
if(subject.ckey)
|
||||
data += "<tr><td>[subject]</td><td>[md5(subject.dna?.uni_identity)]</td></tr>"
|
||||
@@ -71,7 +71,7 @@
|
||||
|
||||
/datum/admins/proc/output_ai_laws()
|
||||
var/ai_number = 0
|
||||
for(var/mob/living/silicon/S in mob_list)
|
||||
for(var/mob/living/silicon/S in GLOB.mob_list)
|
||||
ai_number++
|
||||
if(isAI(S))
|
||||
to_chat(usr, span_bold("AI [key_name(S, usr)]'s laws:"))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//Allows to add and remove modules from borgs
|
||||
/client/proc/modify_robot(var/mob/living/silicon/robot/target in silicon_mob_list)
|
||||
/client/proc/modify_robot(var/mob/living/silicon/robot/target in GLOB.silicon_mob_list)
|
||||
set name = "Modify Robot Module"
|
||||
set desc = "Allows to add or remove modules to/from robots."
|
||||
set category = "Admin.Silicon"
|
||||
|
||||
@@ -41,7 +41,7 @@ var/list/sounds_cache = list()
|
||||
log_admin("[key_name(src)] played sound [S]")
|
||||
message_admins("[key_name_admin(src)] played sound [S]", 1)
|
||||
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
if(M.read_preference(/datum/preference/toggle/play_admin_midis))
|
||||
admin_sound.volume = vol * M.client.admin_music_volume
|
||||
SEND_SOUND(M, admin_sound)
|
||||
@@ -67,7 +67,7 @@ var/list/sounds_cache = list()
|
||||
return
|
||||
|
||||
if(!M)
|
||||
M = tgui_input_list(usr, "Choose a mob to play the sound to. Only they will hear it.", "Play Mob Sound", sortNames(player_list))
|
||||
M = tgui_input_list(usr, "Choose a mob to play the sound to. Only they will hear it.", "Play Mob Sound", sortNames(GLOB.player_list))
|
||||
if(!M || QDELETED(M))
|
||||
return
|
||||
log_admin("[key_name(src)] played a direct mob sound [S] to [M].")
|
||||
@@ -90,7 +90,7 @@ var/list/sounds_cache = list()
|
||||
|
||||
log_admin("[key_name(src)] played sound [S] on Z[target_z]")
|
||||
message_admins("[key_name_admin(src)] played sound [S] on Z[target_z]", 1)
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
if(M.read_preference(/datum/preference/toggle/play_admin_midis) && M.z == target_z)
|
||||
M << uploaded_sound
|
||||
|
||||
@@ -201,7 +201,7 @@ var/list/sounds_cache = list()
|
||||
|
||||
return
|
||||
if(web_sound_url || stop_web_sounds)
|
||||
for(var/m in player_list)
|
||||
for(var/m in GLOB.player_list)
|
||||
var/mob/M = m
|
||||
var/client/C = M.client
|
||||
if(C.prefs?.read_preference(/datum/preference/toggle/play_admin_midis))
|
||||
@@ -250,7 +250,7 @@ var/list/sounds_cache = list()
|
||||
|
||||
log_admin("[key_name(src)] stopped all currently playing sounds.")
|
||||
message_admins("[key_name_admin(src)] stopped all currently playing sounds.")
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
SEND_SOUND(M, sound(null))
|
||||
var/client/C = M.client
|
||||
C?.tgui_panel?.stop_music()
|
||||
@@ -269,12 +269,12 @@ var/list/sounds_cache = list()
|
||||
set name = "Cuban Pete Time"
|
||||
|
||||
message_admins("[key_name_admin(usr)] has declared Cuban Pete Time!", 1)
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
if(M.client)
|
||||
if(M.client.midis)
|
||||
M << 'cubanpetetime.ogg'
|
||||
|
||||
for(var/mob/living/carbon/human/CP in human_mob_list)
|
||||
for(var/mob/living/carbon/human/CP in GLOB.human_mob_list)
|
||||
if(CP.real_name=="Cuban Pete" && CP.key!="Rosham")
|
||||
to_chat(CP, "Your body can't contain the rhumba beat")
|
||||
CP.gib()
|
||||
@@ -285,7 +285,7 @@ var/list/sounds_cache = list()
|
||||
set name = "Banana Phone"
|
||||
|
||||
message_admins("[key_name_admin(usr)] has activated Banana Phone!", 1)
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
if(M.client)
|
||||
if(M.client.midis)
|
||||
M << 'bananaphone.ogg'
|
||||
@@ -296,7 +296,7 @@ var/list/sounds_cache = list()
|
||||
set name = "Space Asshole"
|
||||
|
||||
message_admins("[key_name_admin(usr)] has played the Space Asshole Hymn.", 1)
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
if(M.client)
|
||||
if(M.client.midis)
|
||||
M << 'sound/music/space_asshole.ogg'
|
||||
@@ -307,7 +307,7 @@ var/list/sounds_cache = list()
|
||||
set name = "Honk"
|
||||
|
||||
message_admins("[key_name_admin(usr)] has creeped everyone out with Blackest Honks.", 1)
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
if(M.client)
|
||||
if(M.client.midis)
|
||||
M << 'honk_theme.ogg'*/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
GLOBAL_VAR_INIT(global_vantag_hud, 0)
|
||||
|
||||
ADMIN_VERB_AND_CONTEXT_MENU(drop_everything, R_ADMIN, "Drop Everything", ADMIN_VERB_NO_DESCRIPTION, ADMIN_CATEGORY_HIDDEN, mob/living/dropee in mob_list)
|
||||
ADMIN_VERB_AND_CONTEXT_MENU(drop_everything, R_ADMIN, "Drop Everything", ADMIN_VERB_NO_DESCRIPTION, ADMIN_CATEGORY_HIDDEN, mob/living/dropee in GLOB.mob_list)
|
||||
var/confirm = tgui_alert(src, "Make [dropee] drop everything?", "Message", list("Yes", "No"))
|
||||
if(confirm != "Yes")
|
||||
return
|
||||
@@ -17,7 +17,7 @@ ADMIN_VERB_AND_CONTEXT_MENU(drop_everything, R_ADMIN, "Drop Everything", ADMIN_V
|
||||
message_admins(msg)
|
||||
feedback_add_details("admin_verb","DEVR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/cmd_admin_prison(mob/M as mob in mob_list)
|
||||
/client/proc/cmd_admin_prison(mob/M as mob in GLOB.mob_list)
|
||||
set category = "Admin.Game"
|
||||
set name = "Prison"
|
||||
if(!check_rights_for(src, R_HOLDER))
|
||||
@@ -81,7 +81,7 @@ ADMIN_VERB_AND_CONTEXT_MENU(drop_everything, R_ADMIN, "Drop Everything", ADMIN_V
|
||||
else
|
||||
to_chat(src, "No matches for that age range found.")
|
||||
|
||||
/client/proc/cmd_admin_subtle_message(mob/M as mob in mob_list)
|
||||
/client/proc/cmd_admin_subtle_message(mob/M as mob in GLOB.mob_list)
|
||||
set category = "Admin"
|
||||
set name = "Subtle Message"
|
||||
|
||||
@@ -156,7 +156,7 @@ ADMIN_VERB_AND_CONTEXT_MENU(drop_everything, R_ADMIN, "Drop Everything", ADMIN_V
|
||||
admin_ticket_log(M, msg)
|
||||
feedback_add_details("admin_verb","DIRN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/cmd_admin_godmode(mob/M as mob in mob_list)
|
||||
/client/proc/cmd_admin_godmode(mob/M as mob in GLOB.mob_list)
|
||||
set category = "Admin.Game"
|
||||
set name = "Godmode"
|
||||
|
||||
@@ -258,17 +258,13 @@ Ccomp's first proc.
|
||||
|
||||
var/list/mobs = list()
|
||||
var/list/ghosts = list()
|
||||
var/list/sortmob = sortAtom(mob_list) // get the mob list.
|
||||
var/any=0
|
||||
for(var/mob/observer/dead/M in sortmob)
|
||||
mobs.Add(M) //filter it where it's only ghosts
|
||||
any = 1 //if no ghosts show up, any will just be 0
|
||||
if(!any)
|
||||
if(!LAZYLEN(GLOB.observer_mob_list))
|
||||
if(notify)
|
||||
to_chat(src, "There doesn't appear to be any ghosts for you to select.")
|
||||
return
|
||||
var/list/sortmob = sort_names(GLOB.observer_mob_list) // get the mob list.
|
||||
|
||||
for(var/mob/M in mobs)
|
||||
for(var/mob/M in sortmob)
|
||||
var/name = M.name
|
||||
ghosts[name] = M //get the name of the mob for the popup list
|
||||
if(what==1)
|
||||
@@ -440,7 +436,7 @@ ADMIN_VERB(respawn_character, (R_ADMIN|R_REJUVINATE), "Spawn Character", "(Re)Sp
|
||||
|
||||
//Well you're not reloading their job or they never had one.
|
||||
if(!charjob)
|
||||
var/pickjob = tgui_input_list(src,"Pick a job to assign them (or none).","Job Select", joblist + "-No Job-", "-No Job-")
|
||||
var/pickjob = tgui_input_list(src,"Pick a job to assign them (or none).","Job Select", GLOB.joblist + "-No Job-", "-No Job-")
|
||||
if(!pickjob)
|
||||
return
|
||||
if(pickjob != "-No Job-")
|
||||
@@ -619,14 +615,14 @@ ADMIN_VERB(respawn_character, (R_ADMIN|R_REJUVINATE), "Spawn Character", "(Re)Sp
|
||||
var/input = sanitize(tgui_input_text(usr, "Please enter anything you want the AI to do. Anything. Serious.", "What?", ""))
|
||||
if(!input)
|
||||
return
|
||||
for(var/mob/living/silicon/ai/M in mob_list)
|
||||
for(var/mob/living/silicon/ai/M in GLOB.mob_list)
|
||||
if (M.stat == 2)
|
||||
to_chat(usr, "Upload failed. No signal is being detected from the AI.")
|
||||
else if (M.see_in_dark == 0)
|
||||
to_chat(usr, "Upload failed. Only a faint signal is being detected from the AI, and it is not responding to our requests. It may be low on power.")
|
||||
else
|
||||
M.add_ion_law(input)
|
||||
for(var/mob/living/silicon/ai/O in mob_list)
|
||||
for(var/mob/living/silicon/ai/O in GLOB.mob_list)
|
||||
to_chat(O,input + span_red("... LAWS UPDATED!"))
|
||||
O.show_laws()
|
||||
|
||||
@@ -638,7 +634,7 @@ ADMIN_VERB(respawn_character, (R_ADMIN|R_REJUVINATE), "Spawn Character", "(Re)Sp
|
||||
command_announcement.Announce("Ion storm detected near the [station_name()]. Please check all AI-controlled equipment for errors.", "Anomaly Alert", new_sound = 'sound/AI/ionstorm.ogg')
|
||||
feedback_add_details("admin_verb","IONC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/cmd_admin_rejuvenate(mob/living/M as mob in mob_list)
|
||||
/client/proc/cmd_admin_rejuvenate(mob/living/M as mob in GLOB.mob_list)
|
||||
set category = "Admin.Game"
|
||||
set name = "Rejuvenate"
|
||||
|
||||
@@ -723,7 +719,7 @@ ADMIN_VERB(respawn_character, (R_ADMIN|R_REJUVINATE), "Spawn Character", "(Re)Sp
|
||||
switch(tgui_alert(usr, "How would you like to ban someone today?", "Manual Ban", "Key List", "Enter Manually", "Cancel"))
|
||||
if("Key List")
|
||||
var/list/keys = list()
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
keys += M.client
|
||||
var/selection = tgui_input_list(usr, "Please, select a player!", "Admin Jumping", keys)
|
||||
if(!selection)
|
||||
@@ -774,7 +770,7 @@ ADMIN_VERB(respawn_character, (R_ADMIN|R_REJUVINATE), "Spawn Character", "(Re)Sp
|
||||
// I will both remove their SVN access and permanently ban them from my servers.
|
||||
return
|
||||
|
||||
/client/proc/cmd_admin_check_contents(mob/living/M as mob in mob_list)
|
||||
/client/proc/cmd_admin_check_contents(mob/living/M as mob in GLOB.mob_list)
|
||||
set category = "Admin.Investigate"
|
||||
set name = "Check Contents"
|
||||
set popup_menu = FALSE
|
||||
@@ -902,7 +898,7 @@ ADMIN_VERB(respawn_character, (R_ADMIN|R_REJUVINATE), "Spawn Character", "(Re)Sp
|
||||
log_admin("[key_name(src)] has [emergency_shuttle.deny_shuttle ? "denied" : "allowed"] the shuttle to be called.")
|
||||
message_admins("[key_name_admin(usr)] has [emergency_shuttle.deny_shuttle ? "denied" : "allowed"] the shuttle to be called.")
|
||||
|
||||
/client/proc/cmd_admin_attack_log(mob/M as mob in mob_list)
|
||||
/client/proc/cmd_admin_attack_log(mob/M as mob in GLOB.mob_list)
|
||||
set category = "Admin.Logs"
|
||||
set name = "Attack Log"
|
||||
|
||||
@@ -963,7 +959,7 @@ ADMIN_VERB(respawn_character, (R_ADMIN|R_REJUVINATE), "Spawn Character", "(Re)Sp
|
||||
message_admins("Admin [key_name_admin(usr)] has disabled random events.", 1)
|
||||
feedback_add_details("admin_verb","TRE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/despawn_player(var/mob/M in living_mob_list)
|
||||
/client/proc/despawn_player(var/mob/M in GLOB.living_mob_list)
|
||||
set name = "Cryo Player"
|
||||
set category = "Admin.Game"
|
||||
set desc = "Removes a player from the round as if they'd cryo'd."
|
||||
@@ -1075,7 +1071,7 @@ ADMIN_VERB(respawn_character, (R_ADMIN|R_REJUVINATE), "Spawn Character", "(Re)Sp
|
||||
if(!check_rights(R_SPAWN))
|
||||
return
|
||||
|
||||
var/mob/living/L = tgui_input_list(usr, "Select the mob to drop:", "Mob Picker", living_mob_list)
|
||||
var/mob/living/L = tgui_input_list(usr, "Select the mob to drop:", "Mob Picker", GLOB.living_mob_list)
|
||||
if(!L)
|
||||
return
|
||||
|
||||
@@ -1102,7 +1098,7 @@ ADMIN_VERB(respawn_character, (R_ADMIN|R_REJUVINATE), "Spawn Character", "(Re)Sp
|
||||
|
||||
GLOB.global_vantag_hud = !GLOB.global_vantag_hud
|
||||
if(GLOB.global_vantag_hud)
|
||||
for(var/mob/living/L in living_mob_list)
|
||||
for(var/mob/living/L in GLOB.living_mob_list)
|
||||
if(L.ckey)
|
||||
L.vantag_hud = TRUE
|
||||
L.recalculate_vis()
|
||||
|
||||
@@ -100,7 +100,7 @@ ADMIN_VERB(cmd_admin_z_narrate, (R_ADMIN|R_MOD|R_EVENT), "Z Narrate", "Narrates
|
||||
var/pos_z = get_z(user.mob)
|
||||
if (!pos_z)
|
||||
return
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
if(M.z == pos_z)
|
||||
to_chat(M, msg)
|
||||
log_admin("ZNarrate: [key_name(user)] : [msg]")
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
ADMIN_VERB_AND_CONTEXT_MENU(resize, (R_ADMIN|R_FUN|R_VAREDIT), "Resize", "Resizes any living mob without any restrictions on size.", "Fun.Event Kit", mob/living/L in mob_list)
|
||||
ADMIN_VERB_AND_CONTEXT_MENU(resize, (R_ADMIN|R_FUN|R_VAREDIT), "Resize", "Resizes any living mob without any restrictions on size.", "Fun.Event Kit", mob/living/L in GLOB.mob_list)
|
||||
var/size_multiplier = tgui_input_number(usr, "Input size multiplier.", "Resize", 1, round_value=FALSE)
|
||||
if(!size_multiplier)
|
||||
return //cancelled
|
||||
|
||||
size_multiplier = clamp(size_multiplier, -50, 50) //VOREStation Edit - being able to make people upside down is fun. Also 1000 is way, WAY too big. Honestly 50 is too big but at least you can see 50 and it doesn't break the rendering.
|
||||
size_multiplier = clamp(size_multiplier, -50, 50) //being able to make people upside down is fun. Also 1000 is way, WAY too big. Honestly 50 is too big but at least you can see 50 and it doesn't break the rendering.
|
||||
var/can_be_big = L.has_large_resize_bounds()
|
||||
var/very_big = is_extreme_size(size_multiplier)
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ ADMIN_VERB(secrets, R_HOLDER, "Secrets", "Abuse harder than you ever have before
|
||||
holder.holder.list_fingerprints()
|
||||
|
||||
if("prison_warp")
|
||||
for(var/mob/living/carbon/human/H in mob_list)
|
||||
for(var/mob/living/carbon/human/H in GLOB.mob_list)
|
||||
var/turf/T = get_turf(H)
|
||||
var/security = 0
|
||||
if((T in using_map.admin_levels) || GLOB.prisonwarped.Find(H))
|
||||
@@ -244,7 +244,7 @@ ADMIN_VERB(secrets, R_HOLDER, "Secrets", "Abuse harder than you ever have before
|
||||
if("ghost_mode")
|
||||
var/list/affected_mobs = list()
|
||||
var/list/affected_areas = list()
|
||||
for(var/mob/M in living_mob_list)
|
||||
for(var/mob/M in GLOB.living_mob_list)
|
||||
if(M.stat == CONSCIOUS && !(M in affected_mobs))
|
||||
affected_mobs |= M
|
||||
switch(rand(1,4))
|
||||
@@ -409,7 +409,7 @@ ADMIN_VERB(secrets, R_HOLDER, "Secrets", "Abuse harder than you ever have before
|
||||
|
||||
//buttons that are fun for exactly you and nobody else.
|
||||
if("corgie")
|
||||
for(var/mob/living/carbon/human/H in mob_list)
|
||||
for(var/mob/living/carbon/human/H in GLOB.mob_list)
|
||||
spawn(0)
|
||||
H.corgize()
|
||||
|
||||
@@ -419,7 +419,7 @@ ADMIN_VERB(secrets, R_HOLDER, "Secrets", "Abuse harder than you ever have before
|
||||
//SSblackbox.record_feedback("nested tally", "admin_secrets_fun_used", 1, list("Monkeyize All Humans"))
|
||||
message_admins("[key_name_admin(holder)] made everyone into monkeys.")
|
||||
log_admin("[key_name_admin(holder)] made everyone into monkeys.")
|
||||
for(var/i in mob_list)
|
||||
for(var/i in GLOB.mob_list)
|
||||
var/mob/living/carbon/human/H = i
|
||||
INVOKE_ASYNC(H, TYPE_PROC_REF(/mob/living/carbon/human, monkeyize))
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/client/proc/smite(var/mob/living/carbon/human/target in player_list)
|
||||
/client/proc/smite(var/mob/living/carbon/human/target in GLOB.player_list)
|
||||
set name = "Smite"
|
||||
set desc = "Abuse a player with various 'special treatments' from a list."
|
||||
set category = "Fun.Do Not"
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
//~CARN: for renaming mobs (updates their name, real_name, mind.name, their ID/PDA and datacore records).
|
||||
if(href_list["rename"])
|
||||
|
||||
var/mob/M = locate(href_list["rename"]) in mob_list
|
||||
var/mob/M = locate(href_list["rename"]) in GLOB.mob_list
|
||||
if(!istype(M))
|
||||
to_chat(usr, "This can only be used on instances of type /mob", confidential = TRUE)
|
||||
return
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
else if(href_list["adjustDamage"] && href_list["mobToDamage"])
|
||||
|
||||
var/mob/living/L = locate(href_list["mobToDamage"]) in mob_list
|
||||
var/mob/living/L = locate(href_list["mobToDamage"]) in GLOB.mob_list
|
||||
if(!istype(L))
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user