CTFRagdoll: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 161: | Line 161: | ||
|'''m_iTeam''' | |'''m_iTeam''' | ||
|Integer | |Integer | ||
|The team the ragdoll's associated player was when they died. | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | | | ||
* 0 - None | |||
* 1 - Spectator | |||
* 2 - RED | |||
* 3 - BLU | |||
* 5 - Boss / Neutral | |||
|} | |||
|- | |- | ||
|'''m_iClass''' | |'''m_iClass''' | ||
|Integer | |Integer | ||
|The class the ragdoll's associated player was when they died. | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | | | ||
* 0 - TF_CLASS_UNDEFINED | |||
* 1 - TF_CLASS_SCOUT | |||
* 2 - TF_CLASS_SNIPER | |||
* 3 - TF_CLASS_SOLDIER | |||
* 4 - TF_CLASS_DEMOMAN | |||
* 5 - TF_CLASS_MEDIC | |||
* 6 - TF_CLASS_HEAVYWEAPONS | |||
* 7 - TF_CLASS_PYRO | |||
* 8 - TF_CLASS_SPY | |||
* 9 - TF_CLASS_ENGINEER | |||
* 10 - TF_CLASS_CIVILIAN | |||
* 11 - TF_CLASS_COUNT_ALL | |||
* 12 - TF_CLASS_RANDOM | |||
|} | |||
|- | |- | ||
| colspan="3" style="padding: 0; margin: 0" | | | colspan="3" style="padding: 0; margin: 0" | | ||
Line 215: | Line 243: | ||
|'''m_bGoldRagdoll''' | |'''m_bGoldRagdoll''' | ||
|Boolean | |Boolean | ||
| | |Whether or not the ragdoll was turned to gold. | ||
|- | |- | ||
|'''m_bIceRagdoll''' | |'''m_bIceRagdoll''' | ||
|Boolean | |Boolean | ||
| | |Whether or not the ragdoll was turned to ice. | ||
|- | |- | ||
|'''m_bCritOnHardHit''' | |'''m_bCritOnHardHit''' | ||
Line 227: | Line 255: | ||
|'''m_flHeadScale''' | |'''m_flHeadScale''' | ||
|Float | |Float | ||
| | |The head scale of the ragdoll. | ||
|- | |- | ||
|'''m_flTorsoScale''' | |'''m_flTorsoScale''' | ||
|Float | |Float | ||
| | |The torso scale of the ragdoll. | ||
|- | |- | ||
|'''m_flHandScale''' | |'''m_flHandScale''' | ||
|Float | |Float | ||
| | |The hand scale of the ragdoll. | ||
|} | |} |
Revision as of 20:50, 10 April 2022
Overview
Ragdolls in TF2 are instances of this class.
Source location : /game/server/tf/tf_player.cpp
Linked entity : tf_ragdoll
Class Structure
- CBaseEntity
- CBaseAnimating
- CBaseAnimatingOverlay
- CTFRagdoll
- CBaseAnimatingOverlay
- CBaseAnimating
SendProps
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 player when the ragdoll was spawned. | ||||||||||||||||||||||||||||||||||||
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 | |||||||||||||||||||||||||||||||||||||
m_bBecomeAsh | Boolean | |||||||||||||||||||||||||||||||||||||
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 | |||||||||||||||||||||||||||||||||||||
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. |