StrikeLInk is a modern .NET library for Counter-Strike 2 and Valve ecosystem integration. It provides event-driven access to in-game chat, game state updates, Steam client services, CS2 console interaction, and Valve configuration formats using modern C# and .NET.
$ dotnet add package StrikeLinkStrikeLInk is a modern, cross-platform .NET library for integrating with Counter-Strike 2 and related Valve ecosystem services. It provides structured access to chat events, game state changes, client services, and Valve configuration formats, all using modern C# and .NET APIs.
📦 Available on NuGet as StrikeLInk
Install via NuGet:
dotnet add package StrikeLInk
Or via the NuGet Package Manager:
Install-Package StrikeLInk
StrikeLInk is structured around services, events, and state integration. Consumers subscribe to events and invoke methods to interact with the game client.
Provides access to in-game chat messages and sending capabilities.
OnTeamChatOnGlobalChatSendChatAsync(NewChatMessage message)public enum ChatChannel
{
Team,
Global
}
public record NewChatMessage(ChatChannel Channel, string Message);
Track live game state changes through event-based updates.
Based on GameStateInteraction with help from this reddit post
Gsi Listener
OnPostReceived for all incoming GSI payloadsMap State
MapState eventsPlayer State
PlayerState eventsRound State
RoundState eventsThese events allow real-time reactions to gameplay changes such as round transitions, player updates, and map changes.
Provides access to Steam and CS2 client data.
GetSteamPath()TryGetGamePath(int gameId, out string path)GetGamePath(int gameId)GetUserConfig(long? userId)GetGameLaunchOptions(int gameId)GetCurrentUserId()Interact directly with the CS2 console and listen to runtime events.
OnLogReceivedOnPlayerConnectedOnMapJoinedOnGlobalChatMessageReceivedOnTeamChatMessageReceivedOnUiStateChangedOnAddonProgressOnAddonFinishedOnServerJoiningOnServerConnectedOnServerDisconnectedThis service enables advanced automation, monitoring, and addon integration.
A flexible configuration system built around JsonDocument-style APIs.
.vcfg.cfg.vdf.acf