mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 08:31:57 +00:00
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.
46 lines
882 B
Plaintext
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
|
|
|