This commit is contained in:
kevinz000
2020-01-16 00:21:21 -07:00
parent 350c5aa060
commit 1d184b8cad
6 changed files with 11 additions and 10 deletions
+2 -2
View File
@@ -104,10 +104,10 @@
if(owner.restrained())
return FALSE
if(check_flags & AB_CHECK_STUN)
if(!CHECK_MOBILITY(owner, MOBILITY_USE))
if(istype(L) && !CHECK_MOBILITY(L, MOBILITY_USE))
return FALSE
if(check_flags & AB_CHECK_LYING)
if(!CHECK_MOBILITY(owner, MOBILITY_STAND))
if(istype(L) && !CHECK_MOBILITY(L, MOBILITY_STAND))
return FALSE
if(check_flags & AB_CHECK_CONSCIOUS)
if(owner.stat)
+1 -1
View File
@@ -180,7 +180,7 @@ Class Procs:
A.forceMove(T)
if(isliving(A))
var/mob/living/L = A
L.update_canmove()
L.update_mobility()
if(occupant)
SEND_SIGNAL(src, COMSIG_MACHINE_EJECT_OCCUPANT, occupant)
occupant = null
+1 -1
View File
@@ -750,7 +750,7 @@
AI.cancel_camera()
AI.controlled_mech = src
AI.remote_control = src
AI.mobility_flags = MOBILIITY_FLAG_DEFAULT //Much easier than adding AI checks! Be sure to set this back to 0 if you decide to allow an AI to leave a mech somehow.
AI.mobility_flags = MOBILITY_FLAG_DEFAULT //Much easier than adding AI checks! Be sure to set this back to 0 if you decide to allow an AI to leave a mech somehow.
AI.can_shunt = 0 //ONE AI ENTERS. NO AI LEAVES.
to_chat(AI, AI.can_dominate_mechs ? "<span class='announce'>Takeover of [name] complete! You are now loaded onto the onboard computer. Do not attempt to leave the station sector!</span>" :\
"<span class='notice'>You have been uploaded to a mech's onboard computer.</span>")
+1 -1
View File
@@ -46,7 +46,7 @@
return
if(user == O && iscarbon(O))
var/mob/living/L = O
if(CHECK_MOBILITY(O, MOBILITY_MOVE))
if(CHECK_MOBILITY(L, MOBILITY_MOVE))
climb_structure(user)
return
if(!istype(O, /obj/item) || user.get_active_held_item() != O)
+5 -4
View File
@@ -491,10 +491,11 @@
cooldown = COOLDOWN_DAMAGE //because stun removal
for(var/V in listeners)
var/mob/living/L = V
if(L.resting)
L.lay_down() //aka get up
L.SetAllImmobility(0)
L.SetUnconscious(0) //i said get up i don't care if you're being tased
if(L._REFACTORING_resting)
L.set_resting(FALSE, FALSE, FALSE)
L.SetAllImmobility(0, FALSE)
L.SetUnconscious(0, FALSE) //i said get up i don't care if you're being tased
L.update_mobility()
//SIT
else if((findtext(message, sit_words)))
@@ -6,7 +6,7 @@
/mob/living/silicon/robot/movement_delay()
. = ..()
if(!resting && !sprinting)
if(!_REFACTORING_resting && !sprinting)
. += 1
. += speed