* Maps and things no code/icons * helpers defines globalvars * Onclick world.dm orphaned_procs * subsystems Round vote and shuttle autocall done here too * datums * Game folder * Admin - chatter modules * clothing - mining * modular computers - zambies * client * mob level 1 * mob stage 2 + simple_animal * silicons n brains * mob stage 3 + Alien/Monkey * human mobs * icons updated * some sounds * emitter y u no commit * update tgstation.dme * compile fixes * travis fixes Also removes Fast digest mode, because reasons. * tweaks for travis Mentors are broke again Also fixes Sizeray guns * oxygen loss fix for vore code. * removes unused code * some code updates * bulk fixes * further fixes * outside things * whoops. * Maint bar ported * GLOBs.
60 lines
1.9 KiB
Plaintext
60 lines
1.9 KiB
Plaintext
/mob/living/carbon/movement_delay()
|
|
var/FP
|
|
if(iscarbon(src))
|
|
var/mob/living/carbon/C = src
|
|
var/obj/item/device/flightpack/F = C.get_flightpack()
|
|
if(istype(F) && F.flight)
|
|
FP = 1
|
|
. = ..(FP)
|
|
if(!FP)
|
|
. += grab_state * 1 //Flightpacks are too powerful to be slowed too much by the weight of a corpse.
|
|
else
|
|
. += grab_state * 3 //can't go fast while grabbing something.
|
|
|
|
if(!get_leg_ignore()) //ignore the fact we lack legs
|
|
var/leg_amount = get_num_legs()
|
|
. += 6 - 3*leg_amount //the fewer the legs, the slower the mob
|
|
if(!leg_amount)
|
|
. += 6 - 3*get_num_arms() //crawling is harder with fewer arms
|
|
if(legcuffed)
|
|
. += legcuffed.slowdown
|
|
|
|
/mob/living/carbon/slip(s_amount, w_amount, obj/O, lube)
|
|
if(movement_type & FLYING)
|
|
return 0
|
|
if(!(lube&SLIDE_ICE))
|
|
add_logs(src,, "slipped",, "on [O ? O.name : "floor"]")
|
|
return loc.handle_slip(src, s_amount, w_amount, O, lube)
|
|
|
|
|
|
/mob/living/carbon/Process_Spacemove(movement_dir = 0)
|
|
if(..())
|
|
return 1
|
|
if(!isturf(loc))
|
|
return 0
|
|
|
|
var/obj/item/device/flightpack/F = get_flightpack()
|
|
if(istype(F) && (F.flight) && F.allow_thrust(0.01, src))
|
|
return 1
|
|
|
|
// Do we have a jetpack implant (and is it on)?
|
|
var/obj/item/organ/cyberimp/chest/thrusters/T = getorganslot("thrusters")
|
|
if(istype(T) && movement_dir && T.allow_thrust(0.01))
|
|
return 1
|
|
|
|
var/obj/item/weapon/tank/jetpack/J = get_jetpack()
|
|
if(istype(J) && (movement_dir || J.stabilizers) && J.allow_thrust(0.01, src))
|
|
return 1
|
|
|
|
/mob/living/carbon/Move(NewLoc, direct)
|
|
. = ..()
|
|
if(. && mob_has_gravity()) //floating is easy
|
|
if(dna && dna.species && (NOHUNGER in dna.species.species_traits))
|
|
nutrition = NUTRITION_LEVEL_FED - 1 //just less than feeling vigorous
|
|
else if(nutrition && stat != DEAD)
|
|
nutrition -= HUNGER_FACTOR/10
|
|
if(m_intent == MOVE_INTENT_RUN)
|
|
nutrition -= HUNGER_FACTOR/10
|
|
if((disabilities & FAT) && m_intent == MOVE_INTENT_RUN && bodytemperature <= 360)
|
|
bodytemperature += 2
|