DamageConeTrace( <damage position>, <ignore entity> )

Module: Trace


Determines how much the entity can be damaged from the given position, using the same check that is used by grenades. Performs multiple damage traces and returns an approximation to how much of the entity is damageable from the given point (between 0 and 1). In SinglePlayer this will always be 1 if the entity is partially damageable.

Call this on:

<entity> The entity to do the damage check against


damageAmount = player DamageConeTrace( damager.origin, damager );

Required Args:

  • 1 : <damage position> The point the damage is coming from

Optional Args

  • 1 : <ignore entity> An entity to ignore when doing the traces; usually the source of the damage