swiftlys2/docs/api/ai/
API Reference Events

IOnClientProcessUsercmdsEvent

Interface
Namespace: SwiftlyS2.Shared.Events · Assembly: SwiftlyS2.CS2.dll
[Obsolete("This event is deprecated and will be removed in future versions. Use GameHooks instead.")]
public interface IOnClientProcessUsercmdsEvent

Called when a client processes user commands. This callback is a hot path, be careful with it and don't do anything expensive.

View source

Properties

Margin

The margin of the client, milliseconds.

float Margin { get; }
Property Value

Paused

Whether the client is paused.

bool Paused { get; }
Property Value

PlayerId

The player ID of the client that processed the user commands.

int PlayerId { get; }
Property Value

Usercmds

The user commands that the client processed.

List<CSGOUserCmdPB> Usercmds { get; }
Property Value
List<CSGOUserCmdPB>