]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Document the new functionality of the Drag system.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 25 Oct 2011 08:30:39 +0000 (11:30 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 25 Oct 2011 08:30:39 +0000 (11:30 +0300)
qcsrc/server/cheats.qc

index e5a78a05edd5fa59f6f03358c03bf6d497fcead0..93faddb3ecfe8d0fa5444a90745c901ae9e823ad 100644 (file)
@@ -682,6 +682,13 @@ float CheatFrame()
 {
        BEGIN_CHEAT_FUNCTION();
 
 {
        BEGIN_CHEAT_FUNCTION();
 
+       // Dragging can be used as either a cheat, or a tool for g_sandbox. If sv_cheats is active,
+       // the cheat dragging is used (unlimited pickup range and any entity can be carried), even if
+       // g_sandbox is enabled. Is sv_cheats is disabled but g_sandbox is not, then sandbox dragging
+       // is used (limited pickup range and only sandbox objects can be carried), grabbing itself
+       // no longer being accounted as cheating. If both sv_cheats and g_sandbox are disabled, players
+       // attempting to grab objects are reported as trying to cheat.
+
        switch(0)
        {
                default:
        switch(0)
        {
                default: