MCPcopy Create free account
hub / github.com/ValveSoftware/halflife / TakeDamage

Method TakeDamage

dlls/combat.cpp:838–968  ·  view source on GitHub ↗

============ TakeDamage The damage is coming from inflictor, but get mad at attacker This should be the only function that ever reduces health. bitsDamageType indicates the type of damage sustained, ie: DMG_SHOCK Time-based damage: only occurs while the monster is within the trigger_hurt. When a monster is poisoned via an arrow etc it takes all the poison damage at once. GLOBALS ASSUMED SET:

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

VectorClass · 0.70
FNullEntFunction · 0.70
ENTFunction · 0.70
NormalizeMethod · 0.45
CenterMethod · 0.45

Tested by

no test coverage detected