Files
Aurora.3/code/datums/move_intent/move_intent.dm
Matt Atlas 56a3c517e7 Ports Bay's stamina/sprinting intent system. (#8805)
Now this might actually be the last of the ports before I actually code things I swear.

Ports Baystation12/Baystation12#25773 and adds sprinting by holding the shift key, also adding the option to add more movement intents for species with their own slowdown etc etc.
2020-06-18 23:35:29 +03:00

46 lines
882 B
Plaintext

/decl/move_intent
var/name
var/flags = 0
var/move_delay = 1
var/hud_icon_state
/decl/move_intent/proc/can_be_used_by(var/mob/user)
if(flags & MOVE_INTENT_QUICK)
return user.can_sprint()
return TRUE
/decl/move_intent/creep
name = "Creep"
flags = MOVE_INTENT_DELIBERATE
hud_icon_state = "creeping"
/decl/move_intent/creep/Initialize()
. = ..()
move_delay = config.creep_delay
/decl/move_intent/walk
name = "Walk"
flags = MOVE_INTENT_DELIBERATE
hud_icon_state = "walking"
/decl/move_intent/walk/Initialize()
. = ..()
move_delay = config.walk_delay
/decl/move_intent/run
name = "Run"
flags = MOVE_INTENT_EXERTIVE | MOVE_INTENT_QUICK
hud_icon_state = "running"
/decl/move_intent/run/Initialize()
. = ..()
move_delay = config.run_delay
/decl/move_intent/walk/animal
name = "Fast Walk"
/decl/move_intent/walk/animal/Initialize()
. = ..()
move_delay = 0