Commit graph

30 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
ce01c8888e Makes singleton variable name of PointerLockManager lowercase
When we require a singleton, its instance name should be named
by lowercase, since it is not a class.

Relates to #128
2016-10-10 22:42:22 +02:00
logsol
3cb2e39a18 Makes singleton variable name of NotificationCenter lowercase
When we require a singleton, its instance name should be named
by lowercase, since it is not a class.

Relates to #128
2016-10-10 22:11:55 +02:00
logsol
b798e6acac Adds forward walking on shift
The state of the shift modifier is now distributed across the
network. Walking speeds and animation states are being updated
according to it.

Fixes #130
2016-10-09 19:56:06 +02:00
logsol
c87997c774 fixes #147, fixes #136, is related to but doesnt entirely complete #144 2016-08-28 22:40:25 +02:00
logsol
61e66f5796 fixed #97 chuck stops when he shouldnt, also removed f/g for handActionRequestLeft and Right, since we don't need it for DebugDraw anymore. 2015-03-10 14:42:54 +01:00
logsol
60eae208a2 Added PointerLockManagement, Fixed layer positioning, added fps chart. fixes #120, fixes #121, fixes #123 2015-02-27 18:44:30 +01:00
logsol
d24ab60756 added angular throwing 2014-12-25 00:33:00 +01:00
logsol
1f8f0ef6e1 merged from master (use strict) 2014-12-22 02:00:40 +01:00
logsol
2b186be8af use strict; fixes #83 2014-12-22 01:43:21 +01:00
Jeena
cf2182676b Throwing with Swiper, working but needs to be refined. No angulat verlocity yet. 2014-12-07 00:57:05 +01:00
Jeena
6d9d02615a added pointer locking and viewport moving 2014-12-06 20:20:49 +01:00
Jeena
8f2cf11e38 finished shirt color, fixes #77 2014-07-12 20:49:42 +02:00
logsol
ac27da1e31 added zooming with +, - and 0 2014-07-07 23:32:11 +02:00
Jeena
5f2be233ba fixed double update problem on PlayerController 2014-05-31 02:11:13 +02:00
Jeena
ce0d0204ea Added rudimentary Gamepad controller code 2014-05-31 01:49:10 +02:00
logsol
39f684315b Bugfixing - unsubscribing game related topics, to prevent double calls and leaking references, added offAll method to nc. fixes no rendering bug 2014-03-31 05:05:32 +02:00
logsol
cacd5d74c0 finished nc merge 2014-03-17 22:07:57 +01:00
Jeena
96bf9bffbd NC refactoring 2014-03-17 21:45:40 +01:00
logsol
672a46efa8 replaced NotificationCenter with Nc 2014-03-01 11:07:23 +01:00
logsol
413254bfa4 replaced killed doll with ragdoll - fixes #50 2014-02-18 01:15:24 +01:00
Jeena
e488beb203 added ragdoll with one limb 2014-02-12 00:30:09 +01:00
Jeena
ed23753c04 fixed #40 #39 2014-02-10 22:22:14 +01:00
Jeena
b159bbb1cc fixed remote joint 2014-01-20 16:22:31 +01:00
Jeena
1e748a93cb fixes #32 2014-01-16 16:46:07 +01:00
jeena
764220675b added joints 2013-12-28 02:39:32 +01:00
jeena
3aa89fc8d6 moved Protocol and NotificationCenter to Lib/Utilities 2013-12-27 01:36:01 +01:00
jeena
283a1ef48b fixes for animations with head and jump, etc. 2013-12-25 00:28:28 +01:00
logsol
5f7917c5cc implemented mouse looking 2013-12-12 18:42:27 +01:00
Logsol
f5eacb6335 fixed input controllerism - fixes #28 2013-07-30 18:13:39 +02:00