Client Positions
2012-08-03, 02:44 PM (This post was last modified: 2012-08-04, 08:02 AM by Victor.)
#1
Client Positions
The client sends the positions of every client and every head, making the hit detection "just like AC". However, the server ignores them unless you change it (-l2 to support laggers, at risk of OPK hacks), but trusts head deltas. To use complete server-sided detection, use -l0. The default is -l1.

EDIT2: The following does not apply
Since laggers complain about shooting and not hitting anyone, I'm going to add lag compensation.

It stores your position for 1 second (40 positions/sec * (3 floats + 1 int) * 4 bytes/(float or int) = 640 bytes per player)

It will do linear interpolation when possible, then attempt extrapolation (for players over 1000ms ping). It uses your ping, and attempts to find the location where you should have seen the enemy when you were shooting.

NOTE: no lag compensation for nades, or other projectiles.

EDIT: It doesn't work, so I'll add a feature to use client-sided position reporting.

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply


Forum Jump: