]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Attempt to fix csqcplayers walking animations
authorSamual Lenks <samual@xonotic.org>
Sun, 3 Mar 2013 19:00:00 +0000 (14:00 -0500)
committerSamual Lenks <samual@xonotic.org>
Sun, 3 Mar 2013 19:00:00 +0000 (14:00 -0500)
qcsrc/client/csqcmodel_hooks.qc

index 1f8306e7675f4609b13f75777821ff12ad27902f..9fb02eddd8869e55583cce0c2ffc60508d478fa5 100644 (file)
@@ -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);