CounterStrikeSharp is a server-side modification framework that allows developers to create C# plugins for Counter-Strike 2. It implements a .NET 8 scripting layer through a Metamod:Source plugin, providing access to Source 2 server functionality. Developers can register custom console commands, chat commands, and event handlers. Its API exposes player properties such as weapons, money, and positions through the game's schema system. Event listeners respond to player connections, disconnections, map changes, and game ticks. Timer functionality supports scheduled and repeating server operations. The framework also allows plugins to manipulate game entities and use external .NET libraries. Documentation and example projects help developers build custom gameplay systems and administrative tools.
Features
- C# plugin development for Counter-Strike 2 through .NET 8 and Metamod:Source integration
- Custom console, server, and chat commands with configurable prefixes and handlers
- Game event interception and modification with support for player and entity data
- Game tick timers supporting recurring operations and automatic cancellation on map changes
- Player property access for weapons, money, location, and other Source 2 schema values
- Plugin development API with lifecycle events, third-party libraries, and example implementations