Disable Radar: source code for a plugin to disable the radar
About this content
Features
Disable Radar is a SourceMod plugin designed to hide the radar after a player spawns. The source code handles the event player_spawn, after which a timer with zero delay is created. Before changing properties, the plugin checks whether the client is connected to the game, is in the game, and is not a bot or SourceTV client.
For CS:GO, the radar is hidden through the property m_iHideHUD with the flag 1<<12. For a game with the folder name cstrike the code uses another method: it sets m_flFlashDuration to 3600.0, а m_flFlashMaxAlpha — 0.5. In this mode, the plugin also subscribes to player_blind in EventHookMode_Postmode. If the event concerns a player whose team is greater than 1, hiding is scheduled again after the duration of the flash.
Requirements
- The code uses the include
<sourcemod>, so this is SourceMod plugin source code. - The logic expects game folder names containing
csgoorcstrike. Other cases are not handled separately in the code.
The repository README does not provide a detailed list of requirements or dependency versions, so they cannot be determined from it.
Installation
The provided archive contains the source code file DisableRadar/addons/sourcemod/scripting/DisableRadar.sp. This is not a ready-to-use binary plugin: the materials do not include a compiled file or build instructions. The README also does not describe installation steps.
Settings and commands
No CVARs, configuration parameters, or admin commands are declared in the code. Behavior is determined by game event handlers; the source contains no separate configuration examples.
Download
Version: git-bea17135eeab.
The ZIP contains source code; compilation may be required before installation. Plugin file: DisableRadar/addons/sourcemod/scripting/DisableRadar.sp.


Comments (0)