Adds movement intents

This commit is contained in:
Sam
2017-06-10 10:12:14 +01:00
parent 4d57fff5c9
commit 7cf499dcc1
22 changed files with 51 additions and 47 deletions
+5 -5
View File
@@ -305,8 +305,8 @@ var/static/regex/multispin_words = regex("like a record baby")
else if((findtext(message, walk_words)))
for(var/V in listeners)
var/mob/living/L = V
if(L.m_intent != "walk")
L.m_intent = "walk"
if(L.m_intent != MOVE_INTENT_WALK)
L.m_intent = MOVE_INTENT_WALK
if(L.hud_used)
L.hud_used.move_intent.icon_state = "walking"
next_command = world.time + cooldown_meme
@@ -315,8 +315,8 @@ var/static/regex/multispin_words = regex("like a record baby")
else if((findtext(message, run_words)))
for(var/V in listeners)
var/mob/living/L = V
if(L.m_intent != "run")
L.m_intent = "run"
if(L.m_intent != MOVE_INTENT_RUN)
L.m_intent = MOVE_INTENT_RUN
if(L.hud_used)
L.hud_used.move_intent.icon_state = "running"
next_command = world.time + cooldown_meme
@@ -452,4 +452,4 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_none
message_admins("[key_name_admin(owner)] has said '[log_message]' with a Voice of God, affecting [english_list(listeners)], with a power multiplier of [power_multiplier].")
log_game("[key_name(owner)] has said '[log_message]' with a Voice of God, affecting [english_list(listeners)], with a power multiplier of [power_multiplier].")
log_game("[key_name(owner)] has said '[log_message]' with a Voice of God, affecting [english_list(listeners)], with a power multiplier of [power_multiplier].")