CTFRagdoll: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 58: | Line 58: | ||
|'''m_bWasDisguised''' | |'''m_bWasDisguised''' | ||
|Boolean | |Boolean | ||
| | |Whether or not our player was disguised when they died. | ||
|- | |- | ||
|'''m_bBecomeAsh''' | |'''m_bBecomeAsh''' | ||
|Boolean | |Boolean | ||
| | |Whether or not our player was killed by a weapon with item attribute ragdolls become ash | ||
|- | |- | ||
|'''m_bOnGround''' | |'''m_bOnGround''' | ||
Line 215: | Line 215: | ||
| style="width: 20%;" |'''000''' | | style="width: 20%;" |'''000''' | ||
| style="width: 20%;" |Integer | | style="width: 20%;" |Integer | ||
| style="width: 60%;" | | | style="width: 60%;" |CEconWearable Vector. Wearables taken from our player are stored here. | ||
|- | |- | ||
|'''001''' | |'''001''' | ||
Line 261: | Line 261: | ||
|'''m_bCritOnHardHit''' | |'''m_bCritOnHardHit''' | ||
|Boolean | |Boolean | ||
| | |Whether or not the weapon that killed our player have item attribute crit on hard hit | ||
|- | |- | ||
|'''m_flHeadScale''' | |'''m_flHeadScale''' |
Latest revision as of 19:28, 7 October 2023
Overview[edit | edit source]
Ragdolls in TF2 are instances of this class.
Source location : /game/server/tf/tf_player.cpp
Linked entity : tf_ragdoll
Class Structure[edit | edit source]
- CBaseEntity
- CBaseAnimating
- CBaseAnimatingOverlay
- CTFRagdoll
- CBaseAnimatingOverlay
- CBaseAnimating
SendProps[edit | edit source]
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
m_vecRagdollOrigin | Vector | The point in space at which the ragdoll was spawned (not where the client's view of it currently is). | ||||||||||||||||||||||||||||||||||||||||||||||||
m_iPlayerIndex | Integer | The index of the player that the ragdoll was for. | ||||||||||||||||||||||||||||||||||||||||||||||||
m_vecForce | Vector | |||||||||||||||||||||||||||||||||||||||||||||||||
m_vecRagdollVelocity | Vector | The velocity of the ragdoll's associated player when they died. | ||||||||||||||||||||||||||||||||||||||||||||||||
m_nForceBone | Integer | |||||||||||||||||||||||||||||||||||||||||||||||||
m_bGib | Boolean | Whether or not the player (and by extension the ragdoll) gibbed (exploded). | ||||||||||||||||||||||||||||||||||||||||||||||||
m_bBurning | Boolean | Whether or not the ragdoll is burning. | ||||||||||||||||||||||||||||||||||||||||||||||||
m_bElectrocuted | Boolean | Whether or not the ragdoll was spawned due to a player death from energy weapons. (Neon Annihilator vs wet player, Cow Mangler, etc) | ||||||||||||||||||||||||||||||||||||||||||||||||
m_bFeignDeath | Boolean | Whether or not the ragdoll was spawned from a Spy using the Dead Ringer. | ||||||||||||||||||||||||||||||||||||||||||||||||
m_bWasDisguised | Boolean | Whether or not our player was disguised when they died. | ||||||||||||||||||||||||||||||||||||||||||||||||
m_bBecomeAsh | Boolean | Whether or not our player was killed by a weapon with item attribute ragdolls become ash | ||||||||||||||||||||||||||||||||||||||||||||||||
m_bOnGround | Boolean | Whether or not the player was walking (on the ground) when the ragdoll was spawned. (Whether or not the client's view of the ragdoll is off the ground is irrelevant) | ||||||||||||||||||||||||||||||||||||||||||||||||
m_bCloaked | Boolean | Whether or not the ragdoll is cloaked. | ||||||||||||||||||||||||||||||||||||||||||||||||
m_iDamageCustom | Integer | The type of damage that killed the ragdoll's associated player.
| ||||||||||||||||||||||||||||||||||||||||||||||||
m_iTeam | Integer | The team the ragdoll's associated player was when they died.
| ||||||||||||||||||||||||||||||||||||||||||||||||
m_iClass | Integer | The class the ragdoll's associated player was when they died.
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
m_bGoldRagdoll | Boolean | Whether or not the ragdoll was turned to gold. | ||||||||||||||||||||||||||||||||||||||||||||||||
m_bIceRagdoll | Boolean | Whether or not the ragdoll was turned to ice. | ||||||||||||||||||||||||||||||||||||||||||||||||
m_bCritOnHardHit | Boolean | Whether or not the weapon that killed our player have item attribute crit on hard hit | ||||||||||||||||||||||||||||||||||||||||||||||||
m_flHeadScale | Float | The head scale of the ragdoll. | ||||||||||||||||||||||||||||||||||||||||||||||||
m_flTorsoScale | Float | The torso scale of the ragdoll. | ||||||||||||||||||||||||||||||||||||||||||||||||
m_flHandScale | Float | The hand scale of the ragdoll. |