mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-26 01:11:54 +00:00
Added Seraph exosuit. A command-type marauder with slightly better stats and different equipment. Found in CentCom. Changed Marauder access to centcom special ops. Marauders now come equipped with an armor booster module. When entering exosuits, the exosuit will now face in the appropriate direction. Affects Durand, Gygax, and Phazon. Minor changes to CentCom. Fixed a minor bug with respawn character. It should no longer report character destroyed for object completion for brand-new characters. Fixed gas mask icons for monkeys. Nerfed monkey vent crawling. Monkey needs to be naked to crawl through vents. And not hold anything in their hands/paws. Merged CentCom with z-level 6 (hand tele adjusted for z level 2). Deleted ship building docks since they are not used. Z-level 6 left empty. Detectives can now name their gun. Right click to use the verb, when holding the item. Energy swords/cutlasses will properly change icons now when activated or deactivated. Same with energy axes. Changed some melee weapon paths a bit to accomodate this (and so they're easier to track). Replaced cigar icons with sprites by Matty. Made matches smaller. Added a welder and assassin costumes to admin equip list. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1741 316c924e-a436-60f5-8080-3fe189b3f50e
87 lines
2.4 KiB
Plaintext
87 lines
2.4 KiB
Plaintext
/obj/mecha/combat/phazon
|
|
desc = "An exosuit which can only be described as 'WTF?'."
|
|
name = "Phazon"
|
|
icon_state = "phazon"
|
|
step_in = 1
|
|
dir_in = 1 //Facing North.
|
|
step_energy_drain = 3
|
|
health = 200
|
|
deflect_chance = 30
|
|
max_temperature = 1000
|
|
infra_luminosity = 3
|
|
wreckage = "/obj/decal/mecha_wreckage/phazon"
|
|
add_req_access = 1
|
|
internal_damage_threshold = 25
|
|
force = 15
|
|
var/phasing = 0
|
|
var/phasing_energy_drain = 200
|
|
max_equip = 4
|
|
|
|
|
|
/obj/mecha/combat/phazon/New()
|
|
..()
|
|
var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/tool/rcd
|
|
ME.attach(src)
|
|
ME = new /obj/item/mecha_parts/mecha_equipment/gravcatapult
|
|
ME.attach(src)
|
|
return
|
|
|
|
/obj/mecha/combat/phazon/Bump(var/atom/obstacle)
|
|
if(phasing && get_charge()>=phasing_energy_drain)
|
|
spawn()
|
|
if(can_move)
|
|
can_move = 0
|
|
flick("phazon-phase", src)
|
|
src.loc = get_step(src,src.dir)
|
|
src.use_power(phasing_energy_drain)
|
|
sleep(step_in*3)
|
|
can_move = 1
|
|
else
|
|
. = ..()
|
|
return
|
|
|
|
/obj/mecha/combat/phazon/click_action(atom/target,mob/user)
|
|
if(phasing)
|
|
src.occupant_message("Unable to interact with objects while phasing")
|
|
return
|
|
else
|
|
return ..()
|
|
|
|
/obj/mecha/combat/phazon/verb/switch_damtype()
|
|
set category = "Exosuit Interface"
|
|
set name = "Change melee damage type"
|
|
set src in view(0)
|
|
if(usr!=src.occupant)
|
|
return
|
|
var/new_damtype = alert(src.occupant,"Melee Damage Type",null,"Brute","Fire","Toxic")
|
|
switch(new_damtype)
|
|
if("Brute")
|
|
damtype = "brute"
|
|
if("Fire")
|
|
damtype = "fire"
|
|
if("Toxic")
|
|
damtype = "tox"
|
|
src.occupant_message("Melee damage type switched to [new_damtype ]")
|
|
return
|
|
|
|
/obj/mecha/combat/phazon/get_commands()
|
|
var/output = {"<div class='wr'>
|
|
<div class='header'>Special</div>
|
|
<div class='links'>
|
|
<a href='?src=\ref[src];phasing=1'><span id="phasing_command">[phasing?"Dis":"En"]able phasing</span></a><br>
|
|
<a href='?src=\ref[src];switch_damtype=1'>Change melee damage type</a><br>
|
|
</div>
|
|
</div>
|
|
"}
|
|
output += ..()
|
|
return output
|
|
|
|
/obj/mecha/combat/phazon/Topic(href, href_list)
|
|
..()
|
|
if (href_list["switch_damtype"])
|
|
src.switch_damtype()
|
|
if (href_list["phasing"])
|
|
phasing = !phasing
|
|
send_byjax(src.occupant,"exosuit.browser","phasing_command","[phasing?"Dis":"En"]able phasing")
|
|
src.occupant_message("<font color=\"[phasing?"#00f\">En":"#f00\">Dis"]abled phasing.</font>")
|
|
return |