From 58877309948072655c38e78d1d05959cf3452d83 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 13 Feb 2020 16:43:20 +0100 Subject: [PATCH] Reset pressed keys when going observer --- qcsrc/server/client.qc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 887e00c59..5d536f894 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -2720,6 +2720,11 @@ void PlayerPostThink (entity this) } GetPressedKeys(this); } + else if (IS_OBSERVER(this) && STAT(PRESSED_KEYS, this)) + { + CS(this).pressedkeys = 0; + STAT(PRESSED_KEYS, this) = 0; + } if (this.waypointsprite_attachedforcarrier) { float hp = healtharmor_maxdamage(GetResource(this, RES_HEALTH), GetResource(this, RES_ARMOR), autocvar_g_balance_armor_blockpercent, DEATH_WEAPON.m_id).x; -- 2.39.2