mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 06:28:01 +01:00
intent cleanup (#16825)
This commit is contained in:
@@ -291,36 +291,36 @@
|
||||
var/mob/living/carbon/C = usr
|
||||
if(C.legcuffed)
|
||||
to_chat(C, span_notice("You are legcuffed! You cannot run until you get [C.legcuffed] removed!"))
|
||||
C.m_intent = "walk" //Just incase
|
||||
C.m_intent = I_WALK //Just incase
|
||||
C.hud_used.move_intent.icon_state = "walking"
|
||||
return 1
|
||||
var/mob/living/L = usr
|
||||
switch(L.m_intent)
|
||||
if("run")
|
||||
L.m_intent = "walk"
|
||||
if(I_RUN)
|
||||
L.m_intent = I_WALK
|
||||
L.hud_used.move_intent.icon_state = "walking"
|
||||
if("walk")
|
||||
L.m_intent = "run"
|
||||
if(I_WALK)
|
||||
L.m_intent = I_RUN
|
||||
L.hud_used.move_intent.icon_state = "running"
|
||||
if("m_intent")
|
||||
if(!usr.m_int)
|
||||
switch(usr.m_intent)
|
||||
if("run")
|
||||
if(I_RUN)
|
||||
usr.m_int = "13,14"
|
||||
if("walk")
|
||||
if(I_WALK)
|
||||
usr.m_int = "14,14"
|
||||
if("face")
|
||||
usr.m_int = "15,14"
|
||||
else
|
||||
usr.m_int = null
|
||||
if("walk")
|
||||
usr.m_intent = "walk"
|
||||
if(I_WALK)
|
||||
usr.m_intent = I_WALK
|
||||
usr.m_int = "14,14"
|
||||
if("face")
|
||||
usr.m_intent = "face"
|
||||
usr.m_int = "15,14"
|
||||
if("run")
|
||||
usr.m_intent = "run"
|
||||
if(I_RUN)
|
||||
usr.m_intent = I_RUN
|
||||
usr.m_int = "13,14"
|
||||
if("Reset Machine")
|
||||
usr.unset_machine()
|
||||
|
||||
Reference in New Issue
Block a user