input checking (#46425)

Sanity checks + flood checking.

Changes keys_held to a rolling buffer instead of a list of arbitrary size. This limits held keys to 15, I recommend not holding keys with your toes personally.
This commit is contained in:
Rob Bailey
2019-09-16 16:37:14 +12:00
committed by oranges
parent 21909e2733
commit 85adb0c031
4 changed files with 71 additions and 6 deletions
+9
View File
@@ -112,3 +112,12 @@
///Should only be a key-value list of north/south/east/west = obj/screen.
var/list/char_render_holders
///Amount of keydowns in the last keysend checking interval
var/client_keysend_amount = 0
///World tick time where client_keysend_amount will reset
var/next_keysend_reset = 0
///World tick time where keysend_tripped will reset back to false
var/next_keysend_trip_reset = 0
///When set to true, user will be autokicked if they trip the keysends in a second limit again
var/keysend_tripped = FALSE