mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-20 07:12:55 +00:00
278 lines
19 KiB
Plaintext
278 lines
19 KiB
Plaintext
|
|
//HERE BE A VERY LARGE DRAGON
|
|
|
|
/obj/item/clothing/suit/space/space_ninja/proc/spideros()
|
|
set name = "Display SpiderOS"
|
|
set desc = "Utilize built-in computer system."
|
|
set category = "Ninja Equip"
|
|
|
|
if(!s_busy)
|
|
display_spideros()
|
|
else
|
|
to_chat(affecting, "<span class='danger'>The interface is locked!</span>")
|
|
|
|
|
|
/obj/item/clothing/suit/space/space_ninja/proc/display_spideros()
|
|
if(!affecting) return//If no mob is wearing the suit. I almost forgot about this variable.
|
|
var/mob/living/carbon/human/U = affecting
|
|
var/display_to = U//Who do we want to display certain messages to?
|
|
|
|
if(U.client) // Send the spider OS images to the client
|
|
var/datum/asset/simple/S = new/datum/asset/simple/spider_os() //no longer exists ;)
|
|
send_asset_list(U.client, S.assets)
|
|
|
|
var/dat = "<html><head><title>SpiderOS</title></head><body bgcolor=\"#3D5B43\" text=\"#DB2929\"><style>a, a:link, a:visited, a:active, a:hover { color: #DB2929; }img {border-style:none;}</style>"
|
|
dat += "<a href='byond://?src=\ref[src];choice=Refresh'><img src=sos_7.png> Refresh</a>"
|
|
if(spideros)
|
|
dat += " | <a href='byond://?src=\ref[src];choice=Return'><img src=sos_1.png> Return</a>"
|
|
dat += " | <a href='byond://?src=\ref[src];choice=Close'><img src=sos_8.png> Close</a>"
|
|
dat += "<br>"
|
|
dat += "<h2 ALIGN=CENTER>SpiderOS v.1.337</h2>"
|
|
dat += "Welcome, <b>[U.real_name]</b>.<br>"
|
|
dat += "<br>"
|
|
dat += "<img src=sos_10.png> Current Time: [worldtime2text()]<br>"
|
|
dat += "<img src=sos_9.png> Battery Life: [round(cell.charge/100)]%<br>"
|
|
dat += "<img src=sos_11.png> Smoke Bombs: \Roman [s_bombs]<br>"
|
|
dat += "<br><br>"
|
|
|
|
switch(spideros)
|
|
if(0)
|
|
dat += "<h4><img src=sos_1.png> Available Functions:</h4>"
|
|
dat += "<ul>"
|
|
dat += "<li><a href='byond://?src=\ref[src];choice=7'><img src=sos_4.png> Research Stored</a></li>"
|
|
dat += "<li><a href='byond://?src=\ref[src];choice=3'><img src=sos_3.png> Medical Screen</a></li>"
|
|
dat += "<li><a href='byond://?src=\ref[src];choice=1'><img src=sos_5.png> Atmos Scan</a></li>"
|
|
dat += "<li><a href='byond://?src=\ref[src];choice=2'><img src=sos_12.png> Messenger</a></li>"
|
|
dat += "<li><a href='byond://?src=\ref[src];choice=4'><img src=sos_6.png> Other</a></li>"
|
|
dat += "</ul>"
|
|
if(3)
|
|
dat += "<h4><img src=sos_3.png> Medical Report:</h4>"
|
|
if(U.dna)
|
|
dat += "<b>Fingerprints</b>: <i>[md5(U.dna.uni_identity)]</i><br>"
|
|
dat += "<b>Unique identity</b>: <i>[U.dna.unique_enzymes]</i><br>"
|
|
dat += "<h4>Overall Status: [U.stat > 1 ? "dead" : "[U.health]% healthy"]</h4>"
|
|
dat += "<h4>Nutrition Status: [U.nutrition]</h4>"
|
|
dat += "Oxygen loss: [U.getOxyLoss()]"
|
|
dat += " | Toxin levels: [U.getToxLoss()]<br>"
|
|
dat += "Burn severity: [U.getFireLoss()]"
|
|
dat += " | Brute trauma: [U.getBruteLoss()]<br>"
|
|
dat += "Radiation Level: [U.radiation] rad<br>"
|
|
dat += "Body Temperature: [U.bodytemperature-T0C]°C ([U.bodytemperature*1.8-459.67]°F)<br>"
|
|
|
|
for(var/datum/disease/D in U.viruses)
|
|
dat += "Warning: Virus Detected. Name: [D.name].Type: [D.spread_text]. Stage: [D.stage]/[D.max_stages]. Possible Cure: [D.cure_text].<br>"
|
|
dat += "<ul>"
|
|
for(var/datum/reagent/R in reagents.reagent_list)
|
|
if(R.id=="radium")
|
|
continue
|
|
dat += "<li><a href='byond://?src=\ref[src];choice=Inject;name=[R.name];tag=[R.id]'><img src=sos_2.png> Inject [R.name]: [(reagents.get_reagent_amount(R.id)-(R.id=="radium"?(a_boost*a_transfer):0))/(R.id=="nutriment"?5:a_transfer)] left</a></li>"
|
|
dat += "</ul>"
|
|
if(1)
|
|
dat += "<h4><img src=sos_5.png> Atmospheric Scan:</h4>"//Headers don't need breaks. They are automatically placed.
|
|
var/turf/T = get_turf(U.loc)
|
|
if(isnull(T))
|
|
dat += "Unable to obtain a reading."
|
|
else
|
|
var/datum/gas_mixture/environment = T.return_air()
|
|
|
|
var/pressure = environment.return_pressure()
|
|
var/total_moles = environment.total_moles()
|
|
|
|
dat += "Air Pressure: [round(pressure,0.1)] kPa"
|
|
|
|
if(total_moles)
|
|
var/o2_level = environment.oxygen/total_moles
|
|
var/n2_level = environment.nitrogen/total_moles
|
|
var/co2_level = environment.carbon_dioxide/total_moles
|
|
var/plasma_level = environment.toxins/total_moles
|
|
var/unknown_level = 1-(o2_level+n2_level+co2_level+plasma_level)
|
|
dat += "<ul>"
|
|
dat += "<li>Nitrogen: [round(n2_level*100)]%</li>"
|
|
dat += "<li>Oxygen: [round(o2_level*100)]%</li>"
|
|
dat += "<li>Carbon Dioxide: [round(co2_level*100)]%</li>"
|
|
dat += "<li>Plasma: [round(plasma_level*100)]%</li>"
|
|
dat += "</ul>"
|
|
if(unknown_level > 0.01)
|
|
dat += "OTHER: [round(unknown_level)]%<br>"
|
|
|
|
dat += "Temperature: [round(environment.temperature-T0C)]°C"
|
|
if(2)
|
|
dat += "<h4><img src=sos_12.png> Anonymous Messenger:</h4>"//Anonymous because the receiver will not know the sender's identity.
|
|
dat += "<h4><img src=sos_6.png> Detected PDAs:</h4>"
|
|
dat += "<ul>"
|
|
var/count = 0
|
|
for(var/obj/item/device/pda/P in get_viewable_pdas())
|
|
dat += "<li><a href='byond://?src=\ref[src];choice=Message;target=\ref[P]'>[P]</a>"
|
|
dat += "</li>"
|
|
count++
|
|
dat += "</ul>"
|
|
if(count == 0)
|
|
dat += "None detected.<br>"
|
|
if(4)
|
|
dat += {"
|
|
<h4><img src=sos_6.png> Ninja Manual:</h4>
|
|
<h5>Who they are:</h5>
|
|
Space ninjas are a special type of ninja, specifically one of the space-faring type. The vast majority of space ninjas belong to the Spider Clan, a cult-like sect, which has existed for several hundred years. The Spider Clan practice a sort of augmentation of human flesh in order to achieve a more perfect state of being and follow Postmodern Space Bushido. They also kill people for money. Their leaders are chosen from the oldest of the grand-masters, people that have lived a lot longer than any mortal man should.<br>Being a sect of technology-loving fanatics, the Spider Clan have the very best to choose from in terms of hardware--cybernetic implants, exoskeleton rigs, hyper-capacity batteries, and you get the idea. Some believe that much of the Spider Clan equipment is based on reverse-engineered alien technology while others doubt such claims.<br>Whatever the case, their technology is absolutely superb.
|
|
<h5>How they relate to other SS13 organizations:</h5>
|
|
<ul>
|
|
<li>*<b>Nanotrasen</b> and the Syndicate are two sides of the same coin and that coin is valuable.</li>
|
|
<li>*<b>The Space Wizard Federation</b> is a problem, mainly because they are an extremely dangerous group of unpredictable individuals--not to mention the wizards hate technology and are in direct opposition of the Spider Clan. Best avoided or left well-enough alone. How to battle: wizards possess several powerful abilities to steer clear off. Blind in particular is a nasty spell--jaunt away if you are blinded and never approach a wizard in melee. Stealth may also work if the wizard is not wearing thermal scanners--don't count on this. Run away if you feel threatened and await a better opportunity.</li>
|
|
<li>*<b>Changeling Hivemind</b>: extremely dangerous and to be killed on sight. How to battle: they will likely try to absorb you. Adrenaline boost, then phase shift into them. If you get stung, use SpiderOS to inject counter-agents. Stealth may also work but detecting a changeling is the real battle.</li>
|
|
<li>*<b>Xeno Hivemind</b>: their skulls make interesting kitchen decorations and are challenging to best, especially in larger nests. How to battle: they can see through your stealth guise and energy stars will not work on them. Best killed with a Phase Shift or at range. If you happen on a projectile stun weapon, use it and then close in to melee.</li>
|
|
</ul>
|
|
<h5>The reason they (you) are here:</h5>
|
|
Space ninjas are renowned throughout the known controlled space as fearless spies, infiltrators, and assassins. They are sent on missions of varying nature by Nanotrasen, the Syndicate, and other shady organizations and people. To hire a space ninja means serious business.
|
|
<h5>Their playstyle:</h5>
|
|
A mix of traitor, changeling, and wizard. Ninjas rely on energy, or electricity to be precise, to keep their suits running (when out of energy, a suit hibernates). Suits gain energy from objects or creatures that contain electrical charge. APCs, cell batteries, rechargers, SMES batteries, cyborgs, mechs, and exposed wires are currently supported. Through energy ninjas gain access to special powers--while all powers are tied to the ninja suit, the most useful of them are verb activated--to help them in their mission.<br>It is a constant struggle for a ninja to remain hidden long enough to recharge the suit and accomplish their objective; despite their arsenal of abilities, ninjas can die like any other. Unlike wizards, ninjas do not possess good crowd control and are typically forced to play more subdued in order to achieve their goals. Some of their abilities are specifically designed to confuse and disorient others.<br>With that said, it should be perfectly possible to completely flip the fuck out and rampage as a ninja.
|
|
<h5>Their powers:</h5>
|
|
There are two primary types: Equipment and Abilties. Passive effect are always on. Active effect must be turned on and remain active only when there is energy to do so. Ability costs are listed next to them.
|
|
<b>Equipment</b>: cannot be tracked by AI (passive), faster speed (passive), stealth (active), vision switch(passive if toggled), voice masking (passive), SpiderOS (passive if toggled), energy drain (passive if toggled).
|
|
<ul>
|
|
<li><i>Voice masking</i> generates a random name the ninja can use over the radio and in-person. Although, the former use is recommended.</li>
|
|
<li><i>Toggling vision</i> cycles to one of the following: thermal, meson, or darkness vision. The starting mode allows one to scout the identity of those in view, revealing their role. Traitors, revolutionaries, wizards, and other such people will be made known to you.</li>
|
|
<li><i>Stealth</i>, when activated, drains more battery charge and works similarly to a syndicate cloak. The cloak will deactivate when most Abilities are utilized.</li>
|
|
<li><i>On-board AI</i>: The suit is able to download an AI much like an intellicard. Check with SpiderOS for details once downloaded.</li>
|
|
<li><i>SpiderOS</i> is a specialized, PDA-like screen that allows for a small variety of functions, such as injecting healing chemicals directly from the suit. You are using it now, if that was not already obvious. You may also download AI modules directly to the OS.</li>
|
|
</ul>
|
|
<b>Abilities</b>:
|
|
<ul>
|
|
<li>*<b>Phase Shift</b> (<i>2000E</i>) and <b>Phase Jaunt</b> (<i>1000E</i>) are unique powers in that they can both be used for defense and offense. Jaunt launches the ninja forward facing up to 9 squares, somewhat randomly selecting the final destination. Shift can only be used on turf in view but is precise (cannot be used on walls). Any living mob in the area teleported to is instantly gibbed (mechs are damaged, huggers and other similar critters are killed). It is possible to teleport with a target, provided you grab them before teleporting.</li>
|
|
<li>*<b>Energy Blade</b> (<i>500E</i>) is a highly effective weapon. It is summoned directly to the ninja's hand and can also function as an EMAG for certain objects (doors/lockers/etc). You may also use it to cut through walls and disabled doors. Experiment! The blade will crit humans in two hits. This item cannot be placed in containers and when dropped or thrown disappears. Having an energy blade drains more power from the battery each tick.</li>
|
|
<li>*<b>EM Pulse</b> (<i>2500E</i>) is a highly useful ability that will create an electromagnetic shockwave around the ninja, disabling technology whenever possible. If used properly it can render a security force effectively useless. Of course, getting beat up with a toolbox is not accounted for.</li>
|
|
<li>*<b>Energy Star</b> (<i>500E</i>) is a ninja star made of green energy AND coated in poison. It works by picking a random living target within range and can be spammed to great effect in incapacitating foes. Just remember that the poison used is also used by the Xeno Hivemind (and will have no effect on them).</li>
|
|
<li>*<b>Energy Net</b> (<i>2000E</i>) is a non-lethal solution to incapacitating humanoids. The net is made of non-harmful phase energy and will halt movement as long as it remains in effect--it can be destroyed. If the net is not destroyed, after a certain time it will teleport the target to a holding facility for the Spider Clan and then vanish. You will be notified if the net fails or succeeds in capturing a target in this manner. Combine with energy stars or stripping to ensure success. Abduction never looked this leet.</li>
|
|
<li>*<b>Adrenaline Boost</b> (<i>1 E. Boost/3</i>) recovers the user from stun, weakness, and paralysis. Also injects 20 units of radium into the bloodstream.</li>
|
|
<li>*<b>Smoke Bomb</b> (<i>1 Sm.Bomb/10</i>) is a weak but potentially useful ability. It creates harmful smoke and can be used in tandem with other powers to confuse enemies.</li>
|
|
<li>*<b>???</b>: unleash the <b>True Ultimate Power!</b></li>
|
|
<h4>IMPORTANT:</h4>
|
|
<ul>
|
|
<li>*Make sure to toggle Special Interaction from the Ninja Equipment menu to interact differently with certain objects.</li>
|
|
<li>*Your starting power cell can be replaced if you find one with higher maximum energy capacity by clicking on your suit with the higher capacity cell.</li>
|
|
<li>*Conserve your energy. Without it, you are very vulnerable.</li>
|
|
</ul>
|
|
That is all you will need to know. The rest will come with practice and talent. Good luck!
|
|
<h4>Master /N</h4>
|
|
"}
|
|
if(6)
|
|
dat += {"
|
|
<h4><img src=sos_6.png> Activate Abilities:</h4>
|
|
<ul>
|
|
<li><a href='byond://?src=\ref[src];choice=Trigger Ability;name=Phase Jaunt;cost= (10E)'><img src=sos_13.png> Phase Jaunt</a></li>
|
|
<li><a href='byond://?src=\ref[src];choice=Trigger Ability;name=Phase Shift;cost= (20E)'><img src=sos_13.png> Phase Shift</a></li>
|
|
<li><a href='byond://?src=\ref[src];choice=Trigger Ability;name=Energy Blade;cost= (5E)'><img src=sos_13.png> Energy Blade</a></li>
|
|
<li><a href='byond://?src=\ref[src];choice=Trigger Ability;name=Energy Star;cost= (5E)'><img src=sos_13.png> Energy Star</a></li>
|
|
<li><a href='byond://?src=\ref[src];choice=Trigger Ability;name=Energy Net;cost= (20E)'><img src=sos_13.png> Energy Net</a></li>
|
|
<li><a href='byond://?src=\ref[src];choice=Trigger Ability;name=EM Burst;cost= (25E)'><img src=sos_13.png> EM Pulse</a></li>
|
|
<li><a href='byond://?src=\ref[src];choice=Trigger Ability;name=Smoke Bomb;cost='><img src=sos_13.png> Smoke Bomb</a></li>
|
|
<li><a href='byond://?src=\ref[src];choice=Trigger Ability;name=Adrenaline Boost;cost='><img src=sos_13.png> Adrenaline Boost</a></li>
|
|
</ul>
|
|
"}
|
|
if(7)
|
|
dat += "<h4><img src=sos_4.png> Research Stored:</h4>"
|
|
if(t_disk)
|
|
dat += "<a href='byond://?src=\ref[src];choice=Eject Disk'>Eject Disk</a><br>"
|
|
dat += "<ul>"
|
|
if(istype(stored_research,/list))//If there is stored research. Should be but just in case.
|
|
for(var/datum/tech/current_data in stored_research)
|
|
dat += "<li>"
|
|
dat += "[current_data.name]: [current_data.level]"
|
|
if(t_disk)//If there is a disk inserted. We can either write or overwrite.
|
|
dat += " <a href='byond://?src=\ref[src];choice=Copy to Disk;target=\ref[current_data]'><i>*Copy to Disk</i></a><br>"
|
|
dat += "</li>"
|
|
dat += "</ul>"
|
|
dat += "</body></html>"
|
|
|
|
//Setting the can>resize etc to 0 remove them from the drag bar but still allows the window to be draggable.
|
|
display_to << browse(dat,"window=spideros;size=400x444;border=1;can_resize=1;can_close=0;can_minimize=0")
|
|
|
|
//=======//SPIDEROS TOPIC PROC//=======//
|
|
|
|
/obj/item/clothing/suit/space/space_ninja/Topic(href, href_list)
|
|
..()
|
|
var/mob/living/carbon/human/U = affecting
|
|
var/display_to = U
|
|
|
|
|
|
if(!affecting||U.stat||!s_initialized)//Check to make sure the guy is wearing the suit after clicking and it's on.
|
|
to_chat(U, "<span class='danger'>Your suit must be worn and active to use this function.</span>")
|
|
U << browse(null, "window=spideros")//Closes the window.
|
|
return
|
|
|
|
switch(href_list["choice"])
|
|
if("Close")
|
|
display_to << browse(null, "window=spideros")
|
|
return
|
|
if("Refresh")//Refresh, goes to the end of the proc.
|
|
if("Return")//Return
|
|
if(spideros<=9)
|
|
spideros=0
|
|
else
|
|
spideros = round(spideros/10)//Best way to do this, flooring to nearest integer.
|
|
|
|
if("Message")
|
|
var/obj/item/device/pda/P = locate(href_list["target"])
|
|
var/t = input(U, "Please enter untraceable message.") as text
|
|
t = copytext(sanitize(t), 1, MAX_MESSAGE_LEN)
|
|
if(!t||U.stat||U.wear_suit!=src||!s_initialized)//Wow, another one of these. Man...
|
|
display_to << browse(null, "window=spideros")
|
|
return
|
|
if(isnull(P)||P.toff)//So it doesn't freak out if the object no-longer exists.
|
|
to_chat(display_to, "<span class='danger'>Error: unable to deliver message.</span>")
|
|
display_spideros()
|
|
return
|
|
|
|
var/datum/data/pda/app/messenger/M = P.find_program(/datum/data/pda/app/messenger)
|
|
M.notify("<b>Message from unknown source: </b>\"[t]\" (Unable to Reply)", 0)
|
|
|
|
if("Inject")
|
|
if( (href_list["tag"]=="radium"? (reagents.get_reagent_amount("radium"))<=(a_boost*a_transfer) : !reagents.get_reagent_amount(href_list["tag"])) )//Special case for radium. If there are only a_boost*a_transfer radium units left.
|
|
to_chat(display_to, "<span class='danger'>Error: the suit cannot perform this function. Out of [href_list["name"]].</span>")
|
|
else
|
|
reagents.reaction(U, 2)
|
|
reagents.trans_id_to(U, href_list["tag"], href_list["tag"]=="nutriment"?5:a_transfer)//Nutriment is a special case since it's very potent. Shouldn't influence actual refill amounts or anything.
|
|
to_chat(display_to, "Injecting...")
|
|
to_chat(U, "You feel a tiny prick and a sudden rush of substance in to your veins.")
|
|
|
|
if("Trigger Ability")
|
|
var/ability_name = href_list["name"]+href_list["cost"]//Adds the name and cost to create the full proc name.
|
|
var/proc_arguments//What arguments to later pass to the proc, if any.
|
|
var/list/targets = list()//To later check for.
|
|
var/safety = 0//To later make sure we're triggering the proc when needed.
|
|
switch(href_list["name"])//Special case.
|
|
if("Phase Shift")
|
|
safety = 1
|
|
for(var/turf/T in oview(5,loc))
|
|
targets.Add(T)
|
|
if("Energy Net")
|
|
safety = 1
|
|
for(var/mob/living/carbon/M in oview(5,loc))
|
|
targets.Add(M)
|
|
if(targets.len)//Let's create an argument for the proc if needed.
|
|
proc_arguments = pick(targets)
|
|
safety = 0
|
|
if(!safety)
|
|
to_chat(U, "[href_list["name"]] suddenly triggered!")
|
|
call(src,ability_name)(proc_arguments)
|
|
|
|
if("Eject Disk")
|
|
var/turf/T = get_turf(loc)
|
|
if(!U.get_active_hand())
|
|
U.put_in_hands(t_disk)
|
|
t_disk.add_fingerprint(U)
|
|
t_disk = null
|
|
else
|
|
if(T)
|
|
t_disk.loc = T
|
|
t_disk = null
|
|
else
|
|
to_chat(U, "<span class='userdanger'>ERROR</span>: Could not eject disk.")
|
|
|
|
if("Copy to Disk")
|
|
var/datum/tech/current_data = locate(href_list["target"])
|
|
to_chat(U, "[current_data.name] successfully [(!t_disk.stored) ? "copied" : "overwritten"] to disk.")
|
|
t_disk.stored = current_data
|
|
|
|
|
|
display_spideros()//Refreshes the screen by calling it again (which replaces current screen with new screen).
|
|
return
|