Merge pull request #8123 from deathride58/makessprintingstamlossmakesense
Makes sprinting not take stamloss in zero gravity or when pulled
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
/mob/living/carbon/human/Move(NewLoc, direct)
|
/mob/living/carbon/human/Move(NewLoc, direct)
|
||||||
var/oldpseudoheight = pseudo_z_axis
|
var/oldpseudoheight = pseudo_z_axis
|
||||||
. = ..()
|
. = ..()
|
||||||
if(. && sprinting && !(movement_type & FLYING) && canmove && !resting && m_intent == MOVE_INTENT_RUN)
|
if(. && sprinting && !(movement_type & FLYING) && canmove && !resting && m_intent == MOVE_INTENT_RUN && has_gravity(loc) && !pulledby)
|
||||||
adjustStaminaLossBuffered(0.3)
|
adjustStaminaLossBuffered(0.3)
|
||||||
if((oldpseudoheight - pseudo_z_axis) >= 8)
|
if((oldpseudoheight - pseudo_z_axis) >= 8)
|
||||||
to_chat(src, "<span class='warning'>You trip off of the elevated surface!</span>")
|
to_chat(src, "<span class='warning'>You trip off of the elevated surface!</span>")
|
||||||
|
|||||||
Reference in New Issue
Block a user