diff --git a/scripts/client/keybind.js b/scripts/client/keybind.js index 60cb3fca..fdb5007a 100644 --- a/scripts/client/keybind.js +++ b/scripts/client/keybind.js @@ -25,7 +25,7 @@ function initKeyBindScript() { function bindAccountKey(key, keyState) { logToConsole(LOG_DEBUG, `[Asshat.KeyBind]: Binded key ${sdl.getKeyName(key)} (${key})`); bindKey(toInteger(key), keyState, function(event) { - if(hasKeyBindDelayElapsed()) { + if(hasKeyBindDelayElapsed() && canLocalPlayerUseKeyBinds()) { lastKeyBindUse = sdl.ticks; tellServerPlayerUsedKeyBind(key); } @@ -65,4 +65,10 @@ function hasKeyBindHoldElapsed(keyState) { return false; } +// =========================================================================== + +function canLocalPlayerUseKeyBinds() { + return (!usingSkinSelector && isSpawned && !itemActionDelayEnabled); +} + // =========================================================================== \ No newline at end of file