CTakeDamageInfo
Damage Info.
Methods
CBaseEntity@ GetInflictor()-- Gets the pointer to Inflictor. (weapon or rocket or player that is dealing the damage.)void SetInflictor(CBaseEntity@ pInflictor)-- Sets the Inflictor. (weapon or rocket or player that is dealing the damage.)CBaseEntity@ GetWeapon()-- Gets the pointer to Weapon that dealt the damage. (For hitscan weapons, it'll be the same as the inflictor; For projectile weapons, the projectile is the inflictor, and this contains the weapon that created the projectile)void SetWeapon(CBaseEntity@ pWeapon)-- Sets the Weapon that deals the damage.CBaseEntity@ GetAttacker()-- Gets the pointer to Attacker. (The character who originated the attack like a player or an NPC)void SetAttacker(CBaseEntity@ pAttacker)-- Sets the Attacker.float GetDamage()-- Gets the damage value.float GetDamage() const-- Gets the damage value.void SetDamage(float flDamage)-- Sets the damage value.float GetMaxDamage()-- Gets the maximum damage value.float GetMaxDamage() const-- Gets the maximum damage value.void SetMaxDamage(float flMaxDamage)-- Sets the maximum damage value.void ScaleDamage(float flScaleAmount)-- Scales the damage by this amount.void AddDamage(float flAddAmount)-- Adds value to damage.void SubtractDamage(float flSubtractAmount)-- Subtracts from damage.float GetBaseDamage()-- Gets the value of base damage.float GetBaseDamage() const-- Gets the value of base damage.bool BaseDamageIsValid()-- Returns true if base damage is valid.Vector GetDamageForce()-- Gets the position of damage force.void SetDamageForce(Vector damageForce)-- Sets the position of the damage force.void ScaleDamageForce(float flScaleAmount)-- Scales the damage force by this amount.Vector GetDamagePosition()-- Gets the damage position.void SetDamagePosition(Vector damagePosition)-- Sets the damage position.Vector GetReportedPosition()-- Gets the reported position.void SetReportedPosition(Vector reportedPosition)-- Sets the reported position.int GetDamageType()-- Gets the damage type.void SetDamageType(int bitsDamageType)-- Sets the damage type in bits.void AddDamageType(int bitsDamageType)-- Adds a damage type in bits.int GetDamageCustom()-- Gets the value of custom damage.void SetDamageCustom(int iDamageCustom)-- Sets custom damage.int GetDamageStats()-- Gets the stats of damage.void SetDamageStats(int iDamageStats)-- Sets the stats of damage.int GetAmmoType()-- Gets the ammo type used.void SetAmmoType(int iAmmoType)-- Sets the ammo type.string GetAmmoName()-- Gets the name of the ammo type used.int GetDamagedOtherPlayers()--void SetDamagedOtherPlayers(int iVal)--void AdjustPlayerDamageInflictedForSkillLevel()--void AdjustPlayerDamageTakenForSkillLevel()--void SetCanCrit(bool val)--bool GetCanCrit()--void SetHandleDamageLikeRagdoll(bool val)-- Forces the NPC/Player to ragdoll.bool GetHandleDamageLikeRagdoll()-- Returns true if damage will force NPC/Player to ragdoll.void CopyDamageToBaseDamage()-- Copies damage to base damage.