How mengyangx/praclab works
PracLab is a Counter-Strike 2 practice plugin whose player-facing workflow is issuing practice commands and receiving in-game training or replay results. Its documented capabilities span map and practice controls, grenade search and rethrows, spawn tools, bots, dry-run configuration, and a real-time HUD. An optional Metamod C++ replay engine records movement and plays it back through bots. The excerpts show HUD calculations and parts of replay internals; links between unsampled subsystems are limited to README-documented relationships or omitted where call ownership is unclear.
Main entry points: PracLab.cs Plugin Core · PracticeHudSession.cs HUD Session · ReplayCommands.cs Replay Commands · CustomHudManager.cs HUD Display
Components 23
Practice Commands
- Plugin Core
PracLab.cs - Practice Controls
Commands/PracticeCommands.cs - Dry-run Mode
Commands/DryRunCommands.cs - Bot Commands
Commands/Bots/BotCommands.cs
Grenade And Spawn
- Grenade Tools
Commands/Nade/GrenadeCommands.cs - Grenade Search
Commands/Nade/NadeSearchCommands.cs - Grenade Visualization
Commands/Nade/NadeDrawCommands.cs - Spawn Tools
Commands/Spawns/SpawnCommands.cs - Spawn Markers
Commands/Spawns/SpawnMarkerCommands.cs
Practice HUD
- HUD Commands
Commands/PracticeHud/PracticeHudCommands.cs - HUD Session
Commands/PracticeHud/PracticeHudSession.cs - HUD Display
Commands/PracticeHud/CustomHudManager.cs - Counter-strafe
Commands/PracticeHud/CounterStrafeEngine.cs - Shot Stability
Commands/PracticeHud/ShotStabilityEngine.cs - Air Sync
Commands/PracticeHud/AirSyncEngine.cs - Spray Trace
Commands/PracticeHud/RecoilTraceEngine.cs - HUD Configuration
Commands/PracticeHud/PracticeHudConfig.cs
Replay Engine
- Replay Commands
Commands/Replay/ReplayCommands.cs - Motion Recorder
replay-engine/src/features/recorder/MotionRecorder.cpp - Bot Controller
replay-engine/src/features/controller/BotController.cpp - Bot Buy Control
replay-engine/src/features/buy/BuyController.cpp - Metamod Plugin
replay-engine/src/plugin.cpp
Other components
- Player
Connections 17
- Player → Plugin Core: issues commands
README.md - Plugin Core → Practice Controls: offers practice tools
README.md - Plugin Core → Dry-run Mode: offers dry-run
README.md - Plugin Core → Bot Commands: offers bot tools
README.md - Plugin Core → Grenade Tools: offers rethrows
README.md - Plugin Core → Grenade Search: offers inverse search
README.md - Plugin Core → Spawn Tools: offers teleports
README.md - Plugin Core → Spawn Markers: offers visualization
README.md - Player → HUD Commands: requests feedback
README.md - HUD Session → Counter-strafe: uses evaluator
Commands/PracticeHud/PracticeHudSession.cs - HUD Session → Shot Stability: uses evaluator
Commands/PracticeHud/PracticeHudSession.cs - HUD Session → Air Sync: uses evaluator
Commands/PracticeHud/PracticeHudSession.cs - HUD Session → Spray Trace: uses evaluator
Commands/PracticeHud/PracticeHudSession.cs - HUD Display → HUD Session: manages sessions
Commands/PracticeHud/CustomHudManager.cs - Player → Replay Commands: requests playback
README.md - Replay Commands → Metamod Plugin: uses optional engine
README.md - Motion Recorder → Bot Controller: coordinates playback