Skip to main content

ProcessUsercmdsEvent

Event data passed to IDeadworksPlugin.OnProcessUsercmds. Contains the player slot, parsed usercmd protobuf messages, and timing info.

public sealed class ProcessUsercmdsEvent

Namespace: DeadworksManaged.Api
Source: Events/ProcessUsercmdsEvent.cs#L4

Properties​

ProcessUsercmdsEvent.PlayerSlot​

Player slot (0-63).

Signature

public required int PlayerSlot { get; init; }

Source: Events/ProcessUsercmdsEvent.cs#L6

ProcessUsercmdsEvent.Usercmds​

Parsed CCitadelUserCmdPB protobuf messages for this tick. Modifications are serialized back to the engine.

Signature

public required List<CCitadelUserCmdPB> Usercmds { get; init; }

Source: Events/ProcessUsercmdsEvent.cs#L9

ProcessUsercmdsEvent.Paused​

Whether the game is paused.

Signature

public required bool Paused { get; init; }

Source: Events/ProcessUsercmdsEvent.cs#L12

ProcessUsercmdsEvent.Margin​

Network margin in seconds.

Signature

public required float Margin { get; init; }

Source: Events/ProcessUsercmdsEvent.cs#L15

ProcessUsercmdsEvent.Controller​

Gets the player controller for this player slot.

Signature

public unsafe CCitadelPlayerController? Controller { get; }

Source: Events/ProcessUsercmdsEvent.cs#L19