[nexuiz-commits] r7466 - in trunk/data: . qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Aug 19 08:52:48 EDT 2009
Author: div0
Date: 2009-08-19 08:52:48 -0400 (Wed, 19 Aug 2009)
New Revision: 7466
Modified:
trunk/data/defaultNexuiz.cfg
trunk/data/qcsrc/server/miscfunctions.qc
Log:
shootfromclient: allow centerhandedness only if set to 2
Modified: trunk/data/defaultNexuiz.cfg
===================================================================
--- trunk/data/defaultNexuiz.cfg 2009-08-19 12:50:08 UTC (rev 7465)
+++ trunk/data/defaultNexuiz.cfg 2009-08-19 12:52:48 UTC (rev 7466)
@@ -429,7 +429,7 @@
seta g_spawnshieldtime 0 "number of seconds you are invincible after you spawned, this shield is lost after you fire"
seta g_antilag 2 "AntiLag (0 = no AntiLag, 1 = verified client side hit scan, 2 = server side hit scan in the past, 3 = unverified client side hit scan)"
set g_antilag_bullets 1 "Bullets AntiLag (0 = no AntiLag, 1 = server side hit scan in the past) - DO NOT TOUCH (severely changes weapon balance)"
-set g_shootfromclient 0 "let client decide if it has the gun left, center or right (WARNING: cheating potential)"
+set g_shootfromclient 1 "let client decide if it has the gun left or right; if set to 2, center handedness is allowed, and defaulted to, too"
set g_shootfromeye 0 "shots are fired from your eye/crosshair"
set g_shootfromcenter 0 "weapon gets moved to the center, shots still come from the barrel of your weapon"
set g_shootfromfixedorigin "" "if set to a string like 0 y z, the gun is moved to the given y and z coordinates. If set to a string like x y z, the whole shot origin is used"
Modified: trunk/data/qcsrc/server/miscfunctions.qc
===================================================================
--- trunk/data/qcsrc/server/miscfunctions.qc 2009-08-19 12:50:08 UTC (rev 7465)
+++ trunk/data/qcsrc/server/miscfunctions.qc 2009-08-19 12:52:48 UTC (rev 7466)
@@ -2201,9 +2201,17 @@
break;
default:
- case 3: // center
- vecs_y = 0;
- vecs_z -= 4;
+ case 3:
+ if(cvar("g_shootfromclient") >= 2) // 2: allow center handedness
+ {
+ // center
+ vecs_y = 0;
+ vecs_z -= 4;
+ }
+ else
+ {
+ // right
+ }
break;
}
}
More information about the nexuiz-commits
mailing list