]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Swap cl_movement 3 and 1, so the default is QC movetypes (the old prediction will...
authorMario <mario@smbclan.net>
Thu, 17 Dec 2015 17:57:22 +0000 (03:57 +1000)
committerMario <mario@smbclan.net>
Thu, 17 Dec 2015 17:57:22 +0000 (03:57 +1000)
qcsrc/common/physics.qc
qcsrc/lib/csqcmodel/cl_player.qc

index 292da149192a689f1127610d597c05f73633acef..6bfb5ac131b26582c38c252cbd5ab5e56cc9aee1 100644 (file)
@@ -124,7 +124,7 @@ void PM_ClientMovement_UpdateStatus(entity this, bool ground)
        if(!IS_PLAYER(this))
                return;
        // make sure player is not stuck
-       if(autocvar_cl_movement != 3)
+       if(autocvar_cl_movement == 3)
                PM_ClientMovement_Unstick(this);
 
        // set crouched
@@ -147,7 +147,7 @@ void PM_ClientMovement_UpdateStatus(entity this, bool ground)
        vector origin1 = this.origin + '0 0 1';
        vector origin2 = this.origin - '0 0 1';
 
-       if (ground && autocvar_cl_movement != 3)
+       if (ground && autocvar_cl_movement == 3)
        {
                tracebox(origin1, this.mins, this.maxs, origin2, MOVE_NORMAL, this);
                if (trace_fraction < 1.0 && trace_plane_normal.z > 0.7)
@@ -161,7 +161,7 @@ void PM_ClientMovement_UpdateStatus(entity this, bool ground)
                        UNSET_ONGROUND(this);
        }
 
-       if(autocvar_cl_movement != 3)
+       if(autocvar_cl_movement == 3)
        {
                // set watertype/waterlevel
                origin1 = this.origin;
@@ -198,7 +198,7 @@ void PM_ClientMovement_Move(entity this)
 #ifdef CSQC
 
        PM_ClientMovement_UpdateStatus(this, false);
-       if(autocvar_cl_movement == 3)
+       if(autocvar_cl_movement == 1)
                return;
 
        int bump;
@@ -1083,7 +1083,7 @@ void PM_jetpack(entity this, float maxspd_mod)
 
 #ifdef CSQC
        float g = PHYS_GRAVITY(this) * PHYS_ENTGRAVITY(this) * PHYS_INPUT_TIMELENGTH;
-       if(autocvar_cl_movement != 3)
+       if(autocvar_cl_movement == 3)
        {
                if (GAMEPLAYFIX_GRAVITYUNAFFECTEDBYTICRATE)
                        this.velocity_z -= g * 0.5;
@@ -1091,7 +1091,7 @@ void PM_jetpack(entity this, float maxspd_mod)
                        this.velocity_z -= g;
        }
        PM_ClientMovement_Move(this);
-       if(autocvar_cl_movement != 3)
+       if(autocvar_cl_movement == 3)
        {
                if (!IS_ONGROUND(this) || !(GAMEPLAYFIX_NOGRAVITYONGROUND))
                        if (GAMEPLAYFIX_GRAVITYUNAFFECTEDBYTICRATE)
@@ -1174,14 +1174,14 @@ void PM_walk(entity this, float maxspd_mod)
        }
 #ifdef CSQC
        float g = PHYS_GRAVITY(this) * PHYS_ENTGRAVITY(this) * PHYS_INPUT_TIMELENGTH;
-       if(autocvar_cl_movement != 3)
+       if(autocvar_cl_movement == 3)
        {
                if (!(GAMEPLAYFIX_NOGRAVITYONGROUND))
                        this.velocity_z -= g * (GAMEPLAYFIX_GRAVITYUNAFFECTEDBYTICRATE ? 0.5 : 1);
        }
        if (vdist(this.velocity, >, 0))
                PM_ClientMovement_Move(this);
-       if(autocvar_cl_movement != 3)
+       if(autocvar_cl_movement == 3)
        {
                if (GAMEPLAYFIX_GRAVITYUNAFFECTEDBYTICRATE)
                        if (!IS_ONGROUND(this) || !GAMEPLAYFIX_NOGRAVITYONGROUND)
@@ -1254,7 +1254,7 @@ void PM_air(entity this, float buttons_prev, float maxspd_mod)
        }
 #ifdef CSQC
        float g = PHYS_GRAVITY(this) * PHYS_ENTGRAVITY(this) * PHYS_INPUT_TIMELENGTH;
-       if(autocvar_cl_movement != 3)
+       if(autocvar_cl_movement == 3)
        if (GAMEPLAYFIX_GRAVITYUNAFFECTEDBYTICRATE)
                this.velocity_z -= g * 0.5;
        else
@@ -1262,7 +1262,7 @@ void PM_air(entity this, float buttons_prev, float maxspd_mod)
 #endif
        PM_ClientMovement_Move(this);
 #ifdef CSQC
-       if(autocvar_cl_movement != 3)
+       if(autocvar_cl_movement == 3)
        if (!IS_ONGROUND(this) || !(GAMEPLAYFIX_NOGRAVITYONGROUND))
                if (GAMEPLAYFIX_GRAVITYUNAFFECTEDBYTICRATE)
                        this.velocity_z -= g * 0.5;
index a4d73c5dc6fc2be47575efb8867fc089f7f3a259..10f475fb302cd33770fefef7166ed428741c8a6d 100644 (file)
@@ -161,12 +161,12 @@ void CSQCPlayer_Physics(entity this)
 {
        if(autocvar_cl_movement)
        {
-               if(autocvar_cl_movement == 3)
+               if(autocvar_cl_movement == 1)
                        CSQCPlayer_CheckWater(this); // we apparently need to check water *before* physics so it can use this for water jump
 
                CSQC_ClientMovement_PlayerMove_Frame(this);
 
-               if(autocvar_cl_movement == 3)
+               if(autocvar_cl_movement == 1)
                {
                        this.move_origin = this.origin;
                        this.move_angles = this.angles;