mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-29 08:09:34 +01:00
* Upkeep on Mech code. Assembly Mines fixed, they do not spawn with an explosive payload from parent. Vehicles no longer ignore cliffs. Exosuits no longer ignore cliffs. Objects can fall off cliffs. Objects with a buckled person will hurt the person. (Rollerbeds looking at you.) Jumpjets added to allow planetary traversal, primarily useful upon the Serenity, Hoverpods, and Marauders (adminspawn). When toggled, they allow movement vertically, and prevent falling through open spaces. When used as the active equipment, it will launch the exosuit toward the target turf. When not on one of the above mentioned suits, it will cause a small explosion on launch, damaging the exosuit and anything directly nearby. * Fighters are flying. * Revert step delay floor adjustment. Flat strafing modifier of 1/5th of a second should be enough. * Correction and Tweak. * Fix stupidity.
21 lines
450 B
Plaintext
21 lines
450 B
Plaintext
/*
|
|
* Helper file for Exosuit / Mecha code.
|
|
*/
|
|
|
|
// Returns, at least, a usable target body position, for things like guns.
|
|
|
|
/obj/mecha/proc/get_pilot_zone_sel()
|
|
if(!occupant || !occupant.zone_sel || occupant.stat)
|
|
return BP_TORSO
|
|
|
|
return occupant.zone_sel.selecting
|
|
|
|
/obj/mecha/proc/in_flight()
|
|
if(flying)
|
|
return TRUE
|
|
|
|
for(var/obj/item/mecha_parts/mecha_equipment/Mequip in equipment)
|
|
if(Mequip.check_hover())
|
|
return TRUE
|
|
return FALSE
|