Commit graph

14 commits

Author SHA1 Message Date
71e4b4e847 Replace cheat-detection teleport with server reconciliation
The old PUNKBUSTER check compared client-reported position to server
position and snapped the player back when latency made them diverge,
which felt like getting teleported under any real network conditions.

Replaces that with proper client-side prediction + reconciliation:
client tags each input with a sequence number and keeps an input
buffer; server tracks the last processed sequence and reports its
authoritative position via a per-user inputAck alongside each
worldUpdate. The client only corrects when the actual disagreement
exceeds what the unacked input time can explain — so steady-state
movement runs purely on local physics, and only genuine unexpected
events (collisions, being hit) trigger a smooth blend toward the
server state.

Includes adaptive threshold scaling so high-latency sessions don't
false-positive corrections during normal running.
2026-05-11 00:37:42 +00:00
logsol
c33e9f62b9 moved build stuff 2014-12-21 23:16:35 +01:00
logsol
efe4c76cc2 removed rube backups 2014-05-29 14:48:03 +02:00
logsol
d0e9f0d458 Merge branch 'master' of https://github.com/logsol/chuck.js 2014-03-02 21:50:10 +01:00
logsol
b61e9d8dde ignoring filter test 2014-03-02 21:49:09 +01:00
Jeena
810a74a28b fixed #58 2014-03-01 23:11:36 +01:00
logsol
5ba9a47948 show an error when port is already in use - fixes #42 2014-02-24 10:39:25 +01:00
Jeena
00807da632 changed modes 2014-01-12 16:59:16 +01:00
jeena
66e8cb333a added pixi 2013-12-23 22:35:58 +01:00
Karl Pannek
22141cbee9 added animation sprites for chuck 2013-11-26 03:06:19 +01:00
Logsol
f5eacb6335 fixed input controllerism - fixes #28 2013-07-30 18:13:39 +02:00
Jeena Paradies
2d2e719ade .DS_Store banished 2012-07-21 21:42:02 +02:00
Jeena Paradies
1a219bfbfc moved Box2D 2012-07-13 18:14:54 +02:00
Jeena Paradies
1d24d98297 removed node_modules added gitignore 2012-07-01 15:08:16 +02:00