mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-26 09:14:04 +00:00
/obj/effects is now /obj/effect. /obj/station_objects is now /obj/structure. Did a bit of minor blob work. The Bay 12 body bags were replaced with closets because having two sets of code that do almost the same thing is silly. Changed back a few of the last jobproc edits as the remove from list before assign was a check to see if the mob was fucked up and if it was remove it so we did not check it again as it would still be fucked up. The medbay/tox monkeys names are random once more. More random name monkeys will help with changeling and clean up the observe/mob menus. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2324 316c924e-a436-60f5-8080-3fe189b3f50e
72 lines
1.9 KiB
Plaintext
72 lines
1.9 KiB
Plaintext
/obj/mecha/combat/durand
|
|
desc = "An aging combat exosuit utilized by the Nanotrasen corporation. Originally developed to combat hostile alien lifeforms."
|
|
name = "Durand"
|
|
icon_state = "durand"
|
|
step_in = 4
|
|
dir_in = 1 //Facing North.
|
|
health = 400
|
|
deflect_chance = 20
|
|
max_temperature = 3000
|
|
infra_luminosity = 8
|
|
force = 40
|
|
var/defence = 0
|
|
var/defence_deflect = 35
|
|
wreckage = "/obj/effect/decal/mecha_wreckage/durand"
|
|
|
|
/*
|
|
/obj/mecha/combat/durand/New()
|
|
..()
|
|
weapons += new /datum/mecha_weapon/ballistic/lmg(src)
|
|
weapons += new /datum/mecha_weapon/ballistic/scattershot(src)
|
|
selected_weapon = weapons[1]
|
|
return
|
|
*/
|
|
|
|
/obj/mecha/combat/durand/relaymove(mob/user,direction)
|
|
if(defence)
|
|
if(world.time - last_message > 20)
|
|
src.occupant_message("<font color='red'>Unable to move while in defence mode</font>")
|
|
last_message = world.time
|
|
return 0
|
|
. = ..()
|
|
return
|
|
|
|
|
|
/obj/mecha/combat/durand/verb/defence_mode()
|
|
set category = "Exosuit Interface"
|
|
set name = "Toggle defence mode"
|
|
set src in view(0)
|
|
if(usr!=src.occupant)
|
|
return
|
|
defence = !defence
|
|
if(defence)
|
|
deflect_chance = defence_deflect
|
|
src.occupant_message("<font color='blue'>You enable [src] defence mode.</font>")
|
|
else
|
|
deflect_chance = initial(deflect_chance)
|
|
src.occupant_message("<font color='red'>You disable [src] defence mode.</font>")
|
|
src.log_message("Toggled defence mode.")
|
|
return
|
|
|
|
|
|
/obj/mecha/combat/durand/get_stats_part()
|
|
var/output = ..()
|
|
output += "<b>Defence mode: [defence?"on":"off"]</b>"
|
|
return output
|
|
|
|
/obj/mecha/combat/durand/get_commands()
|
|
var/output = {"<div class='wr'>
|
|
<div class='header'>Special</div>
|
|
<div class='links'>
|
|
<a href='?src=\ref[src];toggle_defence_mode=1'>Toggle defence mode</a>
|
|
</div>
|
|
</div>
|
|
"}
|
|
output += ..()
|
|
return output
|
|
|
|
/obj/mecha/combat/durand/Topic(href, href_list)
|
|
..()
|
|
if (href_list["toggle_defence_mode"])
|
|
src.defence_mode()
|
|
return |