]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Move jump grunt out of the mutator system (causes some issues with cl_movement_track_...
authorMario <mario.mario@y7mail.com>
Thu, 4 Jul 2013 20:08:38 +0000 (06:08 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 4 Jul 2013 20:08:38 +0000 (06:08 +1000)
qcsrc/server/autocvars.qh
qcsrc/server/cl_physics.qc
qcsrc/server/miscfunctions.qc
qcsrc/server/mutators/mutator_jump_grunt.qc [deleted file]
qcsrc/server/mutators/mutators.qh
qcsrc/server/progs.src

index e72cc4c0263a96b89027d6f235cd01bf54c87716..63e31030e860054e507fabdb3e4588ca969b5302 100644 (file)
@@ -1255,3 +1255,4 @@ float autocvar_g_nades_nade_newton_style;
 float autocvar_g_campcheck_damage;
 float autocvar_g_campcheck_distance;
 float autocvar_g_campcheck_interval;
+float autocvar_g_jump_grunt;
index 3dd91dfb4b4e9239942e718213e4b1de4125e9be..329e7b56f023df91c9d432309f0d4ee56e2d654f 100644 (file)
@@ -110,6 +110,9 @@ void PlayerJump (void)
        self.flags &~= FL_JUMPRELEASED;
 
        animdecide_setaction(self, ANIMACTION_JUMP, TRUE);
+       
+       if(autocvar_g_jump_grunt)
+               PlayerSound(playersound_jump, CH_PLAYER, VOICETYPE_PLAYERSOUND);
 
        self.restart_jump = -1; // restart jump anim next time
        // value -1 is used to not use the teleport bit (workaround for tiny hitch when re-jumping)
index 0e34fcc0bed59d939776c511f415e9c56017a00f..593292c0a5204792b54d9f03de93ae65f17ab694 100644 (file)
@@ -921,7 +921,6 @@ void readlevelcvars(void)
        CHECK_MUTATOR_ADD("g_random_gravity", mutator_random_gravity, 1);
        CHECK_MUTATOR_ADD("g_norecoil", mutator_norecoil, 1);
        CHECK_MUTATOR_ADD("g_multijump", mutator_multijump, 1);
-       CHECK_MUTATOR_ADD("g_jump_grunt", mutator_jump_grunt, 1);
        CHECK_MUTATOR_ADD("g_footsteps", mutator_footsteps, 1);
        CHECK_MUTATOR_ADD("g_melee_only", mutator_melee_only, !cvar("g_minstagib"));
        CHECK_MUTATOR_ADD("g_nades", mutator_nades, 1);
diff --git a/qcsrc/server/mutators/mutator_jump_grunt.qc b/qcsrc/server/mutators/mutator_jump_grunt.qc
deleted file mode 100644 (file)
index e5cc74f..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-MUTATOR_HOOKFUNCTION(grunt_PlayerJump)
-{
-       if(self.flags & FL_ONGROUND)
-               PlayerSound(playersound_jump, CH_PLAYER, VOICETYPE_PLAYERSOUND);
-               
-       return FALSE;
-}
-
-MUTATOR_HOOKFUNCTION(grunt_BuildMutatorsString)
-{
-       ret_string = strcat(ret_string, ":JumpGrunt");
-       return FALSE;
-}
-
-MUTATOR_DEFINITION(mutator_jump_grunt)
-{
-       MUTATOR_HOOK(PlayerJump, grunt_PlayerJump, CBC_ORDER_ANY);
-       MUTATOR_HOOK(BuildMutatorsString, grunt_BuildMutatorsString, CBC_ORDER_ANY);
-
-       return FALSE;
-}
index 3d5ca72958f15b71c1a1c9793a96e79da1302490..84dad48ca310cf26466d4fc45b477cd4e7df3b6f 100644 (file)
@@ -27,7 +27,6 @@ MUTATOR_DECLARATION(mutator_bloodloss);
 MUTATOR_DECLARATION(mutator_random_gravity);
 MUTATOR_DECLARATION(mutator_norecoil);
 MUTATOR_DECLARATION(mutator_multijump);
-MUTATOR_DECLARATION(mutator_jump_grunt);
 MUTATOR_DECLARATION(mutator_footsteps);
 MUTATOR_DECLARATION(mutator_melee_only);
 MUTATOR_DECLARATION(mutator_nades);
index 78feb8f9fd2a9d784eca8dbc2ba3994b5f48e3ef..6ee5e68caa4ea44862383a63ab64a6a430dae4ed 100644 (file)
@@ -256,7 +256,6 @@ mutators/mutator_bloodloss.qc
 mutators/mutator_random_gravity.qc
 mutators/mutator_norecoil.qc
 mutators/mutator_multijump.qc
-mutators/mutator_jump_grunt.qc
 mutators/mutator_footsteps.qc
 mutators/mutator_melee_only.qc
 mutators/mutator_nades.qc