Exoskeletons

Out with the old! In with the partially finished new.
This commit is contained in:
skull132
2014-06-17 22:17:44 +03:00
parent 868ffc6850
commit 67fc32da6e
8 changed files with 100 additions and 46 deletions
+70
View File
@@ -0,0 +1,70 @@
/obj/item/clothing/suit/exoskeletonvest
name = "Exoskeleton MK. IV"
desc = "A patchwork of hydraulic piping, wires and plates of metal."
icon_state = ""
item_state = ""
blood_overlay_type = "armor"
w_class = 4
armor = list(melee = 70, bullet = 10, laser = 10, energy = 10, bomb = 50, bio = 0, rad = 0)
slowdown = 2
body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS
///obj/item/clothing/suit/exoskeletonvest/pickup(mob/living/user as mob)
// if(
/obj/item/exo_parts/part/light_hydraulics
name = "light hydraulics pack"
desc = "A small, self-propelled pack with piping running out of it."
icon_state = ""
w_class = 3
flags = FPRINT | CONDUCT
origin_tech = "engineering=1;power=2"
/obj/item/exo_parts/chassis/light
name = "light exoskeleton frame"
desc = "A metallic skeletal structure mimmicking that of the human body."
icon_state = ""
w_class = 4
var/state = 0
var/created_name = "Exoskeleton Mk IV"
flags = FPRINT | TABLEPASS | CONDUCT
origin_tech = "engineering=2;biotech=2"
/obj/item/exo_parts/chassis/light/attackby(obj/item/weapon/W as obj, mob/user as mob)
..()
if(istype(W, /obj/item/weapon/pen))
var/t = copytext(stripped_input(user, "Enter new robot name", src.name, src.created_name),1,MAX_NAME_LEN)
if (!t)
return
if (!in_range(src, usr) && src.loc != usr)
return
src.created_name = t
else
switch(state)
if(0)
if(istype(W, /obj/item/exo_parts/part/light_hydraulics))
user.drop_item()
del.W
src.state++
user << "<span class='notice'>You attach the [W] to the [src].</span>"
src.name = "skeleton/hydraulics assembly"
src.icon_state = ""
if(1)
if(istype(W, /obj/item/weapon/screwdriver))
src.state++
user << "<span class='notice'>You tighten the screws holding the hydraulic pack to the frame.</span>"
src.icon_state = ""
if(2)
if(istype(W, /obj/item/weapon/wrench))
src.state++
user << "<span class='notice'>You tighten the hydraulic connections to the various ports.</span>"
src.icon_state = ""
if(3)
if(istype(W, /obj/item/weapon/weldingtool))
src.state++
user << "<span class='notice'>You finalize the construction by welding the various seems together.</span>"
var/turf/T = get_turf(src)
var/obj/item/clothing/suit/exoskeletonvest/S = new /obj/item/clothing/suit/exoskeletonvest(T)
S.name = src.created_name
user.drop_from_inventory(src)
del(src)
@@ -0,0 +1,2 @@
//notes
//use the pickup verb: pickup(mob/living/user as mob)
+1 -12
View File
@@ -263,15 +263,4 @@
item_state = "ert_cdr"
blood_overlay_type = "armor"
flags = FPRINT | TABLEPASS | ONESIZEFITSALL
armor = list(melee = 65, bullet = 25, laser = 65, energy = 25, bomb = 35, bio = 0, rad = 0)
/obj/item/clothing/suit/exoskeletonvest
name = "Exoskeleton MK. IV"
desc = "A patchwork of hydraulic piping, wires and plates of metal."
icon_state = ""
item_state = ""
blood_overlay_type = "armor"
w_class = 4
armor = list(melee = 80, bullet = 10, laser = 10, energy = 10, bomb = 70, bio = 0, rad = 0)
slowdown = -1
body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS
armor = list(melee = 65, bullet = 25, laser = 65, energy = 25, bomb = 35, bio = 0, rad = 0)
+2 -2
View File
@@ -726,7 +726,7 @@ datum/design/honker_targ
build_type = IMPRINTER
materials = list("$glass" = 2000, "sacid" = 20)
build_path = "/obj/item/weapon/circuitboard/mecha/honker/targeting"
/*
datum/design/exoskeleton
name = "Circuit Design (\"Exoskeleton\" Control Module)"
desc = "Allows for the construction of a \"Exoskeleton\" Control Module."
@@ -735,7 +735,7 @@ datum/design/exoskeleton
build_type = IMPRINTER
materials = list("$glass" = 2000, "sacid" = 20)
build_path = "/obj/item/weapon/circuitboard/mecha/exoskeleton/main"
*/
////////////////////////////////////////
/////////// Mecha Equpment /////////////
////////////////////////////////////////