Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Client Positions
08-03-2012, 02:44 PM, (This post was last modified: 08-04-2012, 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|)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)