From: MirceaKitsune Date: Thu, 2 Sep 2010 12:33:49 +0000 (+0300) Subject: Fix a bug where an eaten player would see the stomach model left behind in online... X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=146862c27a2a6a77531084d7df22cb46d70ed6dc Fix a bug where an eaten player would see the stomach model left behind in online matches, as their eater walked around. Seems to be fixed by not attempting to animate md3 models, which I think makes sense. --- diff --git a/Todo & known bugs.txt b/Todo & known bugs.txt index b5283c17..350a17cc 100644 --- a/Todo & known bugs.txt +++ b/Todo & known bugs.txt @@ -16,8 +16,6 @@ Todo: Known bugs: -- (major) A player in the belly may sometimes see the stomach model (eater) being left behind as he walks. Doesn't happen with bots, only with real players over network. It's possible that .aiment might not do the trick. - - VoreTournament freezes 6-7 seconds after startup for about 5 seconds. This is due to the rebranding (using the -customgamename flag) - Prey bots don't kick in the stomach in Arena and Clan Arena gametypes diff --git a/data/qcsrc/server/g_subs.qc b/data/qcsrc/server/g_subs.qc index 49aaebf6..b1871185 100644 --- a/data/qcsrc/server/g_subs.qc +++ b/data/qcsrc/server/g_subs.qc @@ -16,6 +16,11 @@ void spawnfunc_info_null (void) void setanim(entity e, vector anim, float looping, float override, float restart) { + float n; + n = tokenizebyseparator(self.model, "."); + if(argv(1) == "md3") + return; + if (anim_x == e.animstate_startframe) if (anim_y == e.animstate_numframes) if (anim_z == e.animstate_framerate)