mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user