]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Actually, remove the g_grab switch permanently, and leave only the cvar to select...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 6 Nov 2011 13:38:48 +0000 (15:38 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 6 Nov 2011 13:38:48 +0000 (15:38 +0200)
defaultXonotic.cfg
qcsrc/server/autocvars.qh
qcsrc/server/cheats.qc

index 78c4350a278cd6cf60a9ad40d7a684813ccd0fc1..4435adc5c5ac550ede4bd7229d7a9b7d8858ab6d 100644 (file)
@@ -539,8 +539,7 @@ seta g_maplist_shuffle 1    "new randomization method: like selectrandom, but avoid
 set g_maplist_check_waypoints 0        "when 1, maps are skipped if there currently are bots, but the map has no waypoints"
 set samelevel 0 "when 1, always play the same level over and over again"
 
-set g_grab 1 "enables grabbing certain objects"
-set g_grab_range 150 "distance at which objects can be grabbed"
+set g_grab_range 150 "distance at which dragable objects can be grabbed"
 
 set g_cloaked 0 "display all players mostly invisible"
 set g_player_alpha 1
index a8aa591790df9d68c6983324b099fec9b4495f23..edd3420eccb77eed2376ba46f23015e860df72c7 100644 (file)
@@ -1203,7 +1203,6 @@ float autocvar_sv_gameplayfix_gravityunaffectedbyticrate;
 float autocvar_g_trueaim_minrange;
 float autocvar_g_debug_defaultsounds;
 float autocvar_g_loituma;
-float autocvar_g_grab;
 float autocvar_g_grab_range;
 float autocvar_g_sandbox_info;
 float autocvar_g_sandbox_readonly;
index 497da308145fa45c390e1ec69bc7f2b9e42976bf..85dab178725fc72875ab3cca20fe544eb089acbf 100644 (file)
@@ -683,11 +683,9 @@ float CheatFrame()
        BEGIN_CHEAT_FUNCTION();
 
        // Dragging can be used as either a cheat, or a function for some objects. If sv_cheats is active,
-       // the cheat dragging is used (unlimited pickup range and any entity can be carried), even if
-       // g_grab is enabled. Is sv_cheats is disabled but g_grab is not, normal dragging is
-       // used (limited pickup range and only dragable objects can be carried), grabbing itself
-       // no longer being accounted as cheating. If both sv_cheats and g_grab are disabled, players
-       // attempting to grab objects are reported as trying to cheat.
+       // the cheat dragging is used (unlimited pickup range and any entity can be carried). If sv_cheats
+       // is disabled, normal dragging is used (limited pickup range and only dragable objects can be carried),
+       // grabbing itself no longer being accounted as cheating.
 
        switch(0)
        {
@@ -700,7 +698,7 @@ float CheatFrame()
                                if(Drag(trace_ent, TRUE))
                                        DID_CHEAT();
                        }
-                       else if(autocvar_g_grab)
+                       else
                        {
                                // drag is TRUE if the object can be picked up. While an object is being carried, the Drag() function
                                // must execute for it either way, otherwise it would cause bugs if it went out of the player's trace.
@@ -730,11 +728,6 @@ float CheatFrame()
                                }
                                Drag(trace_ent, drag); // execute dragging
                        }
-                       else if(self.BUTTON_DRAG)
-                       {
-                               // consider dragging a cheat if g_grab is disabled
-                               IS_CHEAT(0, 0, CHRAME_DRAG);
-                       }
                        break;
        }