]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If stepdown is 2, enable the old fix for stair smoothing while going down stairs
authorMario <mario@smbclan.net>
Sat, 22 Sep 2018 21:48:56 +0000 (07:48 +1000)
committerMario <mario@smbclan.net>
Sat, 22 Sep 2018 21:48:56 +0000 (07:48 +1000)
qcsrc/common/physics/movetypes/walk.qc

index 6e4c548d6cd8aecdd2ced19a27d7f31b406524bf..d22b6d32af223246f59d05b68f05e1edee2804fa 100644 (file)
@@ -170,6 +170,13 @@ void _Movetype_Physics_Walk(entity this, float dt)  // SV_WalkMove
        {
                // this has been disabled so that you can't jump when you are stepping
                // up while already jumping (also known as the Quake2 double jump bug)
+               // LordHavoc: disabled this check so you can walk on monsters/players
+               //if (PRVM_serveredictfloat(ent, solid) == SOLID_BSP)
+               if(GAMEPLAYFIX_STEPDOWN(this) == 2)
+               {
+                       SET_ONGROUND(this);
+                       this.groundentity = trace_ent;
+               }
        }
        else
        {