[nexuiz-commits] r7870 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Sep 23 02:26:22 EDT 2009
Author: div0
Date: 2009-09-23 02:26:21 -0400 (Wed, 23 Sep 2009)
New Revision: 7870
Modified:
trunk/data/qcsrc/server/g_damage.qc
Log:
now that antilag works, shrink the headshot bbox a bit:
in height: now 30% more than from top of bbox to view offset
in width: now 60% of width, no longer 70%
Modified: trunk/data/qcsrc/server/g_damage.qc
===================================================================
--- trunk/data/qcsrc/server/g_damage.qc 2009-09-23 06:23:24 UTC (rev 7869)
+++ trunk/data/qcsrc/server/g_damage.qc 2009-09-23 06:26:21 UTC (rev 7870)
@@ -823,8 +823,8 @@
// if above view_ofs and below maxs, and also in the middle half of the bbox, it is head shot
vector headmins, headmaxs, org;
org = antilag_takebackorigin(targ, time - ANTILAG_LATENCY(attacker));
- headmins = org + '0.7 0 0' * targ.mins_x + '0 0.7 0' * targ.mins_y + '0 0 1' * (1.5 * targ.view_ofs_z - 0.5 * targ.maxs_z);
- headmaxs = org + '0.7 0 0' * targ.maxs_x + '0 0.7 0' * targ.maxs_y + '0 0 1' * targ.maxs_z;
+ headmins = org + '0.6 0 0' * targ.mins_x + '0 0.6 0' * targ.mins_y + '0 0 1' * (1.3 * targ.view_ofs_z - 0.3 * targ.maxs_z);
+ headmaxs = org + '0.6 0 0' * targ.maxs_x + '0 0.6 0' * targ.maxs_y + '0 0 1' * targ.maxs_z;
if(trace_hits_box(railgun_start, railgun_end, headmins, headmaxs))
{
deathtype |= HITTYPE_HEADSHOT;
More information about the nexuiz-commits
mailing list