More keybindings (#16329)

* Macros+functions+changelog

* Fixed changelog mistype

* Readded the old up/down keybinds, added preference for the toggle

* Removed toggle as requested by head dev

* sf
This commit is contained in:
Fluffy
2023-12-25 19:48:22 +00:00
committed by GitHub
parent 08fb30c3c3
commit 1e41b55f50
3 changed files with 158 additions and 7 deletions
+38
View File
@@ -1023,6 +1023,44 @@ default behaviour is:
if(hud_used?.move_intent)
hud_used.move_intent.Click()
/**
* Used by a macro in skin.dmf to toggle the throw
*/
/mob/living/verb/throw_intent_keyDown()
set hidden = 1
set name = "throw_intent"
if(!(src.in_throw_mode))
toggle_throw_mode()
/mob/living/verb/throw_intent_keyUp()
set hidden = 1
set name = "throw_intent_up"
if(src.in_throw_mode)
toggle_throw_mode()
/**
* User by a macro in skin.dmf to toggle the running
*/
/mob/living/verb/run_intent_keyDown()
set hidden = 1
set name = "run_intent"
if(usr?.m_intent != M_WALK)
return
if(hud_used?.move_intent)
hud_used.move_intent.Click()
/mob/living/verb/run_intent_keyUp()
set hidden = 1
set name = "run_intent_up"
if(usr?.m_intent != M_RUN)
return
if(hud_used?.move_intent)
hud_used.move_intent.Click()
/mob/living/proc/add_hallucinate(var/amount)
hallucination += amount
hallucination += amount