mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 06:57:42 +01:00
Buckling in will prevent you from falling down in weightless event
This commit is contained in:
+14
-11
@@ -340,21 +340,24 @@
|
|||||||
for(var/mob/living/carbon/human/M in SubA)
|
for(var/mob/living/carbon/human/M in SubA)
|
||||||
thunk(M)
|
thunk(M)
|
||||||
|
|
||||||
/area/proc/thunk(mob)
|
/area/proc/thunk(var/mob/living/carbon/human/M)
|
||||||
if(istype(mob,/mob/living/carbon/human/)) // Only humans can wear magboots, so we give them a chance to.
|
if(istype(M,/mob/living/carbon/human/)) // Only humans can wear magboots, so we give them a chance to.
|
||||||
if((istype(mob:shoes, /obj/item/clothing/shoes/magboots) && (mob:shoes.flags & NOSLIP)))
|
if(istype(M.shoes, /obj/item/clothing/shoes/magboots) && (M.shoes.flags & NOSLIP))
|
||||||
return
|
return
|
||||||
|
|
||||||
if(istype(get_turf(mob), /turf/space)) // Can't fall onto nothing.
|
if (M.buckled) //Cam't fall down if you are buckled
|
||||||
return
|
return
|
||||||
|
|
||||||
if((istype(mob,/mob/living/carbon/human/)) && (mob:m_intent == "run")) // Only clumbsy humans can fall on their asses.
|
if(istype(get_turf(M), /turf/space)) // Can't fall onto nothing.
|
||||||
mob:AdjustStunned(5)
|
return
|
||||||
mob:AdjustWeakened(5)
|
|
||||||
|
|
||||||
else if (istype(mob,/mob/living/carbon/human/))
|
if((istype(M,/mob/living/carbon/human/)) && (M.m_intent == "run")).
|
||||||
mob:AdjustStunned(2)
|
M.AdjustStunned(5)
|
||||||
mob:AdjustWeakened(2)
|
M.AdjustWeakened(5)
|
||||||
|
|
||||||
mob << "Gravity!"
|
else if (istype(M,/mob/living/carbon/human/))
|
||||||
|
M.AdjustStunned(2)
|
||||||
|
M.AdjustWeakened(2)
|
||||||
|
|
||||||
|
M << "Gravity!"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user