mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-25 01:22:24 +00:00
* Add files via upload * Removes Noble Defines * Mech Mini 'Revamp'. Will need playtesting. (#5480) * Exosuits are now capable of holding more equipment, of specific types. * Tweaks regarding feedback in staffside thread, other concerns. * Tweak to be more consistent. Why did the Odysseus have two universals. Tweak to weapon restriction on Med - > Odyss * Weapons only fit in universal combat slots. * Adds smart magazine, magazine functionality * Adds a new subset of grenades that shoot projectiles * Low alpha now makes HUDs and tooltips not show up on you * Fixes a UI bug with emptying currently-open bags into smartfridges...hopefully. (#5515) * Update smartfridge.dm * actually indicates which line solves the bug * Adds a whole bunch of Exosuit weapons and other miscellaneous parts. * Minifrags now use the small fragments mainly as they should. * Iced beer no longer freezes you to 3 degrees C, which is enough to seriously burn a Skrell. Seriously, that's weird. * Touch stuff in reference to responses. * NanoUI now processes again * Initial Work: Manifest, Newsfeed * Adds newscast viewing, manifest * Cartridge devices * Template progress * Med records, Sec records, Emp records * Cartridge work part 1 * Cartridge work: part 2 * Power monitoring console * Cartridges have persistent, internal data * Code to load element-specific data upon request, instead of serving all relevant data at once * Janitorial Supply Locator * Refactor crew manifest to a separate file * GPS cartridge * Reorganize GPS to proper organization, important comments * Supply cartridge * Status display access * Merc blast door controller * Appeases travis (Round 1) * Appeases travis (Round 2) * Headset sprites are now on the default ear, which is left * Cleave changes, attack code cleanup * Catching is no longer guaranteed, accuracy code is more general * Adds a Neural implant for future implementation. Promethean brains have been updated to fit it. * changelog * Robots can attack things again * Might help with air subsystem lag * Ports the spinny throwing animation from Bay * Cult heal modifier no longer does Shit-Tons of agony. Does mediocre agony on non-cultists. * Defines. * Headset sprite tweaks * Shield Drone no longer auto-fails with Energy Relays. * I'm an idiot. * PoIs can be rotated in increments of 90 degrees * Might fix the server startup error_handler runtime * Cult Girders are back to being proper. * Submaps can now be rotated to any cardinal direction (South is default) * Should fix another runtime with tools * Buffs the Vox * Removes debug code (Yes, I'm an idiot) * Ready for merge * Fixes some bugs tangentially related to Vox code * Ports /vg/ instrument frame work, adds client based sound pref Also shifts sound files which is 98% of the bulk here. * Helmets now show only certain hairstyles * fixes the trailing tag, I think * Scrubbers no longer automatically scrub phoron (#5512) * adds manual changelog * Adds new set of cyborg sprites for medical/science/default/security/combat (#5546) * Refactor cargo trains, they're just normal trains now. Adds the Quad, and re-enables/fixes the Space Bike! * communicator_header.tmpl now correctly includes Body * Adds tails to Unathi rig suit sprites (#5551) * supplycom/control drops the correct circuit * Emags have an effect on cargo consoles * The cybersuit is now a space suit. * Map Bugfixes - Fix for mislabeled c_tag cameras, first deck - Fix for mislabeled c_tag cameras, second deck - Fix for poi crashed containment shuttle mapping issues (terrain generation) - Fixed wrong floor type on skipjack - Fix for scrubbers pipe, central substation - Fix for air supply pipe, chapel - Fixed scrubber pipe, Engineering Drone Fab - Fix for air supply pipe, Prison Wing - Removed redundant supply and scrubber pipe, Security Auxiliary Dock - Fix, Fore Aux Dock airlock pipe. - Fix air supply pipe, library - Fix, scrubber pipe, coffee shop - Pipe fix, Medical maint - Fix, supply pipe medical secondary storage - Removal, redundant supply pipe, cargo maint - Fix, virology scrubbers pipes - Fix Xenobio and Xenoflora missing atmos connection to the main outpost - Fix, missing atmos connections between Main outpost telecoms and main outpost atmos - Fix for missing power wires, HoS Office, Warden Office, Heads of Staff Meeting Room - New, random mouse spawner - New, random mouse spawners added throughout maintenance on the station (maybe too many, maus station 13) - New, 30 sheets of lead added to engineering - Fix, POIs should now be rad protected and characters won’t be affected by the radiation event * Fixes Lead Walls (#5562) A material's ``radiation_resistance`` was never considered for calculating a wall's cached resistance to radiation. This fixes it. There is another issue involving r-walls not being better at stopping radiation than their normal-wall counterparts made of the same material but fixing that involves a lot of number adjusting to avoid the SM engine from getting twice as protective. * Yet Another Circuit Update (#5549) * Circuit updates, adds new components, improves printer, new assemblies. * Finishes powernet circuit. * Adds wearable assemblies. * Finialization before merging with GLOB port. * Finishes circuit update, hopefully. * Forgot to undo map. * Removes debug output. * Readds size traits * Signal pistol can be reloaded (#5566) * Makes Blobs more useful. * Rig and Spacesuit additions - Added the 'military' Rigsuit from Bay. - Added 'pmc' rigsuits - Added exploration and pilot voidsuits along with alternate sprites (alternate sprites done by Naidh) - Addition of suit cyclers for exploration and pilot voidsuits None of these suits are currently accessible in game outside of admin bus. Currently only the pilot voidsuits have other species sprites. Exploration suits are missing sprites for Teshari (Naidh made some for their alternates but I have to add them) and the rig suits are human only. This is to be fixed in the near future, just wanted to get the make workload actually in the game first. * Dermal implant doesn't cover hair * Fixes a couple of tool related oversight/runtimes * Fixes hand and leg cuffs * Technically adds the Ore Redemption Machine * Update combat.dm * Boot knives fit in boots * Adds tails to Unathi rigsuits (again) * PoI fix * Skrell names no longer contain spaces * Descriptors now properly respect species differences * Make the Statue NOT entirely immortal. * Psychiatric Medication Fix (#5588) * Psychiatric medications are faster when ingested * Psychiatric med fix * Updates changelog * Tweaks emitters and Pacman * Adds the Biopsy Scanner to the Surgery Kit (#5589) * Adds the Biopsy Scanner to the Surgery Kit Since it's actually used in a surgical operation, it should proooobably be in the kit. Iunno if the kit is really used here aside from antag shuttles, but they might as well have it. * Added a missing comma Missed a comma, might be what's causing issues. Iunno. It worked flawlessly in dream-maker. * Adds some Holy drinks, and Promethean-safe drinks / acclimators. (#5574) * Adds some Holy drinks, and Promethean-safe drinks / acclimators. * Carbon + Water + Oil = Sludge * TRUEFALSE & * removed * Be Smart about damage things. * Don't spawn things in Null please. * Adds a generic proc to the mining vendor to add custom / blank entries. * Keys now actually exist again. * Species item slowdown changes * Pose now shows up under descriptors * Fixes Circuitry Glasses. Button in HUD should work now. * Phase rifle size correction * Should fix the new bugs with webslinger spiders (#5612) * Hyposprays can now have different sounds * admin helps, but working this time. * handle issue, GLOB staffwho * admin list seems bork'd cleans up feedback messages * Fixes grabs breaking defined mob pixel offsets. Yeah. * Custom RIG Framework (#5613) * Framework for Custom RIG sprites. * Fixfix * line ending * Text for handheld plushies when poked Plushies now make sounds when poked. Squeak! Ported from https://github.com/VOREStation/VOREStation/pull/4231 * Shotgun cycling animation framework This adds the possiblity for empty sprites on all shotgun/pump/thing and for cycling animations. https://cdn.discordapp.com/attachments/407267031562453032/488751327531368481/2018-09-10_18-43-05.gif This particular weapon was made by a friend so i'll wait for their permission before porting it in. * Add an animated rifle. Nothing is particularly impressive except the animation. * Fixes some bloodloss bugs * Move almost everythign food related into the kitchen module. Not moving reagents and tools. * Minor issues fix. * Remplace sprite hammer with pickaxe This particular hammer had been sitting 'waiting for sprites' for 4 years at least. Could be a lot more really. Fixeshttps://github.com/VOREStation/VOREStation/issues/4183 * Fix mislabelled posters. https://github.com/VOREStation/VOREStation/pull/4310 https://github.com/VOREStation/VOREStation/issues/3597 * Remove kobold.dm This file has no sprites and is used nowhere. It does have some kinda cute emotes but without sprites it's useless and has been since 2017 and maybe much longer. I haven't found any references of it's origin either. ~~maybe virgo will do sprites i dunno~~ * Fix yes emote not working correctly. It's a lazy fix but it works. * Fixes chem master dumping reagents. Previously, if you used a bluespace beaker and transferred all of it's contents, the chem master buffer would silently drop all of those chemicals without warning. * Fixed smes terminal construction requiring more cable than used. * Fixes laptop blocking grown adults. * Fixes several typos with oxygen_pump.dm. * Fix the condimaster not working. Previously, you simply couldn't make any condiment using this machine. Now you can. There was just missing template which is back in with this PR. (Thanks aronai.) This means you should consider remplacing it in your kitchens. * Remove intensity from chemistry machines. * Add a noise for mining scanners. This should affects all devices using it too. * Prevents people from HREF exploiting around the R&D console. * Lock has a check already, so remove that. * reeeeeeeee * Fixes missing sprites when excavating rocks * Xenoflora and Xenobio House Move - Moves Xenoflora and Xenobio stationside, on first deck. Leaves the old labs still up planetside for the time being. - Minor bug fixes, missing lights, mislabeled lockers in robotics, floor decals. * Changes << to to_chat at request. * wax staxs * Fix plastic ashtrays only holding one butt. Now they hold 4butts. jeez bill. * Move surgery caps into their own selection. * Fixes maploading Imagine you're on the last iteration of this loop, you've done the final column of X coordinates and you're going to set maxx. Would you want to set it to where you are now, the final X column... or would you want to add ONE MORE beyond the template size for some reason then set it to that? This bug causes all templates that are the size of normal maps to fail to initialize any atoms if your template is the size of your normal maps, because it tries to obtain a square of size minx, miny, minz, maxx, maxy, maxz to initialize, however maxx is nonextant because it exists outside the bounds of the world. It also causes all submaps to initialize an additional column of atoms twice, or not initialize any if they spawn against the right edge of the map. * More paths to Quick_Create Add devices Add guns Add mecha_equipement Add mecha_parts Add reagent containers Add specially food Considering adding one for each clothing types such as under, head, above, gloves, glasses and so on. * Bring back the traitor panel verb. Now you don't have to right click on someone and open their player panel to reach it. How convenient! * Graves (#5622) * Adds support for closets storing closets, and graves * More Grave Things * Chnglog * Polaris Vision Tweaks * Fix a couple of ticket bugs Don't show admin character names when they reply, and this proc appears to take different options on tg, so was fixed here. * Prevent people from removing papers from any distances. * Removes maintenance access from cleanbots This should stop them from wandering into maintenance never to be seen or heard from again. * Ports Vote to SMC * Fixes two anchored-related bugs, taped papers and the medbay phone. * Remove very annoying midi tools * Magazines improvements (#5666) * Give sounds to emptying magazines * Clear some trash in the saber magazines * The magazine NOW behaves correctly. * The second half and more casing noises. * Fixes all waistcoast being black when worn in the suit slot * Makes RCDs Clean Again (#5679) * Makes RCDs Clean Again * Forgot a few things. * Adds Mods/Dev perms to ticket permission checks (#5683) * Fixes minor clipping issues in two cyberlimb sets * Fixes minor clipping issues in cyberlimbs * Fix wax appearing to be steel. * Actually make the system work correctly this time. Honestly this one is so much more clear than the other that we should always use it. * Fixes new record bug. (#5685) * Fix for duplicated loadout descriptions (#5694) * Add files via upload * Revert "Merge pull request #1 from Shophaune/plant-bag-ui-bug-fix" This reverts commit62a60d4f87, reversing changes made to6f909ce590. * Borrowing Ibnesquik's descriptions to fix this issue quickly. * Fixes PDA manifest excluding all non-syndie borgs (#5695) * Fixes PDA manifest excluding all non-syndie borgs I'm preetty sure the original PR had the opposite intention of what it actually did. * Update obj.dm * Update obj.dm * Fixes duplication of corpses by holding and then cooking (#5693) * Add files via upload * Revert "Merge pull request #1 from Shophaune/plant-bag-ui-bug-fix" This reverts commit62a60d4f87, reversing changes made to6f909ce590. * Fix for cooking mob duplication * Actually this is a better method, thanks Baystation Yeah they kinda fixed it three days ago way better than I did it so
1087 lines
42 KiB
Plaintext
1087 lines
42 KiB
Plaintext
//admin verb groups - They can overlap if you so wish. Only one of each verb will exist in the verbs list regardless
|
|
var/list/admin_verbs_default = list(
|
|
/datum/admins/proc/show_player_panel, //shows an interface for individual players, with various links (links require additional flags,
|
|
/client/proc/player_panel,
|
|
/client/proc/deadmin_self, //destroys our own admin datum so we can play as a regular player,
|
|
/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/check_antagonists, //shows all antags,
|
|
// /client/proc/cmd_mod_say,
|
|
// /client/proc/deadchat //toggles deadchat on/off,
|
|
// /client/proc/toggle_ahelp_sound,
|
|
)
|
|
|
|
var/list/admin_verbs_admin = list(
|
|
/client/proc/player_panel_new, //shows an interface for all players, with links to various panels,
|
|
/datum/admins/proc/set_tcrystals,
|
|
/datum/admins/proc/add_tcrystals,
|
|
/client/proc/invisimin, //allows our mob to go invisible/visible,
|
|
/datum/admins/proc/show_traitor_panel, //interface which shows a mob's mind.,
|
|
/datum/admins/proc/show_game_mode, //Configuration window for the current game mode.,
|
|
/datum/admins/proc/force_mode_latespawn, //Force the mode to try a latespawn proc,
|
|
/datum/admins/proc/force_antag_latespawn, //Force a specific template to try a latespawn proc,
|
|
/datum/admins/proc/toggleenter, //toggles whether people can join the current game,
|
|
/datum/admins/proc/toggleguests, //toggles whether guests can join the current game,
|
|
/datum/admins/proc/announce, //priority announce something to all clients.,
|
|
/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/colorooc, //allows us to set a custom colour for everythign we say in ooc,
|
|
/client/proc/admin_ghost, //allows us to ghost/reenter body at will,
|
|
/client/proc/toggle_view_range, //changes how far we can see,
|
|
/datum/admins/proc/view_txt_log, //shows the server log (diary) for today,
|
|
/datum/admins/proc/view_atk_log, //shows the server combat-log, doesn't do anything presently,
|
|
/client/proc/cmd_admin_pm_context, //right-click adminPM interface,
|
|
/client/proc/cmd_admin_pm_panel, //admin-pm list,
|
|
/client/proc/cmd_admin_subtle_message, //send an message to somebody as a 'voice in their head',
|
|
/client/proc/cmd_admin_delete, //delete an instance/object/mob/etc,
|
|
/client/proc/cmd_admin_check_contents, //displays the contents of an instance,
|
|
/datum/admins/proc/access_news_network, //allows access of newscasters,
|
|
/client/proc/giveruntimelog, //allows us to give access to runtime logs to somebody,
|
|
/client/proc/getserverlog, //allows us to fetch server logs (diary) for other days,
|
|
/client/proc/jumptocoord, //we ghost and jump to a coordinate,
|
|
/client/proc/Getmob, //teleports a mob to our location,
|
|
/client/proc/Getkey, //teleports a mob with a certain ckey to our location,
|
|
// /client/proc/sendmob, //sends a mob somewhere, -Removed due to it needing two sorting procs to work, which were executed every time an admin right-clicked. ~Errorage,
|
|
/client/proc/Jump,
|
|
/client/proc/jumptokey, //allows us to jump to the location of a mob with a certain ckey,
|
|
/client/proc/jumptomob, //allows us to jump to a specific mob,
|
|
/client/proc/jumptoturf, //allows us to jump to a specific turf,
|
|
/client/proc/admin_call_shuttle, //allows us to call the emergency shuttle,
|
|
/client/proc/admin_cancel_shuttle, //allows us to cancel the emergency shuttle, sending it back to CentCom,
|
|
/client/proc/cmd_admin_direct_narrate, //send text directly to a player with no padding. Useful for narratives and fluff-text,
|
|
/client/proc/cmd_admin_world_narrate, //sends text to all players with no padding,
|
|
/client/proc/cmd_admin_create_centcom_report,
|
|
/client/proc/check_words, //displays cult-words,
|
|
/client/proc/check_ai_laws, //shows AI and borg laws,
|
|
/client/proc/rename_silicon, //properly renames silicons,
|
|
/client/proc/manage_silicon_laws, // Allows viewing and editing silicon laws. ,
|
|
/client/proc/check_antagonists,
|
|
/client/proc/admin_memo, //admin memo system. show/delete/write. +SERVER needed to delete admin memos of others,
|
|
/client/proc/dsay, //talk in deadchat using our ckey/fakekey,
|
|
// /client/proc/toggle_hear_deadcast, //toggles whether we hear deadchat,
|
|
/client/proc/investigate_show, //various admintools for investigation. Such as a singulo grief-log,
|
|
/client/proc/secrets,
|
|
/datum/admins/proc/toggleooc, //toggles ooc on/off for everyone,
|
|
/datum/admins/proc/togglelooc, //toggles looc on/off for everyone,
|
|
/datum/admins/proc/toggleoocdead, //toggles ooc on/off for everyone who is dead,
|
|
/datum/admins/proc/togglehubvisibility, //toggles visibility on the BYOND Hub.,
|
|
/datum/admins/proc/toggledsay, //toggles dsay on/off for everyone,
|
|
/client/proc/game_panel, //game panel, allows to change game-mode etc,
|
|
/client/proc/cmd_admin_say, //admin-only ooc chat,
|
|
/client/proc/cmd_mod_say,
|
|
/client/proc/cmd_event_say,
|
|
/datum/admins/proc/PlayerNotes,
|
|
/datum/admins/proc/show_player_info,
|
|
/client/proc/free_slot, //frees slot for chosen job,
|
|
/client/proc/cmd_admin_change_custom_event,
|
|
/client/proc/cmd_admin_rejuvenate,
|
|
/client/proc/toggleghostwriters,
|
|
/client/proc/toggledrones,
|
|
/datum/admins/proc/show_skills,
|
|
/client/proc/check_customitem_activity,
|
|
/client/proc/man_up,
|
|
/client/proc/global_man_up,
|
|
/client/proc/response_team, // Response Teams admin verb,
|
|
/client/proc/trader_ship, // Trader ship admin verb,
|
|
/client/proc/toggle_antagHUD_use,
|
|
/client/proc/toggle_antagHUD_restrictions,
|
|
/client/proc/allow_character_respawn, // Allows a ghost to respawn ,
|
|
/client/proc/event_manager_panel,
|
|
/client/proc/empty_ai_core_toggle_latejoin,
|
|
/client/proc/empty_ai_core_toggle_latejoin,
|
|
/client/proc/aooc,
|
|
/client/proc/change_human_appearance_admin, // Allows an admin to change the basic appearance of human-based mobs ,
|
|
/client/proc/change_human_appearance_self, // Allows the human-based mob itself change its basic appearance ,
|
|
/client/proc/change_security_level,
|
|
/client/proc/view_chemical_reaction_logs,
|
|
/client/proc/makePAI,
|
|
/client/proc/toggle_debug_logs,
|
|
/client/proc/toggle_attack_logs,
|
|
/datum/admins/proc/paralyze_mob,
|
|
/client/proc/fixatmos,
|
|
/datum/admins/proc/sendFax,
|
|
/client/proc/despawn_player
|
|
)
|
|
|
|
var/list/admin_verbs_ban = list(
|
|
/client/proc/unban_panel,
|
|
/client/proc/jobbans
|
|
)
|
|
|
|
var/list/admin_verbs_sounds = list(
|
|
/client/proc/play_local_sound,
|
|
/client/proc/play_sound,
|
|
/client/proc/play_server_sound
|
|
)
|
|
|
|
var/list/admin_verbs_fun = list(
|
|
/client/proc/object_talk,
|
|
/datum/admins/proc/cmd_admin_dress,
|
|
/client/proc/cmd_admin_gib_self,
|
|
/client/proc/drop_bomb,
|
|
/client/proc/everyone_random,
|
|
/client/proc/cinematic,
|
|
/datum/admins/proc/toggle_aliens,
|
|
/datum/admins/proc/toggle_space_ninja,
|
|
/client/proc/cmd_admin_add_freeform_ai_law,
|
|
/client/proc/cmd_admin_add_random_ai_law,
|
|
/client/proc/make_sound,
|
|
/client/proc/toggle_random_events,
|
|
/client/proc/editappear,
|
|
/client/proc/roll_dices,
|
|
/datum/admins/proc/call_supply_drop,
|
|
/datum/admins/proc/call_drop_pod,
|
|
/client/proc/smite,
|
|
/client/proc/admin_lightning_strike
|
|
)
|
|
|
|
var/list/admin_verbs_spawn = list(
|
|
/datum/admins/proc/spawn_fruit,
|
|
/datum/admins/proc/spawn_custom_item,
|
|
/datum/admins/proc/check_custom_items,
|
|
/datum/admins/proc/spawn_plant,
|
|
/datum/admins/proc/spawn_atom, //allows us to spawn instances,
|
|
/client/proc/respawn_character,
|
|
/client/proc/virus2_editor,
|
|
/client/proc/spawn_chemdisp_cartridge,
|
|
/client/proc/map_template_load,
|
|
/client/proc/map_template_upload,
|
|
/client/proc/map_template_load_on_new_z
|
|
)
|
|
|
|
var/list/admin_verbs_server = list(
|
|
/datum/admins/proc/capture_map,
|
|
/client/proc/Set_Holiday,
|
|
/client/proc/ToRban,
|
|
/datum/admins/proc/startnow,
|
|
/datum/admins/proc/restart,
|
|
/datum/admins/proc/delay,
|
|
/datum/admins/proc/toggleaban,
|
|
/client/proc/cmd_mod_say,
|
|
/client/proc/toggle_log_hrefs,
|
|
/datum/admins/proc/immreboot,
|
|
/client/proc/everyone_random,
|
|
/datum/admins/proc/toggleAI,
|
|
/client/proc/cmd_admin_delete, //delete an instance/object/mob/etc,
|
|
/client/proc/cmd_debug_del_all,
|
|
/datum/admins/proc/adrev,
|
|
/datum/admins/proc/adspawn,
|
|
/datum/admins/proc/adjump,
|
|
/datum/admins/proc/toggle_aliens,
|
|
/datum/admins/proc/toggle_space_ninja,
|
|
/client/proc/toggle_random_events,
|
|
/client/proc/check_customitem_activity,
|
|
/client/proc/nanomapgen_DumpImage,
|
|
/client/proc/modify_server_news,
|
|
/client/proc/recipe_dump,
|
|
/client/proc/panicbunker,
|
|
/client/proc/paranoia_logging
|
|
)
|
|
|
|
var/list/admin_verbs_debug = list(
|
|
/client/proc/getruntimelog, //allows us to access runtime logs to somebody,
|
|
/client/proc/cmd_admin_list_open_jobs,
|
|
/client/proc/Debug2,
|
|
/client/proc/kill_air,
|
|
/client/proc/ZASSettings,
|
|
/client/proc/cmd_debug_make_powernets,
|
|
/client/proc/kill_airgroup,
|
|
/client/proc/debug_controller,
|
|
/client/proc/debug_antagonist_template,
|
|
/client/proc/cmd_debug_mob_lists,
|
|
/client/proc/cmd_debug_using_map,
|
|
/client/proc/cmd_admin_delete,
|
|
/client/proc/cmd_debug_del_all,
|
|
/client/proc/cmd_debug_tog_aliens,
|
|
/client/proc/cmd_display_del_log,
|
|
/client/proc/cmd_display_init_log,
|
|
/client/proc/cmd_display_overlay_log,
|
|
/client/proc/air_report,
|
|
/client/proc/reload_admins,
|
|
/client/proc/reload_eventMs,
|
|
/client/proc/restart_controller,
|
|
/datum/admins/proc/restart,
|
|
/client/proc/print_random_map,
|
|
/client/proc/create_random_map,
|
|
/client/proc/apply_random_map,
|
|
/client/proc/overlay_random_map,
|
|
/client/proc/delete_random_map,
|
|
/client/proc/show_plant_genes,
|
|
/client/proc/enable_debug_verbs,
|
|
/client/proc/callproc,
|
|
/client/proc/callproc_target,
|
|
/client/proc/SDQL_query,
|
|
/client/proc/SDQL2_query,
|
|
/client/proc/Jump,
|
|
/client/proc/jumptomob,
|
|
/client/proc/jumptocoord,
|
|
/client/proc/dsay,
|
|
/client/proc/toggle_debug_logs,
|
|
/client/proc/admin_ghost, //allows us to ghost/reenter body at will,
|
|
/datum/admins/proc/view_runtimes,
|
|
/client/proc/show_gm_status,
|
|
/datum/admins/proc/change_weather,
|
|
/datum/admins/proc/change_time,
|
|
/client/proc/admin_give_modifier,
|
|
/client/proc/simple_DPS
|
|
)
|
|
|
|
var/list/admin_verbs_paranoid_debug = list(
|
|
/client/proc/callproc,
|
|
/client/proc/callproc_target,
|
|
/client/proc/debug_controller
|
|
)
|
|
|
|
var/list/admin_verbs_possess = list(
|
|
/proc/possess,
|
|
/proc/release
|
|
)
|
|
var/list/admin_verbs_permissions = list(
|
|
/client/proc/edit_admin_permissions
|
|
)
|
|
var/list/admin_verbs_rejuv = list(
|
|
/client/proc/respawn_character
|
|
)
|
|
|
|
//verbs which can be hidden - needs work
|
|
var/list/admin_verbs_hideable = list(
|
|
/client/proc/deadmin_self,
|
|
// /client/proc/deadchat,
|
|
/datum/admins/proc/show_traitor_panel,
|
|
/datum/admins/proc/toggleenter,
|
|
/datum/admins/proc/toggleguests,
|
|
/datum/admins/proc/announce,
|
|
/client/proc/colorooc,
|
|
/client/proc/admin_ghost,
|
|
/client/proc/toggle_view_range,
|
|
/datum/admins/proc/view_txt_log,
|
|
/datum/admins/proc/view_atk_log,
|
|
/client/proc/cmd_admin_subtle_message,
|
|
/client/proc/cmd_admin_check_contents,
|
|
/datum/admins/proc/access_news_network,
|
|
/client/proc/admin_call_shuttle,
|
|
/client/proc/admin_cancel_shuttle,
|
|
/client/proc/cmd_admin_direct_narrate,
|
|
/client/proc/cmd_admin_world_narrate,
|
|
/client/proc/check_words,
|
|
/client/proc/play_local_sound,
|
|
/client/proc/play_sound,
|
|
/client/proc/play_server_sound,
|
|
/client/proc/object_talk,
|
|
/datum/admins/proc/cmd_admin_dress,
|
|
/client/proc/cmd_admin_gib_self,
|
|
/client/proc/drop_bomb,
|
|
/client/proc/cinematic,
|
|
/datum/admins/proc/toggle_aliens,
|
|
/datum/admins/proc/toggle_space_ninja,
|
|
/client/proc/cmd_admin_add_freeform_ai_law,
|
|
/client/proc/cmd_admin_add_random_ai_law,
|
|
/client/proc/cmd_admin_create_centcom_report,
|
|
/client/proc/make_sound,
|
|
/client/proc/toggle_random_events,
|
|
/client/proc/cmd_admin_add_random_ai_law,
|
|
/client/proc/Set_Holiday,
|
|
/client/proc/ToRban,
|
|
/datum/admins/proc/startnow,
|
|
/datum/admins/proc/restart,
|
|
/datum/admins/proc/delay,
|
|
/datum/admins/proc/toggleaban,
|
|
/client/proc/toggle_log_hrefs,
|
|
/datum/admins/proc/immreboot,
|
|
/client/proc/everyone_random,
|
|
/datum/admins/proc/toggleAI,
|
|
/datum/admins/proc/adrev,
|
|
/datum/admins/proc/adspawn,
|
|
/datum/admins/proc/adjump,
|
|
/client/proc/restart_controller,
|
|
/client/proc/cmd_admin_list_open_jobs,
|
|
/client/proc/callproc,
|
|
/client/proc/callproc_target,
|
|
/client/proc/Debug2,
|
|
/client/proc/reload_admins,
|
|
/client/proc/kill_air,
|
|
/client/proc/cmd_debug_make_powernets,
|
|
/client/proc/kill_airgroup,
|
|
/client/proc/debug_controller,
|
|
/client/proc/startSinglo,
|
|
/client/proc/simple_DPS,
|
|
/client/proc/cmd_debug_mob_lists,
|
|
/client/proc/cmd_debug_using_map,
|
|
/client/proc/cmd_debug_del_all,
|
|
/client/proc/cmd_debug_tog_aliens,
|
|
/client/proc/cmd_display_del_log,
|
|
/client/proc/air_report,
|
|
/client/proc/enable_debug_verbs,
|
|
/client/proc/roll_dices,
|
|
/proc/possess,
|
|
/proc/release,
|
|
/datum/admins/proc/set_tcrystals
|
|
)
|
|
var/list/admin_verbs_mod = list(
|
|
/client/proc/cmd_admin_pm_context, //right-click adminPM interface,
|
|
/client/proc/cmd_admin_pm_panel, //admin-pm 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/cmd_mod_say,
|
|
/client/proc/cmd_event_say,
|
|
/datum/admins/proc/show_player_info,
|
|
/client/proc/player_panel_new,
|
|
/client/proc/dsay,
|
|
/datum/admins/proc/show_skills,
|
|
/datum/admins/proc/show_player_panel,
|
|
/client/proc/check_antagonists,
|
|
/client/proc/aooc,
|
|
/client/proc/jobbans,
|
|
/client/proc/toggle_attack_logs,
|
|
/client/proc/cmd_admin_subtle_message, //send an message to somebody as a 'voice in their head',
|
|
/datum/admins/proc/paralyze_mob,
|
|
/client/proc/cmd_admin_direct_narrate,
|
|
/client/proc/allow_character_respawn, // Allows a ghost to respawn ,
|
|
/datum/admins/proc/sendFax,
|
|
/client/proc/getserverlog, //allows us to fetch server logs (diary) for other days,
|
|
/datum/admins/proc/view_txt_log, //shows the server log (diary) for today,
|
|
/datum/admins/proc/view_atk_log //shows the server combat-log, doesn't do anything presently,
|
|
)
|
|
|
|
var/list/admin_verbs_event_manager = list(
|
|
/client/proc/cmd_event_say,
|
|
/client/proc/cmd_admin_pm_context,
|
|
/client/proc/cmd_admin_pm_panel,
|
|
/datum/admins/proc/PlayerNotes,
|
|
/client/proc/admin_ghost,
|
|
/datum/admins/proc/show_player_info,
|
|
/client/proc/dsay,
|
|
/client/proc/cmd_admin_subtle_message,
|
|
/client/proc/debug_variables,
|
|
/client/proc/check_antagonists,
|
|
/client/proc/aooc,
|
|
/datum/admins/proc/paralyze_mob,
|
|
/client/proc/cmd_admin_direct_narrate,
|
|
/client/proc/allow_character_respawn,
|
|
/datum/admins/proc/sendFax,
|
|
/client/proc/respawn_character,
|
|
/proc/possess,
|
|
/proc/release,
|
|
/client/proc/callproc,
|
|
/client/proc/callproc_target,
|
|
/client/proc/debug_controller,
|
|
/client/proc/show_gm_status,
|
|
/datum/admins/proc/change_weather,
|
|
/datum/admins/proc/change_time,
|
|
/client/proc/admin_give_modifier,
|
|
/client/proc/Jump,
|
|
/client/proc/jumptomob,
|
|
/client/proc/jumptocoord,
|
|
/client/proc/cmd_admin_delete,
|
|
/datum/admins/proc/delay,
|
|
/client/proc/Set_Holiday,
|
|
/client/proc/make_sound,
|
|
/client/proc/toggle_random_events,
|
|
/datum/admins/proc/cmd_admin_dress,
|
|
/client/proc/cmd_admin_gib_self,
|
|
/client/proc/drop_bomb,
|
|
/client/proc/cmd_admin_add_freeform_ai_law,
|
|
/client/proc/cmd_admin_add_random_ai_law,
|
|
/client/proc/make_sound,
|
|
/client/proc/toggle_random_events,
|
|
/client/proc/editappear,
|
|
/client/proc/roll_dices,
|
|
/datum/admins/proc/call_supply_drop,
|
|
/datum/admins/proc/call_drop_pod
|
|
)
|
|
|
|
/client/proc/add_admin_verbs()
|
|
if(holder)
|
|
verbs += admin_verbs_default
|
|
if(holder.rights & R_BUILDMODE) verbs += /client/proc/togglebuildmodeself
|
|
if(holder.rights & R_ADMIN) verbs += admin_verbs_admin
|
|
if(holder.rights & R_BAN) verbs += admin_verbs_ban
|
|
if(holder.rights & R_FUN) verbs += admin_verbs_fun
|
|
if(holder.rights & R_SERVER) verbs += admin_verbs_server
|
|
if(holder.rights & R_DEBUG)
|
|
verbs += admin_verbs_debug
|
|
if(config.debugparanoid && !(holder.rights & R_ADMIN))
|
|
verbs.Remove(admin_verbs_paranoid_debug) //Right now it's just callproc but we can easily add others later on.
|
|
if(holder.rights & R_POSSESS) verbs += admin_verbs_possess
|
|
if(holder.rights & R_PERMISSIONS) verbs += admin_verbs_permissions
|
|
if(holder.rights & R_STEALTH) verbs += /client/proc/stealth
|
|
if(holder.rights & R_REJUVINATE) verbs += admin_verbs_rejuv
|
|
if(holder.rights & R_SOUNDS) verbs += admin_verbs_sounds
|
|
if(holder.rights & R_SPAWN) verbs += admin_verbs_spawn
|
|
if(holder.rights & R_MOD) verbs += admin_verbs_mod
|
|
if(holder.rights & R_EVENT) verbs += admin_verbs_event_manager
|
|
|
|
/client/proc/remove_admin_verbs()
|
|
verbs.Remove(
|
|
admin_verbs_default,
|
|
/client/proc/togglebuildmodeself,
|
|
admin_verbs_admin,
|
|
admin_verbs_ban,
|
|
admin_verbs_fun,
|
|
admin_verbs_server,
|
|
admin_verbs_debug,
|
|
admin_verbs_possess,
|
|
admin_verbs_permissions,
|
|
/client/proc/stealth,
|
|
admin_verbs_rejuv,
|
|
admin_verbs_sounds,
|
|
admin_verbs_spawn,
|
|
debug_verbs
|
|
)
|
|
|
|
/client/proc/hide_most_verbs()//Allows you to keep some functionality while hiding some verbs
|
|
set name = "Adminverbs - Hide Most"
|
|
set category = "Admin"
|
|
|
|
verbs.Remove(/client/proc/hide_most_verbs, admin_verbs_hideable)
|
|
verbs += /client/proc/show_verbs
|
|
|
|
src << "<span class='interface'>Most of your adminverbs have been hidden.</span>"
|
|
feedback_add_details("admin_verb","HMV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return
|
|
|
|
/client/proc/hide_verbs()
|
|
set name = "Adminverbs - Hide All"
|
|
set category = "Admin"
|
|
|
|
remove_admin_verbs()
|
|
verbs += /client/proc/show_verbs
|
|
|
|
src << "<span class='interface'>Almost all of your adminverbs have been hidden.</span>"
|
|
feedback_add_details("admin_verb","TAVVH") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return
|
|
|
|
/client/proc/show_verbs()
|
|
set name = "Adminverbs - Show"
|
|
set category = "Admin"
|
|
|
|
verbs -= /client/proc/show_verbs
|
|
add_admin_verbs()
|
|
|
|
src << "<span class='interface'>All of your adminverbs are now visible.</span>"
|
|
feedback_add_details("admin_verb","TAVVS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
|
|
/client/proc/admin_ghost()
|
|
set category = "Admin"
|
|
set name = "Aghost"
|
|
if(!holder) return
|
|
if(istype(mob,/mob/observer/dead))
|
|
//re-enter
|
|
var/mob/observer/dead/ghost = mob
|
|
if(ghost.can_reenter_corpse)
|
|
ghost.reenter_corpse()
|
|
else
|
|
to_chat(ghost, "<font color='red'>Error: Aghost: Can't reenter corpse.</font>")
|
|
return
|
|
|
|
feedback_add_details("admin_verb","P") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
else if(istype(mob,/mob/new_player))
|
|
src << "<font color='red'>Error: Aghost: Can't admin-ghost whilst in the lobby. Join or Observe first.</font>"
|
|
else
|
|
//ghostize
|
|
var/mob/body = mob
|
|
var/mob/observer/dead/ghost = body.ghostize(1)
|
|
ghost.admin_ghosted = 1
|
|
if(body)
|
|
body.teleop = ghost
|
|
if(!body.key)
|
|
body.key = "@[key]" //Haaaaaaaack. But the people have spoken. If it breaks; blame adminbus
|
|
feedback_add_details("admin_verb","O") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/invisimin()
|
|
set name = "Invisimin"
|
|
set category = "Admin"
|
|
set desc = "Toggles ghost-like invisibility (Don't abuse this)"
|
|
if(holder && mob)
|
|
if(mob.invisibility == INVISIBILITY_OBSERVER)
|
|
mob.invisibility = initial(mob.invisibility)
|
|
mob << "<font color='red'><b>Invisimin off. Invisibility reset.</b></font>"
|
|
mob.alpha = max(mob.alpha + 100, 255)
|
|
else
|
|
mob.invisibility = INVISIBILITY_OBSERVER
|
|
mob << "<font color='blue'><b>Invisimin on. You are now as invisible as a ghost.</b></font>"
|
|
mob.alpha = max(mob.alpha - 100, 0)
|
|
|
|
|
|
/client/proc/player_panel()
|
|
set name = "Player Panel"
|
|
set category = "Admin"
|
|
if(holder)
|
|
holder.player_panel_old()
|
|
feedback_add_details("admin_verb","PP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return
|
|
|
|
/client/proc/player_panel_new()
|
|
set name = "Player Panel New"
|
|
set category = "Admin"
|
|
if(holder)
|
|
holder.player_panel_new()
|
|
feedback_add_details("admin_verb","PPN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return
|
|
|
|
/client/proc/check_antagonists()
|
|
set name = "Check Antagonists"
|
|
set category = "Admin"
|
|
if(holder)
|
|
holder.check_antagonists()
|
|
log_admin("[key_name(usr)] checked antagonists.") //for tsar~
|
|
feedback_add_details("admin_verb","CHA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return
|
|
|
|
/client/proc/jobbans()
|
|
set name = "Display Job bans"
|
|
set category = "Admin"
|
|
if(holder)
|
|
if(config.ban_legacy_system)
|
|
holder.Jobbans()
|
|
else
|
|
holder.DB_ban_panel()
|
|
feedback_add_details("admin_verb","VJB") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return
|
|
|
|
/client/proc/unban_panel()
|
|
set name = "Unban Panel"
|
|
set category = "Admin"
|
|
if(holder)
|
|
if(config.ban_legacy_system)
|
|
holder.unbanpanel()
|
|
else
|
|
holder.DB_ban_panel()
|
|
feedback_add_details("admin_verb","UBP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return
|
|
|
|
/client/proc/game_panel()
|
|
set name = "Game Panel"
|
|
set category = "Admin"
|
|
if(holder)
|
|
holder.Game()
|
|
feedback_add_details("admin_verb","GP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return
|
|
|
|
/client/proc/secrets()
|
|
set name = "Secrets"
|
|
set category = "Admin"
|
|
if (holder)
|
|
holder.Secrets()
|
|
feedback_add_details("admin_verb","S") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return
|
|
|
|
/client/proc/colorooc()
|
|
set category = "Fun"
|
|
set name = "OOC Text Color"
|
|
if(!holder) return
|
|
var/response = alert(src, "Please choose a distinct color that is easy to read and doesn't mix with all the other chat and radio frequency colors.", "Change own OOC color", "Pick new color", "Reset to default", "Cancel")
|
|
if(response == "Pick new color")
|
|
prefs.ooccolor = input(src, "Please select your OOC colour.", "OOC colour") as color
|
|
else if(response == "Reset to default")
|
|
prefs.ooccolor = initial(prefs.ooccolor)
|
|
prefs.save_preferences()
|
|
|
|
feedback_add_details("admin_verb","OC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return
|
|
|
|
/client/proc/findStealthKey(txt)
|
|
if(txt)
|
|
for(var/P in GLOB.stealthminID)
|
|
if(GLOB.stealthminID[P] == txt)
|
|
return P
|
|
txt = GLOB.stealthminID[ckey]
|
|
return txt
|
|
|
|
/client/proc/createStealthKey()
|
|
var/num = (rand(0,1000))
|
|
var/i = 0
|
|
while(i == 0)
|
|
i = 1
|
|
for(var/P in GLOB.stealthminID)
|
|
if(num == GLOB.stealthminID[P])
|
|
num++
|
|
i = 0
|
|
GLOB.stealthminID["[ckey]"] = "@[num2text(num)]"
|
|
|
|
/client/proc/stealth()
|
|
set category = "Admin"
|
|
set name = "Stealth Mode"
|
|
if(holder)
|
|
if(holder.fakekey)
|
|
holder.fakekey = null
|
|
if(istype(src.mob, /mob/new_player))
|
|
mob.name = capitalize(ckey)
|
|
else
|
|
var/new_key = ckeyEx(input("Enter your desired display name.", "Fake Key", key) as text|null)
|
|
if(!new_key)
|
|
return
|
|
if(length(new_key) >= 26)
|
|
new_key = copytext(new_key, 1, 26)
|
|
holder.fakekey = new_key
|
|
createStealthKey()
|
|
if(istype(mob, /mob/new_player))
|
|
mob.name = new_key
|
|
log_admin("[key_name(usr)] has turned stealth mode [holder.fakekey ? "ON" : "OFF"]")
|
|
message_admins("[key_name_admin(usr)] has turned stealth mode [holder.fakekey ? "ON" : "OFF"]", 1)
|
|
feedback_add_details("admin_verb","SM") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
#define MAX_WARNS 3
|
|
#define AUTOBANTIME 10
|
|
|
|
/client/proc/warn(warned_ckey)
|
|
if(!check_rights(R_ADMIN)) return
|
|
|
|
if(!warned_ckey || !istext(warned_ckey)) return
|
|
if(warned_ckey in admin_datums)
|
|
usr << "<font color='red'>Error: warn(): You can't warn admins.</font>"
|
|
return
|
|
|
|
var/datum/preferences/D
|
|
var/client/C = directory[warned_ckey]
|
|
if(C) D = C.prefs
|
|
else D = preferences_datums[warned_ckey]
|
|
|
|
if(!D)
|
|
src << "<font color='red'>Error: warn(): No such ckey found.</font>"
|
|
return
|
|
|
|
if(++D.warns >= MAX_WARNS) //uh ohhhh...you'reee iiiiin trouuuubble O:)
|
|
ban_unban_log_save("[ckey] warned [warned_ckey], resulting in a [AUTOBANTIME] minute autoban.")
|
|
if(C)
|
|
message_admins("[key_name_admin(src)] has warned [key_name_admin(C)] resulting in a [AUTOBANTIME] minute ban.")
|
|
C << "<font color='red'><BIG><B>You have been autobanned due to a warning by [ckey].</B></BIG><br>This is a temporary ban, it will be removed in [AUTOBANTIME] minutes.</font>"
|
|
del(C)
|
|
else
|
|
message_admins("[key_name_admin(src)] has warned [warned_ckey] resulting in a [AUTOBANTIME] minute ban.")
|
|
AddBan(warned_ckey, D.last_id, "Autobanning due to too many formal warnings", ckey, 1, AUTOBANTIME)
|
|
feedback_inc("ban_warn",1)
|
|
else
|
|
if(C)
|
|
C << "<font color='red'><BIG><B>You have been formally warned by an administrator.</B></BIG><br>Further warnings will result in an autoban.</font>"
|
|
message_admins("[key_name_admin(src)] has warned [key_name_admin(C)]. They have [MAX_WARNS-D.warns] strikes remaining.")
|
|
else
|
|
message_admins("[key_name_admin(src)] has warned [warned_ckey] (DC). They have [MAX_WARNS-D.warns] strikes remaining.")
|
|
|
|
feedback_add_details("admin_verb","WARN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
#undef MAX_WARNS
|
|
#undef AUTOBANTIME
|
|
|
|
/client/proc/drop_bomb() // Some admin dickery that can probably be done better -- TLE
|
|
set category = "Special Verbs"
|
|
set name = "Drop Bomb"
|
|
set desc = "Cause an explosion of varying strength at your location."
|
|
|
|
var/turf/epicenter = mob.loc
|
|
var/list/choices = list("Small Bomb", "Medium Bomb", "Big Bomb", "Custom Bomb", "Cancel")
|
|
var/choice = input("What size explosion would you like to produce?") in choices
|
|
switch(choice)
|
|
if(null)
|
|
return 0
|
|
if("Cancel")
|
|
return 0
|
|
if("Small Bomb")
|
|
explosion(epicenter, 1, 2, 3, 3)
|
|
if("Medium Bomb")
|
|
explosion(epicenter, 2, 3, 4, 4)
|
|
if("Big Bomb")
|
|
explosion(epicenter, 3, 5, 7, 5)
|
|
if("Custom Bomb")
|
|
var/devastation_range = input("Devastation range (in tiles):") as num
|
|
var/heavy_impact_range = input("Heavy impact range (in tiles):") as num
|
|
var/light_impact_range = input("Light impact range (in tiles):") as num
|
|
var/flash_range = input("Flash range (in tiles):") as num
|
|
explosion(epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range)
|
|
message_admins("<font color='blue'>[ckey] creating an admin explosion at [epicenter.loc].</font>")
|
|
feedback_add_details("admin_verb","DB") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/give_disease2(mob/T as mob in mob_list) // -- Giacom
|
|
set category = "Fun"
|
|
set name = "Give Disease"
|
|
set desc = "Gives a Disease to a mob."
|
|
|
|
var/datum/disease2/disease/D = new /datum/disease2/disease()
|
|
|
|
var/severity = 1
|
|
var/greater = input("Is this a lesser, greater, or badmin disease?", "Give Disease") in list("Lesser", "Greater", "Badmin")
|
|
switch(greater)
|
|
if ("Lesser") severity = 1
|
|
if ("Greater") severity = 2
|
|
if ("Badmin") severity = 99
|
|
|
|
D.makerandom(severity)
|
|
D.infectionchance = input("How virulent is this disease? (1-100)", "Give Disease", D.infectionchance) as num
|
|
|
|
if(istype(T,/mob/living/carbon/human))
|
|
var/mob/living/carbon/human/H = T
|
|
if (H.species)
|
|
D.affected_species = list(H.species.get_bodytype())
|
|
if(H.species.primitive_form)
|
|
D.affected_species |= H.species.primitive_form
|
|
if(H.species.greater_form)
|
|
D.affected_species |= H.species.greater_form
|
|
infect_virus2(T,D,1)
|
|
|
|
feedback_add_details("admin_verb","GD2") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
log_admin("[key_name(usr)] gave [key_name(T)] a [greater] disease2 with infection chance [D.infectionchance].")
|
|
message_admins("<font color='blue'>[key_name_admin(usr)] gave [key_name(T)] a [greater] disease2 with infection chance [D.infectionchance].</font>", 1)
|
|
|
|
/client/proc/admin_give_modifier(var/mob/living/L)
|
|
set category = "Debug"
|
|
set name = "Give Modifier"
|
|
set desc = "Makes a mob weaker or stronger by adding a specific modifier to them."
|
|
|
|
if(!L)
|
|
to_chat(usr, "<span class='warning'>Looks like you didn't select a mob.</span>")
|
|
return
|
|
|
|
var/list/possible_modifiers = typesof(/datum/modifier) - /datum/modifier
|
|
|
|
var/new_modifier_type = input("What modifier should we add to [L]?", "Modifier Type") as null|anything in possible_modifiers
|
|
if(!new_modifier_type)
|
|
return
|
|
var/duration = input("How long should the new modifier last, in seconds. To make it last forever, write '0'.", "Modifier Duration") as num
|
|
if(duration == 0)
|
|
duration = null
|
|
else
|
|
duration = duration SECONDS
|
|
|
|
L.add_modifier(new_modifier_type, duration)
|
|
log_and_message_admins("has given [key_name(L)] the modifer [new_modifier_type], with a duration of [duration ? "[duration / 600] minutes" : "forever"].")
|
|
|
|
/client/proc/make_sound(var/obj/O in world) // -- TLE
|
|
set category = "Special Verbs"
|
|
set name = "Make Sound"
|
|
set desc = "Display a message to everyone who can hear the target"
|
|
if(O)
|
|
var/message = sanitize(input("What do you want the message to be?", "Make Sound") as text|null)
|
|
if(!message)
|
|
return
|
|
for (var/mob/V in hearers(O))
|
|
V.show_message(message, 2)
|
|
log_admin("[key_name(usr)] made [O] at [O.x], [O.y], [O.z]. make a sound")
|
|
message_admins("<font color='blue'>[key_name_admin(usr)] made [O] at [O.x], [O.y], [O.z]. make a sound.</font>", 1)
|
|
feedback_add_details("admin_verb","MS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
|
|
/client/proc/togglebuildmodeself()
|
|
set name = "Toggle Build Mode Self"
|
|
set category = "Special Verbs"
|
|
if(src.mob)
|
|
togglebuildmode(src.mob)
|
|
feedback_add_details("admin_verb","TBMS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/object_talk(var/msg as text) // -- TLE
|
|
set category = "Special Verbs"
|
|
set name = "oSay"
|
|
set desc = "Display a message to everyone who can hear the target"
|
|
if(mob.control_object)
|
|
if(!msg)
|
|
return
|
|
for (var/mob/V in hearers(mob.control_object))
|
|
V.show_message("<b>[mob.control_object.name]</b> says: \"" + msg + "\"", 2)
|
|
feedback_add_details("admin_verb","OT") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/kill_air() // -- TLE
|
|
set category = "Debug"
|
|
set name = "Kill Air"
|
|
set desc = "Toggle Air Processing"
|
|
if(!SSair.can_fire)
|
|
SSair.can_fire = TRUE
|
|
usr << "<b>Enabled air processing.</b>"
|
|
else
|
|
SSair.can_fire = FALSE
|
|
usr << "<b>Disabled air processing.</b>"
|
|
feedback_add_details("admin_verb","KA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
log_admin("[key_name(usr)] used 'kill air'.")
|
|
message_admins("<font color='blue'>[key_name_admin(usr)] used 'kill air'.</font>", 1)
|
|
|
|
/client/proc/readmin_self()
|
|
set name = "Re-Admin self"
|
|
set category = "Admin"
|
|
|
|
if(deadmin_holder)
|
|
deadmin_holder.reassociate()
|
|
log_admin("[src] re-admined themself.")
|
|
message_admins("[src] re-admined themself.", 1)
|
|
src << "<span class='interface'>You now have the keys to control the planet, or atleast a small space station</span>"
|
|
verbs -= /client/proc/readmin_self
|
|
|
|
/client/proc/deadmin_self()
|
|
set name = "De-admin self"
|
|
set category = "Admin"
|
|
|
|
if(holder)
|
|
if(alert("Confirm self-deadmin for the round? You can't re-admin yourself without someone promoting you.",,"Yes","No") == "Yes")
|
|
log_admin("[src] deadmined themself.")
|
|
message_admins("[src] deadmined themself.", 1)
|
|
deadmin()
|
|
src << "<span class='interface'>You are now a normal player.</span>"
|
|
verbs |= /client/proc/readmin_self
|
|
feedback_add_details("admin_verb","DAS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/toggle_log_hrefs()
|
|
set name = "Toggle href logging"
|
|
set category = "Server"
|
|
if(!holder) return
|
|
if(config)
|
|
if(config.log_hrefs)
|
|
config.log_hrefs = 0
|
|
src << "<b>Stopped logging hrefs</b>"
|
|
else
|
|
config.log_hrefs = 1
|
|
src << "<b>Started logging hrefs</b>"
|
|
|
|
/client/proc/check_ai_laws()
|
|
set name = "Check AI Laws"
|
|
set category = "Admin"
|
|
if(holder)
|
|
src.holder.output_ai_laws()
|
|
|
|
/client/proc/rename_silicon()
|
|
set name = "Rename Silicon"
|
|
set category = "Admin"
|
|
|
|
if(!check_rights(R_ADMIN)) return
|
|
|
|
var/mob/living/silicon/S = input("Select silicon.", "Rename Silicon.") as null|anything in silicon_mob_list
|
|
if(!S) return
|
|
|
|
var/new_name = sanitizeSafe(input(src, "Enter new name. Leave blank or as is to cancel.", "[S.real_name] - Enter new silicon name", S.real_name))
|
|
if(new_name && new_name != S.real_name)
|
|
log_and_message_admins("has renamed the silicon '[S.real_name]' to '[new_name]'")
|
|
S.SetName(new_name)
|
|
feedback_add_details("admin_verb","RAI") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/manage_silicon_laws()
|
|
set name = "Manage Silicon Laws"
|
|
set category = "Admin"
|
|
|
|
if(!check_rights(R_ADMIN)) return
|
|
|
|
var/mob/living/silicon/S = input("Select silicon.", "Manage Silicon Laws") as null|anything in silicon_mob_list
|
|
if(!S) return
|
|
|
|
var/datum/nano_module/law_manager/L = new(S)
|
|
L.ui_interact(usr, state = admin_state)
|
|
log_and_message_admins("has opened [S]'s law manager.")
|
|
feedback_add_details("admin_verb","MSL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/change_human_appearance_admin()
|
|
set name = "Change Mob Appearance - Admin"
|
|
set desc = "Allows you to change the mob appearance"
|
|
set category = "Admin"
|
|
|
|
if(!check_rights(R_FUN)) return
|
|
|
|
var/mob/living/carbon/human/H = input("Select mob.", "Change Mob Appearance - Admin") as null|anything in human_mob_list
|
|
if(!H) return
|
|
|
|
log_and_message_admins("is altering the appearance of [H].")
|
|
H.change_appearance(APPEARANCE_ALL, usr, usr, check_species_whitelist = 0, state = admin_state)
|
|
feedback_add_details("admin_verb","CHAA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/change_human_appearance_self()
|
|
set name = "Change Mob Appearance - Self"
|
|
set desc = "Allows the mob to change its appearance"
|
|
set category = "Admin"
|
|
|
|
if(!check_rights(R_FUN)) return
|
|
|
|
var/mob/living/carbon/human/H = input("Select mob.", "Change Mob Appearance - Self") as null|anything in human_mob_list
|
|
if(!H) return
|
|
|
|
if(!H.client)
|
|
usr << "Only mobs with clients can alter their own appearance."
|
|
return
|
|
var/datum/gender/T = gender_datums[H.get_visible_gender()]
|
|
switch(alert("Do you wish for [H] to be allowed to select non-whitelisted races?","Alter Mob Appearance","Yes","No","Cancel"))
|
|
if("Yes")
|
|
log_and_message_admins("has allowed [H] to change [T.his] appearance, without whitelisting of races.")
|
|
H.change_appearance(APPEARANCE_ALL, H.loc, check_species_whitelist = 0)
|
|
if("No")
|
|
log_and_message_admins("has allowed [H] to change [T.his] appearance, with whitelisting of races.")
|
|
H.change_appearance(APPEARANCE_ALL, H.loc, check_species_whitelist = 1)
|
|
feedback_add_details("admin_verb","CMAS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/change_security_level()
|
|
set name = "Set security level"
|
|
set desc = "Sets the station security level"
|
|
set category = "Admin"
|
|
|
|
if(!check_rights(R_ADMIN)) return
|
|
var sec_level = input(usr, "It's currently code [get_security_level()].", "Select Security Level") as null|anything in (list("green","blue","red","delta")-get_security_level())
|
|
if(alert("Switch from code [get_security_level()] to code [sec_level]?","Change security level?","Yes","No") == "Yes")
|
|
set_security_level(sec_level)
|
|
log_admin("[key_name(usr)] changed the security level to code [sec_level].")
|
|
|
|
|
|
//---- bs12 verbs ----
|
|
|
|
/client/proc/mod_panel()
|
|
set name = "Moderator Panel"
|
|
set category = "Admin"
|
|
/* if(holder)
|
|
holder.mod_panel()*/
|
|
// feedback_add_details("admin_verb","MP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
return
|
|
|
|
/client/proc/editappear()
|
|
set name = "Edit Appearance"
|
|
set category = "Fun"
|
|
|
|
if(!check_rights(R_FUN)) return
|
|
|
|
var/mob/living/carbon/human/M = input("Select mob.", "Edit Appearance") as null|anything in human_mob_list
|
|
|
|
if(!istype(M, /mob/living/carbon/human))
|
|
usr << "<font color='red'>You can only do this to humans!</font>"
|
|
return
|
|
switch(alert("Are you sure you wish to edit this mob's appearance? Skrell, Unathi, Tajaran can result in unintended consequences.",,"Yes","No"))
|
|
if("No")
|
|
return
|
|
var/new_facial = input("Please select facial hair color.", "Character Generation") as color
|
|
if(new_facial)
|
|
M.r_facial = hex2num(copytext(new_facial, 2, 4))
|
|
M.g_facial = hex2num(copytext(new_facial, 4, 6))
|
|
M.b_facial = hex2num(copytext(new_facial, 6, 8))
|
|
|
|
var/new_hair = input("Please select hair color.", "Character Generation") as color
|
|
if(new_facial)
|
|
M.r_hair = hex2num(copytext(new_hair, 2, 4))
|
|
M.g_hair = hex2num(copytext(new_hair, 4, 6))
|
|
M.b_hair = hex2num(copytext(new_hair, 6, 8))
|
|
|
|
var/new_eyes = input("Please select eye color.", "Character Generation") as color
|
|
if(new_eyes)
|
|
M.r_eyes = hex2num(copytext(new_eyes, 2, 4))
|
|
M.g_eyes = hex2num(copytext(new_eyes, 4, 6))
|
|
M.b_eyes = hex2num(copytext(new_eyes, 6, 8))
|
|
M.update_eyes()
|
|
|
|
var/new_skin = input("Please select body color. This is for Tajaran, Unathi, and Skrell only!", "Character Generation") as color
|
|
if(new_skin)
|
|
M.r_skin = hex2num(copytext(new_skin, 2, 4))
|
|
M.g_skin = hex2num(copytext(new_skin, 4, 6))
|
|
M.b_skin = hex2num(copytext(new_skin, 6, 8))
|
|
|
|
var/new_tone = input("Please select skin tone level: 1-220 (1=albino, 35=caucasian, 150=black, 220='very' black)", "Character Generation") as text
|
|
|
|
if (new_tone)
|
|
M.s_tone = max(min(round(text2num(new_tone)), 220), 1)
|
|
M.s_tone = -M.s_tone + 35
|
|
|
|
// hair
|
|
var/new_hstyle = input(usr, "Select a hair style", "Grooming") as null|anything in hair_styles_list
|
|
if(new_hstyle)
|
|
M.h_style = new_hstyle
|
|
|
|
// facial hair
|
|
var/new_fstyle = input(usr, "Select a facial hair style", "Grooming") as null|anything in facial_hair_styles_list
|
|
if(new_fstyle)
|
|
M.f_style = new_fstyle
|
|
|
|
var/new_gender = alert(usr, "Please select gender.", "Character Generation", "Male", "Female", "Neuter")
|
|
if (new_gender)
|
|
if(new_gender == "Male")
|
|
M.gender = MALE
|
|
else if (new_gender == "Female")
|
|
M.gender = FEMALE
|
|
else
|
|
M.gender = NEUTER
|
|
|
|
M.update_hair(FALSE)
|
|
M.update_icons_body()
|
|
M.check_dna(M)
|
|
|
|
/client/proc/playernotes()
|
|
set name = "Show Player Info"
|
|
set category = "Admin"
|
|
if(holder)
|
|
holder.PlayerNotes()
|
|
return
|
|
|
|
/client/proc/free_slot()
|
|
set name = "Free Job Slot"
|
|
set category = "Admin"
|
|
if(holder)
|
|
var/list/jobs = list()
|
|
for (var/datum/job/J in job_master.occupations)
|
|
if (J.current_positions >= J.total_positions && J.total_positions != -1)
|
|
jobs += J.title
|
|
if (!jobs.len)
|
|
usr << "There are no fully staffed jobs."
|
|
return
|
|
var/job = input("Please select job slot to free", "Free job slot") as null|anything in jobs
|
|
if (job)
|
|
job_master.FreeRole(job)
|
|
message_admins("A job slot for [job] has been opened by [key_name_admin(usr)]")
|
|
return
|
|
|
|
/client/proc/toggleghostwriters()
|
|
set name = "Toggle ghost writers"
|
|
set category = "Server"
|
|
if(!holder) return
|
|
if(config)
|
|
if(config.cult_ghostwriter)
|
|
config.cult_ghostwriter = 0
|
|
src << "<b>Disallowed ghost writers.</b>"
|
|
message_admins("Admin [key_name_admin(usr)] has disabled ghost writers.", 1)
|
|
else
|
|
config.cult_ghostwriter = 1
|
|
src << "<b>Enabled ghost writers.</b>"
|
|
message_admins("Admin [key_name_admin(usr)] has enabled ghost writers.", 1)
|
|
|
|
/client/proc/toggledrones()
|
|
set name = "Toggle maintenance drones"
|
|
set category = "Server"
|
|
if(!holder) return
|
|
if(config)
|
|
if(config.allow_drone_spawn)
|
|
config.allow_drone_spawn = 0
|
|
src << "<b>Disallowed maint drones.</b>"
|
|
message_admins("Admin [key_name_admin(usr)] has disabled maint drones.", 1)
|
|
else
|
|
config.allow_drone_spawn = 1
|
|
src << "<b>Enabled maint drones.</b>"
|
|
message_admins("Admin [key_name_admin(usr)] has enabled maint drones.", 1)
|
|
|
|
/client/proc/man_up(mob/T as mob in mob_list)
|
|
set category = "Fun"
|
|
set name = "Man Up"
|
|
set desc = "Tells mob to man up and deal with it."
|
|
|
|
if(alert("Are you sure you want to tell them to man up?","Confirmation","Deal with it","No")=="No") return
|
|
|
|
T << "<span class='notice'><b><font size=3>Man up and deal with it.</font></b></span>"
|
|
T << "<span class='notice'>Move on.</span>"
|
|
|
|
log_admin("[key_name(usr)] told [key_name(T)] to man up and deal with it.")
|
|
message_admins("<font color='blue'>[key_name_admin(usr)] told [key_name(T)] to man up and deal with it.</font>", 1)
|
|
|
|
/client/proc/global_man_up()
|
|
set category = "Fun"
|
|
set name = "Man Up Global"
|
|
set desc = "Tells everyone to man up and deal with it."
|
|
|
|
if(alert("Are you sure you want to tell the whole server up?","Confirmation","Deal with it","No")=="No") return
|
|
|
|
for (var/mob/T as mob in mob_list)
|
|
T << "<br><center><span class='notice'><b><font size=4>Man up.<br> Deal with it.</font></b><br>Move on.</span></center><br>"
|
|
T << 'sound/voice/ManUp1.ogg'
|
|
|
|
log_admin("[key_name(usr)] told everyone to man up and deal with it.")
|
|
message_admins("<font color='blue'>[key_name_admin(usr)] told everyone to man up and deal with it.</font>", 1)
|
|
|
|
/client/proc/give_spell(mob/T as mob in mob_list) // -- Urist
|
|
set category = "Fun"
|
|
set name = "Give Spell"
|
|
set desc = "Gives a spell to a mob."
|
|
var/spell/S = input("Choose the spell to give to that guy", "ABRAKADABRA") as null|anything in spells
|
|
if(!S) return
|
|
T.spell_list += new S
|
|
feedback_add_details("admin_verb","GS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
log_admin("[key_name(usr)] gave [key_name(T)] the spell [S].")
|
|
message_admins("<font color='blue'>[key_name_admin(usr)] gave [key_name(T)] the spell [S].</font>", 1)
|