• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Stable Feedback
  • /DZG-3054
Back
1

Feature request: server-side visibility culling, so clients only get players they could actually see (anti-ESP)

MultiplayerFeature RequestPerformanceServerFeedback
1

State

Open
Issue key
DZG-3054
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
zoro
Created
Nov 29, 2026
Views
3
Platform
PC Steam
What happened?

Problem. Most cheating in DayZ is now done with external tools that never touch the game files. They read entity positions out of the client's memory and draw them on an overlay (ESP), or aim with them. BattlEye has to catch each tool one at a time, and new ones appear all the time.

They work because the server sends every player within networkRangeFar (1000 m by default) to every client. That includes players behind hills, inside buildings and behind base walls. The information is on the cheater's PC, so it can always be read.

Request. Have the server decide, for each client, which other players that client could plausibly see or hear, and stop sending position updates for the rest. A memory reader can't show what was never sent. Riot did this in Valorant ("Fog of War") and Valve in CS:GO (server-side player occlusion); both are public. It doesn't replace BattlEye, but it makes the most common cheat (wallhack / ESP) far less useful, and it works on every platform at once.

Suggested design

1. What to cull. Start with DayZPlayer entities (survivors and their items in hands and attachments), the main ESP target.

  • Second step: cargo contents of buried stashes, tents, barrels and cars. If they are sent to nearby clients before anyone opens them, sync them only on open, or when the client is within a few metres.

  • Loot on the ground already uses networkRangeNear (150 m) and matters less.

  • Vehicles can stay as they are: they are loud and big.

2. Always send (no culling) when any of these is true:

  • The target is within a close radius, e.g. 30–50 m. Footsteps, voice and melee need it, and it hides pop-in.

  • The target is in the same vehicle, restrained by, or interacting with the observer.

  • The target fired, made a loud noise or used VOIP in the last few seconds, within that sound's hearing range. Sound gives the position away legitimately anyway.

  • The observer is dead or spectating, or the target is an admin, etc.

3. Visibility test, beyond the close radius:

  • Observer point: the observer's head (camera) position on the server.

    • Extend it by the observer's velocity × (their RTT + one update interval), so peeking around a corner shows the enemy in time. This is the "peeker's advantage" fix Riot describes.

    • In third-person servers, also test from the third-person camera position. Clamp it to the server-known camera distance, so a lying client can't look through walls.

  • Target points: a few points on an enlarged bounding box of the target: head, both shoulders, hips, feet, plus the tip of a long weapon. Also extend them by the target's velocity × latency. If any ray from the observer reaches any point, the target is visible.

  • What blocks: terrain (cheap test on the heightmap first), then the view geometry of buildings, walls, base-building parts and rocks.

    • Vegetation, windows, fences with gaps, smoke and dark nights should not block. Players can legitimately see through them, and false hiding causes worse gameplay bugs than a wallhack does.

    • Any doubt (geometry not loaded, odd LODs) counts as visible.

  • Hysteresis: once visible, keep sending for e.g. 1–2 s after the last positive test. Re-test hidden pairs more often the closer they are.

4. Cost control

  • Only pairs already inside networkRangeFar are tested.

  • Use a spatial grid, test pairs once for both directions where symmetric, and spread the tests over several server frames with a raycast budget per frame.

  • Run them on worker threads, and cache pair results with a time-to-live based on distance and speed.

  • Distant pairs (300 m+) behind terrain change rarely and can be re-tested every second or so.

5. What the client sees when a target is culled

  • Simplest: the target leaves that client's network bubble (as if it were out of range) and is created again when visible. That means a short pop-in.

  • Better, as in Valorant: keep the entity on the client but stop updating it, and move it to a far or decoy position. Then cheats can't even tell that "someone exists here". Fade it in with interpolation when it becomes visible again.

  • Gunshots and other sounds that are already sent as separate events keep working as now.

6. Server config (so communities can tune it)

visibilityCulling = 1;              // 0 = off (today's behaviour)
visibilityCullingAlwaysRange = 40;  // metres, always sent
visibilityCullingHoldTime = 1.5;    // seconds kept after last seen
visibilityCullingRayBudget = 500;   // max raycasts per server frame; pairs over budget count as visible

Rough cost, assuming a raycast costs a few microseconds: 60 players give a few hundred pairs inside 1000 m. At about 3 rays per test (most tests stop at the first clear ray) and one re-test per pair every 100–500 ms, that is roughly 6,000–18,000 rays per second: about 100–300 per frame at 60 server FPS, well under 1 ms of the 16.7 ms frame, and less on worker threads. The budget is a cap; when it is hit, the untested pairs stay visible (today's behaviour) instead of slowing the server.

7. Testing ideas

  • A debug view on DayZDiag that colours each other player by culled / sent from the local player's view.

  • Automated runs of peeking around corners and doors at various pings, to tune the prediction margin until there is no visible pop-in.

Why it fits DayZ

  • Long sight lines mean open-field players stay visible, which is correct. The big wins are inside towns, buildings and bases, and behind terrain, where most wallhack kills and base scouting happen.

  • It also reduces bandwidth and client CPU, because hidden players are no longer updated.

Reproduction steps
  1. Feature request, so there are no steps. To see the current behaviour: two clients on a test server, player B inside a closed building, player A 300 m away behind a hill.

  2. On A's client, B's entity exists and its position updates every frame (for example, visible in the script console or with diag tools), although nothing on A's screen could show B.

Exact build version (optional)
1.30.164289
Where did it happen?
Unknown
Is it modded?
No
Expected result

A client only receives position updates for other players it could plausibly see or hear from its position. Hidden players are culled on the server, so memory-reading ESP tools can't show them.

Reactions

Activity

    15 minutes ago
  • zoro
    created issue15 minutes ago

You are not signed in. Please sign in to see more details and to reply.

State

Open
Issue key
DZG-3054
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
zoro
Created
Nov 29, 2026
Views
3