]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into Mario/physics
authorMario <zacjardine@y7mail.com>
Thu, 25 Dec 2014 10:22:26 +0000 (21:22 +1100)
committerMario <zacjardine@y7mail.com>
Thu, 25 Dec 2014 10:22:26 +0000 (21:22 +1100)
1  2 
defaultXonotic.cfg
qcsrc/server/autocvars.qh
qcsrc/server/cl_physics.qc
qcsrc/server/command/cmd.qc
qcsrc/server/defs.qh
qcsrc/server/g_world.qc
qcsrc/server/miscfunctions.qc

Simple merge
Simple merge
index 797226717cfe3129677584c626a83cabc5bd6c44,900f65bc8ab3dcbbe698f23ab906e7b5320f7601..dc7c62aed537d96b79ef4a9d8665ac1988a6e88b
@@@ -36,18 -15,19 +36,19 @@@ float Physics_ClientOption(entity pl, s
  PlayerJump
  
  When you press the jump key
+ returns TRUE if handled
  =============
  */
void PlayerJump (void)
float PlayerJump (void)
  {
        if(self.frozen)
-               return; // no jumping in freezetag when frozen
+               return TRUE; // no jumping in freezetag when frozen
  
        if(self.player_blocked)
-               return; // no jumping while blocked
+               return TRUE; // no jumping while blocked
  
        float doublejump = FALSE;
 -      float mjumpheight = autocvar_sv_jumpvelocity;
 +      float mjumpheight = self.stat_sv_jumpvelocity;
  
        player_multijump = doublejump;
        player_jumpheight = mjumpheight;
@@@ -1057,10 -1045,10 +1087,10 @@@ void SV_PlayerPhysics(
                if (time >= self.teleport_time)
                {
                        // water acceleration
 -                      PM_Accelerate(wishdir, wishspeed, wishspeed, autocvar_sv_accelerate*maxspd_mod, 1, 0, 0, 0);
 +                      PM_Accelerate(wishdir, wishspeed, wishspeed, self.stat_sv_accelerate*maxspd_mod, 1, 0, 0, 0);
                }
        }
-       else if ((self.items & IT_JETPACK) && self.BUTTON_HOOK && (!autocvar_g_jetpack_fuel || self.ammo_fuel >= 0.01 || self.items & IT_UNLIMITED_WEAPON_AMMO) && !self.frozen)
+       else if (self.items & IT_USING_JETPACK)
        {
                //makevectors(self.v_angle_y * '0 1 0');
                makevectors(self.v_angle);
Simple merge
Simple merge
Simple merge
index d76ffdee4b413e1169ecc0d5df0f4b36305ec816,e6fda399e27eb0427e90a241964f623843a54feb..e0be5df290456af8becac200be15f6772f564ced
@@@ -489,8 -489,8 +489,9 @@@ void GetCvars(float f
  
        GetCvars_handleFloat(s, f, autoswitch, "cl_autoswitch");
        GetCvars_handleFloat(s, f, cvar_cl_autoscreenshot, "cl_autoscreenshot");
+       GetCvars_handleFloat(s, f, cvar_cl_jetpack_jump, "cl_jetpack_jump");
        GetCvars_handleString(s, f, cvar_g_xonoticversion, "g_xonoticversion");
 +      GetCvars_handleString(s, f, cvar_cl_physics, "cl_physics");
        GetCvars_handleFloat(s, f, cvar_cl_handicap, "cl_handicap");
        GetCvars_handleFloat(s, f, cvar_cl_clippedspectating, "cl_clippedspectating");
        GetCvars_handleString_Fixup(s, f, cvar_cl_weaponpriority, "cl_weaponpriority", W_FixWeaponOrder_ForceComplete_AndBuildImpulseList);