Limited support
This feature is only present in Portal 2: Community Edition and Portal: Revolution.

CTakeDamageInfo

AddDamage

Adds to the damage.

void CTakeDamageInfo::AddDamage(float)

AddDamageType

Adds to the damage type.

void CTakeDamageInfo::AddDamageType(int)

BaseDamageIsValid

Checks if the base damage is valid.

bool CTakeDamageInfo::BaseDamageIsValid()

GetAmmoName

Gets the ammo type name.

string CTakeDamageInfo::GetAmmoName()

GetAmmoType

Gets the ammo type.

int CTakeDamageInfo::GetAmmoType()

GetAttacker

Gets the attacker.

handle CTakeDamageInfo::GetAttacker()

GetBaseDamage

Gets the base damage.

float CTakeDamageInfo::GetBaseDamage()

GetDamage

Gets the damage.

float CTakeDamageInfo::GetDamage()

GetDamageCustom

Gets the damage custom.

int CTakeDamageInfo::GetDamageCustom()

GetDamageForce

Gets the damage force.

Vector CTakeDamageInfo::GetDamageForce()

GetDamagePosition

Gets the damage position.

Vector CTakeDamageInfo::GetDamagePosition()

GetDamageStats

Gets the damage stats.

int CTakeDamageInfo::GetDamageStats()

GetDamageType

Gets the damage type.

int CTakeDamageInfo::GetDamageType()

GetDamagedOtherPlayers

Gets whether other players have been damaged.

int CTakeDamageInfo::GetDamagedOtherPlayers()

GetInflictor

Gets the inflictor.

handle CTakeDamageInfo::GetInflictor()

GetMaxDamage

Gets the max damage.

float CTakeDamageInfo::GetMaxDamage()

GetReportedPosition

Gets the reported damage position.

Vector CTakeDamageInfo::GetReportedPosition()

GetWeapon

Gets the weapon.

handle CTakeDamageInfo::GetWeapon()

ScaleDamage

Scales the damage.

void CTakeDamageInfo::ScaleDamage(float)

ScaleDamageForce

Scales the damage force.

void CTakeDamageInfo::ScaleDamageForce(float)

SetAmmoType

Sets the ammo type.

void CTakeDamageInfo::SetAmmoType(int)

SetAttacker

Sets the attacker.

void CTakeDamageInfo::SetAttacker(handle)

SetDamage

Sets the damage.

void CTakeDamageInfo::SetDamage(float)

SetDamageCustom

Sets the damage custom.

void CTakeDamageInfo::SetDamageCustom(int)

SetDamageForce

Sets the damage force.

void CTakeDamageInfo::SetDamageForce(Vector)

SetDamagePosition

Sets the damage position.

void CTakeDamageInfo::SetDamagePosition(Vector)

SetDamageStats

Sets the damage stats.

void CTakeDamageInfo::SetDamageStats(int)

SetDamageType

Sets the damage type.

void CTakeDamageInfo::SetDamageType(int)

SetDamagedOtherPlayers

Sets whether other players have been damaged.

void CTakeDamageInfo::SetDamagedOtherPlayers(int)

SetInflictor

Sets the inflictor.

void CTakeDamageInfo::SetInflictor(handle)

SetMaxDamage

Sets the max damage.

void CTakeDamageInfo::SetMaxDamage(float)

SetReportedPosition

Sets the reported damage position.

void CTakeDamageInfo::SetReportedPosition(Vector)

SetWeapon

Sets the weapon.

void CTakeDamageInfo::SetWeapon(handle)

SubtractDamage

Removes from the damage.

void CTakeDamageInfo::SubtractDamage(float)