swiftlys2/docs/api/ai/
API Reference GameHooks

TakeDamageEntityParams

Struct
Namespace: SwiftlyS2.Shared.GameHooks · Assembly: SwiftlyS2.CS2.dll
public struct TakeDamageEntityParams
View source

Properties

DamageResult

The optional native damage result. It may be null when the caller did not provide a result object.

public CTakeDamageResult* DamageResult { get; }
Property Value

Entity

The entity that is taking damage.

public required CBaseEntity Entity { readonly get; init; }
Property Value

Info

The damage information passed to the original function. Modifications are written to native memory.

public ref CTakeDamageInfo Info { get; }
Property Value