MCPcopy Create free account
hub / github.com/ValveSoftware/source-sdk-2013 / CheckTraceHullAttack

Method CheckTraceHullAttack

src/game/server/basecombatcharacter.cpp:1090–1112  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Purpose : expects a length to trace, amount of damage to do, and damage type. Returns a pointer to the damaged entity in case the NPC wishes to do other stuff to the victim (punchangle, etc) Used for many contact-range melee attacks. Bites, claws, etc. Input : Output : -----------------------------------------------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

Calls 14

AngleVectorsFunction · 0.85
BoxDirectionFunction · 0.85
UTIL_TraceHullFunction · 0.85
WorldSpaceAABBMethod · 0.80
VectorNormalizeFunction · 0.50
GetBoolMethod · 0.45
LengthMethod · 0.45
InitMethod · 0.45
CanBeHitByMeleeAttackMethod · 0.45
IsAliveMethod · 0.45
GetServerVehicleMethod · 0.45

Tested by

no test coverage detected