How labaland/plugin-wallhack works
This Counter-Strike 2 CounterStrikeSharp plugin provides admin commands for wallhack, invisibility, money changes, and restricted RCON execution. Admins invoke commands to resolve a player or server command; the plugin updates gameplay state, while tick and transmit hooks apply invisibility and viewer-specific glow visibility. Groups show command handling, shared runtime state, and the two gameplay modules. README capabilities such as permission settings and partial-name matching are represented; unsampled details are linked only where the excerpts or README show the relationship.
Main entry points: WallhackPluginCS2Core.cs Plugin lifecycle · Invisible.cs Invisibility effects · Wallhack.cs Wallhack glow · Globals.cs Runtime state
Components 13
Admin commands
- Invisibility command
src/Commands/CommandInvisible.cs - Money command
src/Commands/CommandMoney.cs - RCON command
src/Commands/CommandRcon.cs - Wallhack command
src/Commands/CommandWallhack.cs
Plugin runtime
- Plugin lifecycle
src/WallhackPluginCS2Core.cs - Player utilities
src/Util.cs
Shared state
- Runtime state
src/Globals.cs - Invisibility timing
src/Models/SoundData.cs - Glow entities
src/Models/GlowData.cs
Gameplay effects
- Invisibility effects
src/Modules/Invisible.cs - Wallhack glow
src/Modules/Wallhack.cs
Other components
- Server admin
- CS2 server
Connections 22
- Server admin → Plugin lifecycle: loads plugin
- Plugin lifecycle → Runtime state: sets runtime
src/WallhackPluginCS2Core.cs - Plugin lifecycle → Invisibility effects: ticks and dispatches
src/WallhackPluginCS2Core.cs - Plugin lifecycle → Wallhack glow: dispatches transmit
src/WallhackPluginCS2Core.cs - Plugin lifecycle → Money command: registers commands
src/WallhackPluginCS2Core.cs - Plugin lifecycle → RCON command: registers commands
src/WallhackPluginCS2Core.cs - Invisibility effects → Invisibility command: registers commands
src/Modules/Invisible.cs - Wallhack glow → Wallhack command: registers commands
src/Modules/Wallhack.cs - Invisibility command → Player utilities: resolves player
src/Commands/CommandInvisible.cs - Money command → Player utilities: resolves player
src/Commands/CommandMoney.cs - Wallhack command → Player utilities: resolves player
src/Commands/CommandWallhack.cs - RCON command → CS2 server: executes command
src/Commands/CommandRcon.cs - Invisibility command → Runtime state: updates invisibility
src/Commands/CommandInvisible.cs - Money command → CS2 server: sets account
src/Commands/CommandMoney.cs - Wallhack command → Runtime state: toggles wallhack
src/Commands/CommandWallhack.cs - Invisibility effects → Runtime state: reads and updates
src/Modules/Invisible.cs - Invisibility effects → Invisibility timing: uses timing data
src/Modules/Invisible.cs - Wallhack glow → Runtime state: reads glow state
src/Modules/Wallhack.cs - Wallhack glow → Glow entities: creates glow records
src/Modules/Wallhack.cs - Plugin lifecycle → CS2 server: registers hooks
- Invisibility effects → CS2 server: updates visibility
src/Modules/Invisible.cs - Wallhack glow → CS2 server: controls transmit
src/Modules/Wallhack.cs