Netcode

Server-authoritative combat, client-predicted movement

Two problems that most servers treat as one. Damage validation belongs on the server. Movement does not.

Commitments

Three things this server will not trade away

Hit validation on the server

PvP hits are validated by the match server against stored positions, using a bounded rewind based on server-measured ping. Lag spikes can still cause differences between your screen and the accepted result.

StatusImplemented

K-Style is untouched

Butterfly, half-step, slash shot, reload shot, wall canceling, dash canceling. Movement and animation cancels stay client-predicted, with the original frame delays intact. Zero added input latency, and no “fixes” to timings the technique depends on.

StatusLocked

One stat block per class

Every weapon in a class carries the same damage, delay, magazine and reload. Within a class only the mesh differs, so a cosmetic can never be an edge. No donor stats, no custom weapons, no reskins with numbers attached, no stat item behind a payment. Nothing you can buy changes a fight.

StatusLocked

The legacy model

In the original build, the match server handles the lobby, the room list, the stage and the scoreboard. It does not decide who dies. Once a match starts, clients talk to each other directly over UDP, and the messages they exchange include the ones that apply damage.

That design was reasonable in 2006 and it produces two failures that every GunZ player recognises:

  • The connection decides the fight. Two clients disagree about where each other are. Whoever's view of the world is more delayed loses hits they saw connect, and takes hits from angles that never happened on their screen.
  • Damage is a claim, not a fact. If a peer says it hit you, the legacy path largely believes it. Editing that claim is the single most common GunZ cheat and it has never had a real answer on a peer-to-peer damage model.

Where authority moves

In PvP, a client reports a shot: the weapon, origin and direction. The match server validates the hit and applies damage.

Validation happens against the server's own record of the world, not against anything the shooter asserts about the target. A rejected shot does nothing. An accepted shot produces damage that the server applies and both clients are told about.

The distinction that matters: the client still decides when you fire. It no longer decides whether you hit.

Lag compensation

The server keeps a short history of player positions so it can test PvP shots against past positions instead of only the world at arrival time.

The rewind uses a recent minimum of server-measured round-trip ping, plus the client's interpolation delay. Stored positions are interpolated between snapshots. This estimates a past state; it does not reproduce every frame the shooter saw.

The rewind is bounded and does not use the timestamp nominated by the client. Lag spikes, packet loss and stale position updates can still cause disagreements. Server validation is not a guarantee of perfect hit registration.

Server-side rewind

Simplified example: a shot can miss against current positions and hit against a stored past position. This is not an accuracy measurement.

What you saw when you fired

Hit

The server when the shot arrives

target has moved

Miss

The server testing an estimated past position

rewound

Hit

The third row illustrates a successful rewind case. The server estimates the past position from measured ping and stored history. In a real match that estimate can differ from what appeared on your screen.

What stays untouched

Movement, animation cancels and weapon switching remain client-predicted and locally authoritative. Nothing has been inserted between your input and the animation, and nothing will be.

This is not an oversight to be tidied up later. K-Style exists because of specific animation-cancel delays and state overrides in the original code. Treating those as bugs and fixing them is how a GunZ server becomes a different game:

  • Butterfly — slash cancelled into a dash, repeatedly.
  • Half-step — the shortened dash that comes from cancelling the dash animation early.
  • Slash shot and reload shot — the weapon-switch timing windows.
  • Wall canceling and dash canceling — state overrides on contact and on input.

None of these are validated by the server, delayed pending confirmation, or rewritten. The frame delays they depend on are treated as part of the specification.

What that costs

Being honest about the trade: because movement is client-authoritative, a modified client can still move in ways it should not. That is a detection problem, not a simulation problem, and it is answered with plausibility checks and observation rather than by taking control of movement away from the client. Given the choice between a server that catches every possible movement exploit and a server where butterfly feels right, this one picks the second.

Cheating

Moving damage to the server removes an entire class of cheat outright. A client that claims damage no longer gets it, because nothing on the server reads that claim any more.

What remains is aim assistance and movement manipulation. Those are handled by server-side plausibility checks on the shot stream and the movement stream, combined with the fact that a small competitive population notices. There is no kernel-level anticheat and there will not be one.

Status

PvP hit validation is implemented separately from local movement. These are implementation facts, not a promise of perfect hit registration.

Shot validationImplemented for PvP combat.
Rewind bufferInterpolated position history with a bounded rewind based on measured ping.
PvP roomsNon-quest rooms use server-side hit validation.
Rejection loggingOptional diagnostics help investigate disputed hits.
Movement authorityClient. Unchanged, and not scheduled to change.

Patch notes