From: Samual Lenks Date: Sun, 3 Mar 2013 19:00:00 +0000 (-0500) Subject: Attempt to fix csqcplayers walking animations X-Git-Tag: xonotic-v0.7.0~62^2~24 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2943f92625e646fd828c733b812ef36ed79370eb;p=xonotic%2Fxonotic-data.pk3dir.git Attempt to fix csqcplayers walking animations --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index 1f8306e76..9fb02eddd 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -623,8 +623,8 @@ void CSQCModel_Hook_PreDraw(float isplayer) } else { - tracebox(self.origin + '0 0 1', self.mins, self.maxs, self.origin - '0 0 1', MOVE_NORMAL, self); - if(trace_fraction < 1 && trace_plane_normal_z > 0.7) + tracebox(self.origin + '0 0 1', self.mins, self.maxs, self.origin - '0 0 4', MOVE_NORMAL, self); + if(trace_startsolid || trace_fraction < 1) onground = 1; } animdecide_init(self);