54 lines
1.6 KiB
Markdown
54 lines
1.6 KiB
Markdown
# 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<int>()}");
|
|
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` |