Table of Contents

Delegate Listeners.OnEntityTakeDamagePre

Namespace
CounterStrikeSharp.API.Core
Assembly
CounterStrikeSharp.API.dll

Called when an entity is about to take damage. Returning HookResult.Handled or greater will prevent the entire damage application process.

[ListenerName("OnEntityTakeDamagePre")]
public delegate HookResult Listeners.OnEntityTakeDamagePre(CBaseEntity entity, CTakeDamageInfo info)

Parameters

entity CBaseEntity

The entity that is about to take damage.

info CTakeDamageInfo

The damage info.

Returns

HookResult
Called when an entity is about to take damage. Returning HookResult.Handled or greater will prevent the entire damage application process.