From e789d4400bbe87a098cf9c7ea5f72db75f6a1f54 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 19 May 2021 04:49:52 +0000 Subject: [PATCH] Hack around the qc code to restore its jump sound when using autobunny. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5860 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/server/sv_user.c b/engine/server/sv_user.c index bdcac5d3a..e9f20d60c 100644 --- a/engine/server/sv_user.c +++ b/engine/server/sv_user.c @@ -7515,6 +7515,8 @@ if (sv_player->v->health > 0 && before && !after ) else sv_player->v->watertype = Q1CONTENTS_EMPTY; + if (pmove.jump_held && movevars.autobunny) //make sure the qc thinks we released the button at some point, triggering a new jump sound. + sv_player->v->flags = (int)sv_player->v->flags | FL_JUMPRELEASED; if (pmove.onground) { sv_player->v->flags = (int)sv_player->v->flags | FL_ONGROUND;