Skip to content

About

CS2 AntiWallHack (server-side visibility filtering) plugin built on SwiftlyS2 helps prevent against wallhackers.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

332

CS2-AntiWallHack

A Counter-Strike 2 AntiWallHack plugin built on SwiftlyS2.

It does not detect cheats, issue bans or replace a complete anti-cheat system.

Protection Framework License Discord Buy Me a Coffee

This AC feature is taken from CS2 AntiCheat Defense

Showcase

CS2 AntiWallHack blocking wallhack on Mirage
Showcase on Mirage
CS2 AntiWallHack blocking wallhack on Dust2
Showcase on Dust2

A wallhack cannot render player data that has not been transmitted by the server.

AntiWallHack aims to reduce the enemy information available to wallhacks. When an enemy is completely hidden behind solid cover, the plugin can stop sending that enemy and their equipment to a player's game client. Once a visibility check finds a clear path, normal transmission is allowed again.

ACD (AntiCheat Defense)


Note

Teammates, dead or spectator viewers, warmup, freeze time and ended rounds are not filtered. Bots can be enemy targets, but the plugin does not filter what bot viewers receive. Enemies outside the selected nearest group are left untouched.

Requirements

Features

  • Checks solid cover using the game's line-tracing API.
  • Anticipates movement to help reduce sudden appearances around corners.
  • Keeps recently visible enemies available briefly to reduce flickering.

How it works

  1. Check for a clear path. Rays run from the viewer's eyes to several points around each selected enemy.
  2. Check ahead when moving. Additional rays use estimated future positions based on current movement speed and direction.
  3. Keep visible enemies available. One clear or uncertain result is enough to allow normal transmission.
  4. Hide fully blocked enemies. If every tested path is blocked and the grace period has expired, the plugin withholds that enemy and their collected equipment from that viewer.

How to bake map visibility

VisBaker is published separately at VisBaker. You do not need to download the AntiWallHack source project to build this tool.

ACD (AntiCheat Defense)

Installation

  1. Get the packaged AntiWallHack.zip.
  2. Extract to your server's swiftlys2/plugins/ directory.
  3. Restart the server.

The server files should look like this:

game/csgo/addons/swiftlys2/
├── plugins/
│   └── AntiWallHack/
│       └── AntiWallHack.dll
└── config/
    └── plugins/
        └── AntiWallHack/
            └── config.jsonc

Configuration

addons/swiftlys2/config/plugins/AntiWallHack/config.jsonc

The included config.jsonc contains:

{
  "Enabled": true,
  "Debug": false,
  "SmokeOcclusion": true,
  "VisibleGraceTicks": 20,
  "BoundsPadding": 28,
  "CornerPrediction": true,
  "CornerPredictionSeconds": 0.1,
  "CornerMaxDistance": 32
}

Adjusting corner pop-in

Larger BoundsPadding and CornerPrediction values can make enemies available earlier. A longer VisibleGraceTicks period delays hiding them again. These settings trade stricter hiding for smoother appearances and prediction is an estimate not a guarantee.

Performance

Open paths can finish after one ray, fully blocked enemies can need all 12 sample rays, plus another 12 for predicted positions when players move.

The plugin reuses visibility decisions within the same tick. If the shared trace budget runs out, it leaves affected enemies available instead of hiding them without a completed check. A smaller budget can reduce trace work but also reduce filtering coverage.

FAQ

Does this stop every wallhack?

No. It limits transmission of hidden enemies and their equipment. It does not filter sound, radar messages or all other information a cheat might use.

Does smoke hide enemies from transmission?

Yes. Smoke is part of the plugin's visibility checks.

Discord

About

CS2 AntiWallHack (server-side visibility filtering) plugin built on SwiftlyS2 helps prevent against wallhackers.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages