e632dee0de
* spawn_mecha_result() code Function that places the cell from construction from the holder into the new mech, and check and applies scanning module/capacitor upgrades for combat mechs * New holder icons No change made to the new sprites as of current. * New ripley construction code * New gygax construction code * New fireripley construction code * New honker construction code * New durand construction code * New phazon construction code * New odysseus construction code * Cyberboss Requested Fixes #1 * Cyberboss Requested Fixes #2 Turns result in mecha_construction_paths to types, also removes result in phazon_chassis as it has no purpose. changes qdel to QDEL_NULL * Removes old cell from add_cell() in the Initialize() * Move CheckParts to obj/mecha and move cell check to CheckParts
29 lines
968 B
Plaintext
29 lines
968 B
Plaintext
/obj/mecha/combat
|
|
force = 30
|
|
internal_damage_threshold = 50
|
|
armor = list(melee = 30, bullet = 30, laser = 15, energy = 20, bomb = 20, bio = 0, rad = 0, fire = 100, acid = 100)
|
|
|
|
/obj/mecha/combat/moved_inside(mob/living/carbon/human/H)
|
|
if(..())
|
|
if(H.client && H.client.mouse_pointer_icon == initial(H.client.mouse_pointer_icon))
|
|
H.client.mouse_pointer_icon = 'icons/mecha/mecha_mouse.dmi'
|
|
return 1
|
|
else
|
|
return 0
|
|
|
|
/obj/mecha/combat/mmi_moved_inside(obj/item/device/mmi/mmi_as_oc,mob/user)
|
|
if(..())
|
|
if(occupant.client && occupant.client.mouse_pointer_icon == initial(occupant.client.mouse_pointer_icon))
|
|
occupant.client.mouse_pointer_icon = 'icons/mecha/mecha_mouse.dmi'
|
|
return 1
|
|
else
|
|
return 0
|
|
|
|
|
|
/obj/mecha/combat/go_out()
|
|
if(occupant && occupant.client && occupant.client.mouse_pointer_icon == 'icons/mecha/mecha_mouse.dmi')
|
|
occupant.client.mouse_pointer_icon = initial(occupant.client.mouse_pointer_icon)
|
|
..()
|
|
|
|
|