mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-21 15:51:31 +00:00
19 lines
449 B
Plaintext
19 lines
449 B
Plaintext
/mob/living/silicon/robot/key_down(_key, client/user)
|
|
switch(_key)
|
|
if("1", "2", "3")
|
|
toggle_module(text2num(_key))
|
|
return
|
|
if("4")
|
|
a_intent_change(INTENT_HOTKEY_LEFT)
|
|
return
|
|
if("X")
|
|
cycle_modules()
|
|
return
|
|
if("Q")
|
|
if(!(client.prefs.toggles & PREFTOGGLE_AZERTY))
|
|
on_drop_hotkey_press() // User is in QWERTY hotkey mode.
|
|
if("A")
|
|
if(client.prefs.toggles & PREFTOGGLE_AZERTY)
|
|
on_drop_hotkey_press()
|
|
return ..()
|