mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 01:52:15 +00:00
Adding in the missing file from last rev. Derp.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@651 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
112
code/modules/admin/verbs/striketeam.dm
Normal file
112
code/modules/admin/verbs/striketeam.dm
Normal file
@@ -0,0 +1,112 @@
|
||||
var/const/commandos_possible = 6 //if more Commandos are needed in the future
|
||||
var/global/sent_strike_team = 0
|
||||
/client/proc/strike_team()
|
||||
set category = "Fun"
|
||||
set name = "Spawn Death Squad"
|
||||
|
||||
if(!ticker)
|
||||
alert("The game hasn't started yet!")
|
||||
return
|
||||
if(world.time < 6000)
|
||||
alert("Not so fast, buddy. Wait a few (10) minutes until the game gets going.")
|
||||
return
|
||||
if(alert("Do you want to send in the CentCom death squad? Once enabled, this is irreversible.",,"Yes","No")=="No")
|
||||
return
|
||||
src.verbs -= /client/proc/strike_team
|
||||
sent_strike_team = 1
|
||||
|
||||
if (emergency_shuttle.direction == 1 && emergency_shuttle.online == 1)
|
||||
emergency_shuttle.recall()
|
||||
world << "\blue <B>Alert: The shuttle is going back!</B>"
|
||||
|
||||
var/commando_number = 6 //for selecting a leader
|
||||
var/leader_selected = 0 //when the leader is chosen. The last person spawned.
|
||||
var/commando_leader_rank = pick("2nd Lieutenant", "1st Lieutenant", "Captain", "Major")
|
||||
var/list/commando_names = dd_file2list("config/names/last.txt")
|
||||
|
||||
//Spawns commandos and equips them.
|
||||
|
||||
for (var/obj/landmark/STARTLOC in world)
|
||||
if (STARTLOC.name == "Commando")
|
||||
var/mob/living/carbon/human/new_commando = new(STARTLOC.loc)
|
||||
var/commando_rank = pick("Corporal", "Sergeant", "Staff Sergeant", "Sergeant 1st Class", "Master Sergeant", "Sergeant Major")
|
||||
var/commando_name = pick(commando_names)
|
||||
new_commando.gender = pick(MALE, FEMALE)
|
||||
if (commando_number == 1)
|
||||
leader_selected = 1
|
||||
if (leader_selected == 0)
|
||||
new_commando.real_name = "[commando_rank] [commando_name]"
|
||||
else
|
||||
new_commando.real_name = "[commando_leader_rank] [commando_name]"
|
||||
new_commando.age = rand(23,52)
|
||||
new_commando.b_type = pick("A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-")
|
||||
new_commando.dna.ready_dna(new_commando)
|
||||
del(STARTLOC)
|
||||
|
||||
var/obj/item/device/radio/R = new /obj/item/device/radio/headset(new_commando)
|
||||
R.set_frequency(1441)
|
||||
new_commando.equip_if_possible(R, new_commando.slot_ears)
|
||||
if (leader_selected == 0)
|
||||
new_commando.equip_if_possible(new /obj/item/clothing/under/color/green(new_commando), new_commando.slot_w_uniform)
|
||||
else
|
||||
new_commando.equip_if_possible(new /obj/item/clothing/under/rank/centcom_officer(new_commando), new_commando.slot_w_uniform)
|
||||
new_commando.equip_if_possible(new /obj/item/clothing/shoes/swat(new_commando), new_commando.slot_shoes)
|
||||
new_commando.equip_if_possible(new /obj/item/clothing/suit/armor/swat(new_commando), new_commando.slot_wear_suit)
|
||||
new_commando.equip_if_possible(new /obj/item/clothing/gloves/swat(new_commando), new_commando.slot_gloves)
|
||||
new_commando.equip_if_possible(new /obj/item/clothing/head/helmet/swat(new_commando), new_commando.slot_head)
|
||||
new_commando.equip_if_possible(new /obj/item/clothing/mask/gas/swat(new_commando), new_commando.slot_wear_mask)
|
||||
new_commando.equip_if_possible(new /obj/item/clothing/glasses/thermal(new_commando), new_commando.slot_glasses)
|
||||
|
||||
new_commando.equip_if_possible(new /obj/item/weapon/storage/backpack(new_commando), new_commando.slot_back)
|
||||
new_commando.equip_if_possible(new /obj/item/weapon/ammo/a357(new_commando), new_commando.slot_in_backpack)
|
||||
new_commando.equip_if_possible(new /obj/item/weapon/ammo/a357(new_commando), new_commando.slot_in_backpack)
|
||||
new_commando.equip_if_possible(new /obj/item/weapon/storage/firstaid/regular(new_commando), new_commando.slot_in_backpack)
|
||||
new_commando.equip_if_possible(new /obj/item/weapon/sword(new_commando), new_commando.slot_l_store)
|
||||
new_commando.equip_if_possible(new /obj/item/weapon/flashbang(new_commando), new_commando.slot_r_store)
|
||||
new_commando.equip_if_possible(new /obj/item/weapon/tank/emergency_oxygen(new_commando), new_commando.slot_belt)
|
||||
var/obj/item/weapon/gun/revolver/GUN = new /obj/item/weapon/gun/revolver/mateba(new_commando)
|
||||
GUN.bullets = 7
|
||||
new_commando.equip_if_possible(GUN, new_commando.slot_s_store)
|
||||
new_commando.equip_if_possible(new /obj/item/weapon/gun/energy/pulse_rifle(new_commando), new_commando.slot_l_hand)
|
||||
|
||||
var/obj/item/weapon/card/id/W = new(new_commando)
|
||||
W.name = "[new_commando.real_name]'s ID Card"
|
||||
W.access = get_all_accesses()
|
||||
W.assignment = "Death Commando"
|
||||
W.registered = new_commando.real_name
|
||||
new_commando.equip_if_possible(W, new_commando.slot_wear_id)
|
||||
|
||||
var/list/candidates = list() // Picks a random ghost for the role. Mostly a copy of alien burst code.
|
||||
for(var/mob/dead/observer/G in world)
|
||||
if(G.client)
|
||||
if(!G.client.holder && ((G.client.inactivity/10)/60) <= 5)
|
||||
candidates.Add(G)
|
||||
if(candidates.len)
|
||||
var/mob/dead/observer/G = pick(candidates)
|
||||
new_commando.key = G.client.key
|
||||
del.(G)
|
||||
else
|
||||
new_commando.key = "null"
|
||||
|
||||
commando_number = commando_number-1
|
||||
|
||||
//Code for spawning a nuke auth code and bombs. Targets any nukes in the world and changes their code as needed.
|
||||
|
||||
var/nuke_code = "[rand(10000, 99999.0)]"
|
||||
for(var/obj/machinery/nuclearbomb/NUAK in world)
|
||||
if (NUAK.name == "Nuclear Fission Explosive")
|
||||
NUAK.r_code = nuke_code
|
||||
|
||||
for (var/obj/landmark/MANUAL)
|
||||
if (MANUAL.name == "Commando_Manual")
|
||||
var/obj/item/weapon/paper/PAPER = new /obj/item/weapon/paper(MANUAL.loc)
|
||||
PAPER.info = "<p><b>Good morning soldier!</b>. This compact guide will familiarize you with standard operating procedure. There are three basic rules to follow:<br>#1 Work as a team.<br>#2 Accomplish your objective at all costs.<br>#3 Leave no witnesses.<br>You are fully equipped and stocked for your mission--before departing on the special ops shuttle due South, make sure that all operatives are injected with an explosive implant in case of mission failure. Actual objectives will be relayed to you by CentCom.<br>If deemed appropriate, CentCom will also allow members of your team to equip assault power-armor for the mission. You will find the armor storage due West of your position.</p><p>In the event that the team does not accomplish their assigned objective in a timely manner, or finds no other way to do so, attached below are instructions on how to operate a Nanotrasen Nuclear Device. Your operations team is provided with a nuclear authentication disk and a pin-pointer for this reason. The nuclear device will be present somewhere on your destination.</p><p>Hello and thank you for choosing Nanotrasen for your nuclear information needs. Today's crash course will deal with the operation of a Fusion Class Nanotrasen made Nuclear Device.<br>First and foremost, <b>DO NOT TOUCH ANYTHING UNTIL THE BOMB IS IN PLACE.</b> Pressing any button on the compacted bomb will cause it to extend and bolt itself into place. If this is done to unbolt it one must completely log in which at this time may not be possible.<br>To make the device functional:<br>#1 Place bomb in designated detonation zone<br> #2 Extend and anchor bomb (attack with hand).<br>#3 Insert Nuclear Auth. Disk into slot.<br>#4 Type numeric code into keypad ([nuke_code]).<br>Note: If you make a mistake press R to reset the device.<br>#5 Press the E button to log onto the device.<br>You now have activated the device. To deactivate the buttons at anytime, for example when you have already prepped the bomb for detonation, remove the authentication disk OR press the R on the keypad. Now the bomb CAN ONLY be detonated using the timer. A manual detonation is not an option.<br>Note: Toggle off the <b>SAFETY</b>.<br>Use the - - and + + to set a detonation time between 5 seconds and 10 minutes. Then press the timer toggle button to start the countdown. Now remove the authentication disk so that the buttons deactivate.<br>Note: <b>THE BOMB IS STILL SET AND WILL DETONATE</b><br>Now before you remove the disk if you need to move the bomb you can: Toggle off the anchor, move it, and re-anchor.</p><p>The nuclear authorization code is: <b>[nuke_code]</b></p><p><b>Good luck, soldier!</b></p>"
|
||||
PAPER.name = "Spec Ops Manual"
|
||||
|
||||
for (var/obj/landmark/BOMB in world)
|
||||
if (BOMB.name == "Commando-Bomb")
|
||||
new /obj/spawner/newbomb/timer/syndicate(BOMB.loc)
|
||||
del(BOMB)
|
||||
|
||||
message_admins("\blue [key_name_admin(usr)] has spawned a CentCom strike squad.", 1)
|
||||
log_admin("[key_name(usr)] used Spawn Death Squad.")
|
||||
Reference in New Issue
Block a user