Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/c9glax/cs2gsi
.dll for CS2 Gamestate Integrations
https://github.com/c9glax/cs2gsi
counter-strike counter-strike-2 game gamestate-integration nuget-package valve
Last synced: about 1 month ago
JSON representation
.dll for CS2 Gamestate Integrations
- Host: GitHub
- URL: https://github.com/c9glax/cs2gsi
- Owner: C9Glax
- License: gpl-3.0
- Created: 2024-01-15T22:56:35.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-02-21T21:30:16.000Z (9 months ago)
- Last Synced: 2024-10-14T03:03:09.882Z (about 1 month ago)
- Topics: counter-strike, counter-strike-2, game, gamestate-integration, nuget-package, valve
- Language: C#
- Homepage:
- Size: 73.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CS2GSI
[![GitHub License](https://img.shields.io/github/license/c9glax/CS2GSI)](/LICENSE)
[![NuGet Version](https://img.shields.io/nuget/v/CS2GSI)](https://www.nuget.org/packages/CS2GSI/)
[![Github](https://img.shields.io/badge/Github-8A2BE2)](https://github.com/C9Glax/CS2GSI)
[![GitHub Release](https://img.shields.io/github/v/release/c9glax/CS2GSI)](https://github.com/C9Glax/CS2GSI/releases/latest)## Example Usage
```csharp
public static void Main(string[] args)
{
CS2GSI.CS2GSI gsi = new ();
gsi.AnyMessage += eventArgs => Console.WriteLine("Message");
gsi.OnKill += eventArgs => Console.WriteLine($"Kill number {eventArgs.ValueAsOrDefault()}");
while(gsi.IsRunning)
Thread.Sleep(10);
}
```### Events
All Events with IDs here: https://github.com/C9Glax/CS2GSI/blob/master/CS2GSI/CS2Event.cs
`EventName` (_ParameterType_) Description
* `OnKill` (_int_) Number of Kills in Match
* `OnHeadshot` (_int_) Number of Headshots in Round
* `OnDeath` (_int_) Number of Deaths in Match
* `OnFlashed`
* `OnBurning`
* `OnSmoked`
* `OnRoundStart`
* `OnRoundOver`
* `OnRoundWin`
* `OnRoundLoss`
* `OnDamageTaken` (_int_) Amount of Damage Taken
* `OnMatchStart`
* `OnMatchOver`
* `OnMoneyChange` (_int_) Delta in Money
* `OnHealthChange` (_int_) Delta in Health
* `OnArmorChange` (_int_) Delta in Armor
* `OnHelmetChange` (_bool_) Helmet on/off
* `OnEquipmentValueChange` (_int_) Delta in Equipmentvalue
* `OnTeamChange`
* `OnPlayerChange` (_string_) SteamId64
* `OnHalfTime`
* `OnFreezeTime`
* `OnBombPlanted`
* `OnBombDefused`
* `OnBombExploded`
* `AnyEvent`
* `AnyMessage`