CBaseEntity: Difference between revisions
No edit summary |
No edit summary |
||
(21 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
'''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/baseentity.h /game/server/baseentity.h]''' | '''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/baseentity.h /game/server/baseentity.h]''' | ||
'''VScript : [https://developer.valvesoftware.com/wiki/Team_Fortress_2/Scripting/Script_Functions#CBaseEntity Script_Functions#CBaseEntity]''' | |||
'''Lua : [https://github.com/rafradek/sigsegv-mvm/blob/4b2b8e63ca8b3f09c16ed0dcceea955e5ee365b7/scripts/library.lua#L61 scripts/library.lua#L61]''' | |||
Go back to [[Classes]] | Go back to [[Classes]] | ||
Line 19: | Line 23: | ||
| style="width: 50%;" |'''m_flAnimTime''' | | style="width: 50%;" |'''m_flAnimTime''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |TBD | ||
|- | |||
| colspan="3" style="padding: 0 auto; margin: 0 auto;" | | |||
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="3" style="background-color: rgb(45, 62, 97)" | | |||
|} | |||
|} | |} | ||
|- | |- | ||
Line 35: | Line 44: | ||
|- | |- | ||
|'''m_nModelIndex''' | |'''m_nModelIndex''' | ||
| | |Short | ||
|The index for this entity's precached model. Changing this does nothing in TF2. | |The index for this entity's precached model. Changing this does nothing in TF2. | ||
|- | |- | ||
Line 59: | Line 68: | ||
|- | |- | ||
|'''m_nSolidType''' | |'''m_nSolidType''' | ||
|Char | |Unsigned Char | ||
|Determines the type of collision representation for the bounding volume. | |Determines the type of collision representation for the entity's bounding volume. | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | ||
! colspan="1" |Values | ! colspan="1" |Values | ||
|- | |- | ||
| | | | ||
* 0 - Non-solid | [https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L235 /public/const.h#L235] | ||
* 1 - A BSP tree (QPhysics) | * <span style="color: #66b1fa">0</span> - Non-solid | ||
* 2 - Bounding Box | * <span style="color: #66b1fa">1</span> - A BSP tree (QPhysics) | ||
* 3 - Oriented Bounding Box | * <span style="color: #66b1fa">2</span> - Bounding Box | ||
* 4 - Oriented Bounding Box constrained to only rotate along the yaw axis | * <span style="color: #66b1fa">3</span> - Oriented Bounding Box | ||
* 5 - Always call into the entity for tests | * <span style="color: #66b1fa">4</span> - Oriented Bounding Box constrained to only rotate along the yaw axis | ||
* 6 - Solid VPhysics object, get vcollide from the model and collide with that | * <span style="color: #66b1fa">5</span> - Always call into the entity for tests | ||
* <span style="color: #66b1fa">6</span> - Solid [https://developer.valvesoftware.com/wiki/VPhysics VPhysics] object, get vcollide from the model and collide with that | |||
|} | |} | ||
|- | |- | ||
|'''m_usSolidFlags''' | |'''m_usSolidFlags''' | ||
| | |Unsigned Short | ||
| | |Entity solidity bit flags. | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | ||
! colspan="1" |Values | ! colspan="1" |Values | ||
|- | |- | ||
| | | | ||
* 0 | [https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L247 /public/const.h#L247] | ||
* 1 | * <span style="color: #66b1fa">0</span> - None | ||
* 2 | * <span style="color: #66b1fa">1</span> - Ignore solid type + always call into this entity for ray tests | ||
* 4 | * <span style="color: #66b1fa">2</span> - Ignore solid type + always call into this entity for swept box tests | ||
* 8 | * <span style="color: #66b1fa">4</span> - Are we currently not solid? | ||
* 16 | * <span style="color: #66b1fa">8</span> - This is something may be collideable but fires touch functions even when it's not collideable (when the FSOLID_NOT_SOLID (4) flag is set) | ||
* 32 | * <span style="color: #66b1fa">16</span> - You can't stand on this | ||
* 64 | * <span style="color: #66b1fa">32</span> - Contains volumetric contents (like water) | ||
* 128 - Uses a special trigger bounds separate from the normal OBB | * <span style="color: #66b1fa">64</span> - Forces the collision rep to be world-aligned even if it's SOLID_BSP or SOLID_VPHYSICS | ||
* 256 - Collisions are defined in root parent's local coordinate space | * <span style="color: #66b1fa">128</span> - Uses a special trigger bounds separate from the normal OBB | ||
* 512 - This trigger will touch debris objects | * <span style="color: #66b1fa">256</span> - Collisions are defined in root parent's local coordinate space | ||
* <span style="color: #66b1fa">512</span> - This trigger will touch debris objects | |||
|} | |} | ||
|- | |- | ||
|'''m_nSurroundType''' | |'''m_nSurroundType''' | ||
| | |Unsigned Char | ||
| | | | ||
|- | |- | ||
|'''m_triggerBloat''' | |'''m_triggerBloat''' | ||
| | |Unsigned Char | ||
| | | | ||
|- | |- | ||
|'''m_bUniformTriggerBloat''' | |'''m_bUniformTriggerBloat''' | ||
|Boolean | |Boolean | ||
| | |Not in source? | ||
|- | |- | ||
|'''m_vecSpecifiedSurroundingMinsPreScaled''' | |'''m_vecSpecifiedSurroundingMinsPreScaled''' | ||
Line 122: | Line 132: | ||
|Vector | |Vector | ||
| | | | ||
|- | |||
| colspan="3" style="padding: 0 auto; margin: 0 auto;" | | |||
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="3" style="background-color: rgb(45, 62, 97)" | | |||
|} | |||
|} | |} | ||
|- | |- | ||
|'''m_nRenderFX''' | |'''[https://sigwiki.potato.tf/index.php/CBaseEntity.m_nRenderFX m_nRenderFX]''' | ||
| | |Unsigned Char | ||
|Alpha render effects enum. | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | | | ||
[https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L367 /public/const.h#L367] | |||
* <span style="color: #66b1fa">0</span> - None | |||
* <span style="color: #66b1fa">1</span> - Slow Pulse (varies alpha by ±16 over a period of 1.5 s) | |||
* <span style="color: #66b1fa">2</span> - Fast Pulse (varies alpha by ±16 over a period of 0.4 s) | |||
* <span style="color: #66b1fa">3</span> - Slow Wide Pulse (varies alpha by ±64 over a period of 1.5 s) | |||
* <span style="color: #66b1fa">4</span> - Fast Wide Pulse (varies alpha by ±64 over a period of 0.4 s) | |||
* <span style="color: #66b1fa">5</span> - Slow Fade Away (decreases alpha by -1 per frame, fades out over 4 s) | |||
* <span style="color: #66b1fa">6</span> - Fast Fade Away (decreases alpha by -4 per frame, fades out over 1 s) | |||
* <span style="color: #66b1fa">7</span> - Slow Become Solid (increases alpha by +1 per frame, fades in over 4 s) | |||
* <span style="color: #66b1fa">8</span> - Fast Become Solid (increases alpha by +4 per frame, fades in over 1 s) | |||
* <span style="color: #66b1fa">9</span> - Slow Strobe (transparent 0.8 s, visible 0.8 s, repeat) | |||
* <span style="color: #66b1fa">10</span> - Fast Strobe (transparent 0.2 s, visible 0.2 s, repeat) | |||
* <span style="color: #66b1fa">11</span> - Faster Strobe (transparent 0.09 s, visible 0.09 s, repeat) | |||
* <span style="color: #66b1fa">12</span> - Slow Flicker (transparent 0.18 s, visible 1.5 s, repeat) | |||
* <span style="color: #66b1fa">13</span> - Fast Flicker (transparent 0.14 s, visible 0.2 s, repeat) | |||
* <span style="color: #66b1fa">14</span> - Constant Glow ("NoDissipation;" purpose uncertain—for sprites?) | |||
* <span style="color: #66b1fa">15</span> - Distort (causes unnatural flickering and position shifting), Fade Out (instant; not very useful outside of code) | |||
* <span style="color: #66b1fa">16</span> - Hologram (Distort + "distance fade"), Fade In (instant; not very useful outside of code) | |||
* <span style="color: #66b1fa">17</span> - Scale Up ("Explode"/"scale up really big!" causes wild stretching of model parts), Fade Wider Pulse (varies alpha by ±255 over a period over a period of 0.26 s) | |||
* <span style="color: #66b1fa">18</span> - Glow Shell (purpose unclear) | |||
* <span style="color: #66b1fa">19</span> - Clamp Minimum Scale ("keep this sprite from getting very small (SPRITES only!)") | |||
* <span style="color: #66b1fa">20</span> - Environmental Rain ("for environmental rendermode, make rain") | |||
* <span style="color: #66b1fa">21</span> - Environmental Snow ("for environmental rendermode, make snow") | |||
* <span style="color: #66b1fa">22</span> - Spotlight FX ("TEST CODE for experimental spotlight") | |||
* <span style="color: #66b1fa">23</span> - Ragdoll ("HACKHACK: TEST CODE for signalling death of a ragdoll character;" ragdolls an entity but doesn't kill it) | |||
* <span style="color: #66b1fa">24</span> - Fade Wider Pulse (varies alpha by ±255 over a period of 0.26 s) | |||
|} | |||
|- | |- | ||
|'''m_nRenderMode''' | |'''m_nRenderMode''' | ||
| | |Unsigned Char | ||
|The mode in which this entity should attempt to be rendered. | |The mode in which this entity should attempt to be rendered. | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | ||
Line 135: | Line 181: | ||
|- | |- | ||
| | | | ||
* 0 | [https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L350 /public/const.h#L350] | ||
* 1 | * <span style="color: #66b1fa">0</span> - Normal | ||
* 2 | * <span style="color: #66b1fa">1</span> - Color | ||
* 3 | * <span style="color: #66b1fa">2</span> - Texture | ||
* 4 | * <span style="color: #66b1fa">3</span> - Glow | ||
* 5 | * <span style="color: #66b1fa">4</span> - Solid/Alphatest | ||
* 6 | * <span style="color: #66b1fa">5</span> - Additive | ||
* 7 | * <span style="color: #66b1fa">6</span> - Removed, does nothing | ||
* 8 | * <span style="color: #66b1fa">7</span> - Additive Fractional Frame | ||
* 9 | * <span style="color: #66b1fa">8</span> - Alpha Add | ||
* 10 - Don't Render | * <span style="color: #66b1fa">9</span> - World Space Glow | ||
* <span style="color: #66b1fa">10</span> - Don't Render | |||
|} | |} | ||
|- | |- | ||
|'''m_fEffects''' | |'''m_fEffects''' | ||
|Integer | |Integer | ||
|Entity effects bit flags. | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | | | ||
[https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L281 /public/const.h#L281] | |||
* <span style="color: #66b1fa">1</span> - Performs bone merge on client side | |||
* <span style="color: #66b1fa">2</span> - Dynamic Light centered at entity origin | |||
* <span style="color: #66b1fa">4</span> - Player flashlight | |||
* <span style="color: #66b1fa">8</span> - Don't interpolate the next frame | |||
* <span style="color: #66b1fa">16</span> - Don't cast shadows | |||
* <span style="color: #66b1fa">32</span> - Don't draw entity | |||
* <span style="color: #66b1fa">64</span> - Don't receive shadows | |||
* <span style="color: #66b1fa">128</span> - For use with EF_BONEMERGE. If this is set, then it places this ent's origin at its parent and uses the parent's bbox + the max extents of the aiment. Otherwise, it sets up the parent's bones every frame to figure out where to place the aiment, which is inefficient because it'll setup the parent's bones even if the parent is not in the PVS. | |||
* <span style="color: #66b1fa">256</span> - Blink an item so that the user notices it | |||
* <span style="color: #66b1fa">512</span> - Always assume that the parent entity is animating | |||
|} | |||
|- | |- | ||
|'''m_clrRender''' | |'''m_clrRender''' | ||
Line 173: | Line 236: | ||
|- | |- | ||
| | | | ||
* 0 - None | * <span style="color: #66b1fa">0</span> - None | ||
* 1 - Spectator | * <span style="color: #66b1fa">1</span> - Spectator | ||
* 2 - RED | * <span style="color: #66b1fa">2</span> - RED | ||
* 3 - BLU | * <span style="color: #66b1fa">3</span> - BLU | ||
* 5 - Boss / Neutral | * <span style="color: #66b1fa">5</span> - Boss / Neutral | ||
|} | |} | ||
|- | |- | ||
Line 187: | Line 250: | ||
|- | |- | ||
| | | | ||
* 0 | [https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L397 /public/const.h#L397] | ||
* 1 | * <span style="color: #66b1fa">0</span> - None | ||
* 2 | * <span style="color: #66b1fa">1</span> - Collides with nothing but world and static stuff | ||
* 3 | * <span style="color: #66b1fa">2</span> - Same as debris, but hits triggers | ||
* 4 | * <span style="color: #66b1fa">3</span> - Collides with everything except other interactive debris or debris | ||
* 5 | * <span style="color: #66b1fa">4</span> - Collides with everything except interactive debris or debris | ||
* 6 | * <span style="color: #66b1fa">5</span> - COLLISION_GROUP_PLAYER, | ||
* 7 | * <span style="color: #66b1fa">6</span> - COLLISION_GROUP_BREAKABLE_GLASS, | ||
* 8 | * <span style="color: #66b1fa">7</span> - COLLISION_GROUP_VEHICLE, | ||
* 9 | * <span style="color: #66b1fa">8</span> - For HL2, same as Collision_Group_Player, for TF2, this filters out other players and CBaseObjects | ||
* 10 - | * <span style="color: #66b1fa">9</span> - Generic NPC group | ||
* 11 - | * <span style="color: #66b1fa">10</span> - For any entity inside a vehicle | ||
* 12 - | * <span style="color: #66b1fa">11</span> - For any weapons that need collision detection | ||
* 13 - Projectiles! | * <span style="color: #66b1fa">12</span> - Vehicle clip brush to restrict vehicle movement | ||
* 14 - Blocks entities not permitted to get near moving doors | * <span style="color: #66b1fa">13</span> - Projectiles! | ||
* 15 - Doors that the player shouldn't collide with | * <span style="color: #66b1fa">14</span> - Blocks entities not permitted to get near moving doors | ||
* 16 - Things that are dissolving are in this group | * <span style="color: #66b1fa">15</span> - Doors that the player shouldn't collide with | ||
* 17 - Nonsolid on client and server, pushaway in player code | * <span style="color: #66b1fa">16</span> - Things that are dissolving are in this group | ||
* 18 - Used so NPCs in scripts ignore the player. | * <span style="color: #66b1fa">17</span> - Nonsolid on client and server, pushaway in player code | ||
* 19 - Used for NPCs in scripts that should not collide with each other | * <span style="color: #66b1fa">18</span> - Used so NPCs in scripts ignore the player. | ||
* <span style="color: #66b1fa">19</span> - Used for NPCs in scripts that should not collide with each other | |||
* 20 - TFCOLLISION_GROUP_SHIELD | * <span style="color: #66b1fa">20</span> - TFCOLLISION_GROUP_SHIELD | ||
* 21 - TFCOLLISION_GROUP_WEAPON | * <span style="color: #66b1fa">21</span> - TFCOLLISION_GROUP_WEAPON | ||
* 22 - TFCOLLISION_GROUP_GRENADE | * <span style="color: #66b1fa">22</span> - TFCOLLISION_GROUP_GRENADE | ||
* 23 - TFCOLLISION_GROUP_RESOURCE_CHUNK | * <span style="color: #66b1fa">23</span> - TFCOLLISION_GROUP_RESOURCE_CHUNK | ||
* 24 - Combat objects (override for above) | * <span style="color: #66b1fa">24</span> - Combat objects (override for above) | ||
* 25 - TFCOLLISION_GROUP_OBJECT | * <span style="color: #66b1fa">25</span> - TFCOLLISION_GROUP_OBJECT | ||
* 26 - TFCOLLISION_GROUP_OBJECT_SOLIDTOPLAYERMOVEMENT | * <span style="color: #66b1fa">26</span> - TFCOLLISION_GROUP_OBJECT_SOLIDTOPLAYERMOVEMENT | ||
|} | |} | ||
|- | |- | ||
Line 231: | Line 295: | ||
|'''m_hEffectEntity''' | |'''m_hEffectEntity''' | ||
|Handle | |Handle | ||
| | |The entity which is used to affect this one. (Ignite/Dissolve) | ||
|- | |- | ||
|'''moveparent''' | |'''moveparent''' | ||
Line 238: | Line 302: | ||
|- | |- | ||
|'''m_iParentAttachment''' | |'''m_iParentAttachment''' | ||
| | |Unsigned Char | ||
|The attachment point on the parent entity which this entity is held to. | |The attachment point on the parent entity which this entity is held to. | ||
|- | |- | ||
|'''movetype''' | |'''movetype''' | ||
|Char | |Unsigned Char | ||
|Determines the movement behavior for this entity. | |Determines the movement behavior for this entity. | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | ||
Line 248: | Line 312: | ||
|- | |- | ||
| | | | ||
* 0 | [https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L191 /public/const.h#L191] | ||
* 1 | * <span style="color: #66b1fa">0</span> - None, don't move | ||
* 2 | * <span style="color: #66b1fa">1</span> - Isometric | ||
* 3 | * <span style="color: #66b1fa">2</span> - Walk, player only, moving on ground | ||
* 4 | * <span style="color: #66b1fa">3</span> - NPC, movement | ||
* 5 | * <span style="color: #66b1fa">4</span> - Fly, no gravity | ||
* 6 | * <span style="color: #66b1fa">5</span> - Fly, with gravity | ||
* 7 | * <span style="color: #66b1fa">6</span> - VPhysics | ||
* 8 | * <span style="color: #66b1fa">7</span> - Push | ||
* 9 | * <span style="color: #66b1fa">8</span> - Noclip | ||
* 10 - Spectator | * <span style="color: #66b1fa">9</span> - Ladder, for players on ladders | ||
* 11 - Custom | * <span style="color: #66b1fa">10</span> - Spectator | ||
* <span style="color: #66b1fa">11</span> - Custom | |||
|} | |} | ||
|- | |- | ||
|'''movecollide''' | |'''movecollide''' | ||
|Char | |Unsigned Char | ||
|Determines the collision behavior for this entity. | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | | | ||
[https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L213 /public/const.h#L213] | |||
* <span style="color: #66b1fa">0</span> - Default | |||
// These ones only work for MOVETYPE_FLY + MOVETYPE_FLYGRAVITY | |||
* <span style="color: #66b1fa">1</span> - Fly/Bounce (Bounces, reflects, based on elasticity of surface and object - applies friction (adjust velocity)) | |||
* <span style="color: #66b1fa">2</span> - Fly/Custom (Touch() will modify the velocity however it likes) | |||
* <span style="color: #66b1fa">3</span> - Fly/Slide (Slides along surfaces (no bounce) - applies friction (adjusts velocity)) | |||
|} | |||
|- | |- | ||
|'''m_angRotation''' | |'''m_angRotation''' | ||
Line 271: | Line 347: | ||
|- | |- | ||
|'''m_iTextureFrameIndex''' | |'''m_iTextureFrameIndex''' | ||
| | |Unsigned Char | ||
| | | | ||
|- | |- | ||
Line 285: | Line 361: | ||
|Boolean | |Boolean | ||
| | | | ||
|- | |||
| colspan="3" style="padding: 0 auto; margin: 0 auto;" | | |||
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="3" style="background-color: rgb(45, 62, 97)" | | |||
|} | |||
|} | |} | ||
|- | |- | ||
Line 318: | Line 399: | ||
|Integer | |Integer | ||
|For <code>VISION_MODE_ROME</code> | |For <code>VISION_MODE_ROME</code> | ||
|- | |||
| colspan="3" style="padding: 0 auto; margin: 0 auto;" | | |||
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="3" style="background-color: rgb(45, 62, 97)" | | |||
|} | |||
|} | |} | ||
|} | |} | ||
Line 357: | Line 443: | ||
|- | |- | ||
| style="width: 50%;" |'''CBaseEntityShadowCastDistThink''' | | style="width: 50%;" |'''CBaseEntityShadowCastDistThink''' | ||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''CBaseEntityScriptThink''' | |||
| style="width: 15%;" | | | style="width: 15%;" | | ||
| style="width: 35%;" | | | style="width: 35%;" | | ||
Line 461: | Line 551: | ||
|- | |- | ||
| style="width: 50%;" |'''InputUse''' | | style="width: 50%;" |'''InputUse''' | ||
| style="width: 15%;" |Input (Void) | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputRunScriptFile''' | |||
| style="width: 15%;" |Input (String) | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputRunScript''' | |||
| style="width: 15%;" |Input (String) | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputCallScriptFunction''' | |||
| style="width: 15%;" |Input (String) | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputTerminateScriptScope''' | |||
| style="width: 15%;" |Input (Void) | | style="width: 15%;" |Input (Void) | ||
| style="width: 35%;" | | | style="width: 35%;" | | ||
Line 470: | Line 576: | ||
| style="width: 50%;" |'''m_bUniformTriggerBloat''' | | style="width: 50%;" |'''m_bUniformTriggerBloat''' | ||
| style="width: 15%;" |Boolean | | style="width: 15%;" |Boolean | ||
| style="width: 35%;" | | | style="width: 35%;" |Not in source? | ||
|- | |- | ||
| style="width: 50%;" |'''m_flRadius''' | | style="width: 50%;" |'''m_flRadius''' | ||
Line 531: | Line 637: | ||
| style="width: 15%;" |Vector | | style="width: 15%;" |Vector | ||
| style="width: 35%;" | | | style="width: 35%;" | | ||
|- | |||
| colspan="3" style="padding: 0 auto; margin: 0 auto;" | | |||
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="3" style="background-color: rgb(45, 62, 97)" | | |||
|} | |||
|} | |} | ||
|- | |- | ||
Line 540: | Line 651: | ||
|- | |- | ||
| | | | ||
* 0 | [https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L397 /public/const.h#L397] | ||
* 1 | * <span style="color: #66b1fa">0</span> - None | ||
* 2 | * <span style="color: #66b1fa">1</span> - Collides with nothing but world and static stuff | ||
* 3 | * <span style="color: #66b1fa">2</span> - Same as debris, but hits triggers | ||
* 4 | * <span style="color: #66b1fa">3</span> - Collides with everything except other interactive debris or debris | ||
* 5 | * <span style="color: #66b1fa">4</span> - Collides with everything except interactive debris or debris | ||
* 6 | * <span style="color: #66b1fa">5</span> - COLLISION_GROUP_PLAYER, | ||
* 7 | * <span style="color: #66b1fa">6</span> - COLLISION_GROUP_BREAKABLE_GLASS, | ||
* 8 | * <span style="color: #66b1fa">7</span> - COLLISION_GROUP_VEHICLE, | ||
* 9 | * <span style="color: #66b1fa">8</span> - For HL2, same as Collision_Group_Player, for TF2, this filters out other players and CBaseObjects | ||
* 10 - for any entity inside a vehicle | * <span style="color: #66b1fa">9</span> - Generic NPC group | ||
* 11 - for any weapons that need collision detection | * <span style="color: #66b1fa">10</span> - for any entity inside a vehicle | ||
* 12 - vehicle clip brush to restrict vehicle movement | * <span style="color: #66b1fa">11</span> - for any weapons that need collision detection | ||
* 13 - Projectiles! | * <span style="color: #66b1fa">12</span> - vehicle clip brush to restrict vehicle movement | ||
* 14 - Blocks entities not permitted to get near moving doors | * <span style="color: #66b1fa">13</span> - Projectiles! | ||
* 15 - Doors that the player shouldn't collide with | * <span style="color: #66b1fa">14</span> - Blocks entities not permitted to get near moving doors | ||
* 16 - Things that are dissolving are in this group | * <span style="color: #66b1fa">15</span> - Doors that the player shouldn't collide with | ||
* 17 - Nonsolid on client and server, pushaway in player code | * <span style="color: #66b1fa">16</span> - Things that are dissolving are in this group | ||
* 18 - Used so NPCs in scripts ignore the player. | * <span style="color: #66b1fa">17</span> - Nonsolid on client and server, pushaway in player code | ||
* 19 - Used for NPCs in scripts that should not collide with each other | * <span style="color: #66b1fa">18</span> - Used so NPCs in scripts ignore the player. | ||
* <span style="color: #66b1fa">19</span> - Used for NPCs in scripts that should not collide with each other | |||
* 20 - TFCOLLISION_GROUP_SHIELD | [https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/game/shared/tf2/tf_shareddefs.h#L104 /game/shared/tf2/tf_shareddefs.h#L104] | ||
* 21 - TFCOLLISION_GROUP_WEAPON | * <span style="color: #66b1fa">20</span> - TFCOLLISION_GROUP_SHIELD | ||
* 22 - TFCOLLISION_GROUP_GRENADE | * <span style="color: #66b1fa">21</span> - TFCOLLISION_GROUP_WEAPON | ||
* 23 - TFCOLLISION_GROUP_RESOURCE_CHUNK | * <span style="color: #66b1fa">22</span> - TFCOLLISION_GROUP_GRENADE | ||
* 24 - Combat objects (override for above) | * <span style="color: #66b1fa">23</span> - TFCOLLISION_GROUP_RESOURCE_CHUNK | ||
* 25 - TFCOLLISION_GROUP_OBJECT | * <span style="color: #66b1fa">24</span> - Combat objects (override for above) | ||
* 26 - TFCOLLISION_GROUP_OBJECT_SOLIDTOPLAYERMOVEMENT | * <span style="color: #66b1fa">25</span> - TFCOLLISION_GROUP_OBJECT | ||
* <span style="color: #66b1fa">26</span> - TFCOLLISION_GROUP_OBJECT_SOLIDTOPLAYERMOVEMENT | |||
|} | |} | ||
|- | |- | ||
| style="width: 50%;" |'''m_ModelName''' | | style="width: 50%;" |'''m_ModelName''' | ||
| style="width: 15%;" |String | | style="width: 15%;" |String | ||
| style="width: 35%;" | | | style="width: 35%;" |The model path and name for this entity | ||
|- | |- | ||
| style="width: 50%;" |'''m_MoveCollide''' | | style="width: 50%;" |'''m_MoveCollide''' | ||
| style="width: 15%;" |Char | | style="width: 15%;" |Char | ||
| style="width: 35%;" | | | style="width: 35%;" |Determines the collision behavior for this entity. | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | |||
[https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L213 /public/const.h#L213] | |||
* <span style="color: #66b1fa">0</span> - Default | |||
// These ones only work for MOVETYPE_FLY + MOVETYPE_FLYGRAVITY | |||
* <span style="color: #66b1fa">1</span> - Fly/Bounce (Bounces, reflects, based on elasticity of surface and object - applies friction (adjust velocity)) | |||
* <span style="color: #66b1fa">2</span> - Fly/Custom (Touch() will modify the velocity however it likes) | |||
* <span style="color: #66b1fa">3</span> - Fly/Slide (Slides along surfaces (no bounce) - applies friction (adjusts velocity)) | |||
|} | |||
|- | |- | ||
| style="width: 50%;" |'''m_MoveType''' | | style="width: 50%;" |'''m_MoveType''' | ||
| style="width: 15%;" |Char | | style="width: 15%;" |Char | ||
| style="width: 35%;" | | | style="width: 35%;" |Determines the movement behavior for this entity. | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | |||
[https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L191 /public/const.h#L191] | |||
* <span style="color: #66b1fa">0</span> - None, don't move | |||
* <span style="color: #66b1fa">1</span> - Isometric | |||
* <span style="color: #66b1fa">2</span> - Walk, player only, moving on ground | |||
* <span style="color: #66b1fa">3</span> - NPC, movement | |||
* <span style="color: #66b1fa">4</span> - Fly, no gravity | |||
* <span style="color: #66b1fa">5</span> - Fly, with gravity | |||
* <span style="color: #66b1fa">6</span> - VPhysics | |||
* <span style="color: #66b1fa">7</span> - Push | |||
* <span style="color: #66b1fa">8</span> - Noclip | |||
* <span style="color: #66b1fa">9</span> - Ladder, for players on ladders | |||
* <span style="color: #66b1fa">10</span> - Spectator | |||
* <span style="color: #66b1fa">11</span> - Custom | |||
|} | |||
|- | |- | ||
| colspan="3" style="padding: 0; margin: 0;" | | | colspan="3" style="padding: 0; margin: 0;" | | ||
Line 587: | Line 729: | ||
|- | |- | ||
| style="width: 50%;" |'''m_hParent''' | | style="width: 50%;" |'''m_hParent''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Handle | ||
| style="width: 35%;" | | | style="width: 35%;" |The parent entity to which this entity is attached. | ||
|- | |||
| colspan="3" style="padding: 0 auto; margin: 0 auto;" | | |||
{| class="wikitable" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="3" style="background-color: rgb(45, 62, 97)" | | |||
|} | |||
|} | |} | ||
|- | |- | ||
Line 655: | Line 802: | ||
| style="width: 50%;" |'''m_fEffects''' | | style="width: 50%;" |'''m_fEffects''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |Entity effects bit flags. | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | |||
[https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L281 /public/const.h#L281] | |||
* <span style="color: #66b1fa">1</span> - Performs bone merge on client side | |||
* <span style="color: #66b1fa">2</span> - Dynamic Light centered at entity origin | |||
* <span style="color: #66b1fa">4</span> - Player flashlight | |||
* <span style="color: #66b1fa">8</span> - Don't interpolate the next frame | |||
* <span style="color: #66b1fa">16</span> - Don't cast shadows | |||
* <span style="color: #66b1fa">32</span> - Don't draw entity | |||
* <span style="color: #66b1fa">64</span> - Don't receive shadows | |||
* <span style="color: #66b1fa">128</span> - For use with EF_BONEMERGE. If this is set, then it places this ent's origin at its parent and uses the parent's bbox + the max extents of the aiment. Otherwise, it sets up the parent's bones every frame to figure out where to place the aiment, which is inefficient because it'll setup the parent's bones even if the parent is not in the PVS. | |||
* <span style="color: #66b1fa">256</span> - Blink an item so that the user notices it | |||
* <span style="color: #66b1fa">512</span> - Always assume that the parent entity is animating | |||
|} | |||
|- | |- | ||
| style="width: 50%;" |'''m_fFlags''' | | style="width: 50%;" |'''m_fFlags''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |Entity bit flags (Different from m_iEFlags) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | |||
[https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L147 /public/const.h#L147] | |||
* <span style="color: #66b1fa">1</span> - At rest / on the ground | |||
* <span style="color: #66b1fa">2</span> - Player flag -- Player is fully crouched | |||
* <span style="color: #66b1fa">4</span> - Player flag -- Player is in the process of crouching or uncrouching but could be in transition | |||
// examples: | |||
// Fully ducked: FL_DUCKING & FL_ANIMDUCKING | |||
// Previously fully ducked, unducking in progress: FL_DUCKING & !FL_ANIMDUCKING | |||
// Fully unducked: !FL_DUCKING & !FL_ANIMDUCKING | |||
// Previously fully unducked, ducking in progress: !FL_DUCKING & FL_ANIMDUCKING | |||
* <span style="color: #66b1fa">8</span> - Player jumping out of water | |||
* <span style="color: #66b1fa">16</span> - Player is _controlling_ a train, so movement commands should be ignored on client during prediction. | |||
* <span style="color: #66b1fa">32</span> - Indicates the entity is standing in rain | |||
* <span style="color: #66b1fa">64</span> - Player is frozen for 3rd person camera | |||
* <span style="color: #66b1fa">128</span> - Player can't move, but keeps key inputs for controlling another entity | |||
* <span style="color: #66b1fa">256</span> - Is a player | |||
* <span style="color: #66b1fa">512</span> - Fake client, simulated server side; don't send network messages to them | |||
* <span style="color: #66b1fa">1024</span> - In water | |||
* <span style="color: #66b1fa">2048</span> - Changes the SV_Movestep() behavior to not need to be on ground | |||
* <span style="color: #66b1fa">4096</span> - Changes the SV_Movestep() behavior to not need to be on ground (but stay in water) | |||
* <span style="color: #66b1fa">8192</span> - FL_CONVEYOR | |||
* <span style="color: #66b1fa">16384</span> - FL_NPC | |||
* <span style="color: #66b1fa">32768</span> - FL_GODMODE | |||
* <span style="color: #66b1fa">65536</span> - FL_NOTARGET | |||
* <span style="color: #66b1fa">131072</span> - Set if the crosshair needs to aim onto the entity | |||
* <span style="color: #66b1fa">262144</span> - Not all corners are valid | |||
* <span style="color: #66b1fa">524288</span> - Eetsa static prop! | |||
* <span style="color: #66b1fa">1048576</span> - Worldgraph has this ent listed as something that blocks a connection | |||
* <span style="color: #66b1fa">2097152</span> - FL_GRENADE | |||
* <span style="color: #66b1fa">4194304</span> - Changes the SV_Movestep() behavior to not do any processing | |||
* <span style="color: #66b1fa">8388608</span> - Doesn't generate touch functions, generates Untouch() for anything it was touching when this flag was set | |||
* <span style="color: #66b1fa">16777216</span> - Base velocity has been applied this frame (used to convert base velocity into momentum) | |||
* <span style="color: #66b1fa">33554432</span> - Not moveable/removeable brush entity (really part of the world, but represented as an entity for transparency or something) | |||
* <span style="color: #66b1fa">67108864</span> - Terrible name. This is an object that NPCs should see. Missiles, for example. | |||
* <span style="color: #66b1fa">134217728</span> - This entity is marked for death -- will be freed by game DLL | |||
* <span style="color: #66b1fa">268435456</span> - You know... On fire! | |||
* <span style="color: #66b1fa">536870912</span> - We're dissolving! | |||
* <span style="color: #66b1fa">1073741824</span> - In the process of turning into a client side ragdoll. | |||
* <span style="color: #66b1fa">2147483648</span> - Pusher that can't be blocked by the player | |||
|} | |||
|- | |- | ||
| style="width: 50%;" |'''m_flAnimTime''' | | style="width: 50%;" |'''m_flAnimTime''' | ||
Line 723: | Line 929: | ||
| style="width: 50%;" |'''m_hEffectEntity''' | | style="width: 50%;" |'''m_hEffectEntity''' | ||
| style="width: 15%;" |Handle | | style="width: 15%;" |Handle | ||
| style="width: 35%;" | | | style="width: 35%;" |The entity which is used to affect this one. (Ignite/Dissolve) | ||
|- | |- | ||
| style="width: 50%;" |'''m_hGroundEntity''' | | style="width: 50%;" |'''m_hGroundEntity''' | ||
| style="width: 15%;" |Handle | | style="width: 15%;" |Handle | ||
| style="width: 35%;" | | | style="width: 35%;" |The entity this entity is standing / laying on. | ||
|- | |- | ||
| style="width: 50%;" |'''m_hMoveChild''' | | style="width: 50%;" |'''m_hMoveChild''' | ||
Line 751: | Line 957: | ||
| style="width: 50%;" |'''m_iEFlags''' | | style="width: 50%;" |'''m_iEFlags''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |Entity bit flags (Different from m_fFlags) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | |||
[https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/game/shared/shareddefs.h#L579 /game/shared/shareddefs.h#L579] | |||
* <span style="color: #66b1fa">1</span> - This entity is marked for death -- This allows the game to actually delete ents at a safe time | |||
* <span style="color: #66b1fa">2</span> - Entity is dormant, no updates to client | |||
* <span style="color: #66b1fa">4</span> - Lets us know when the noclip command is active. | |||
* <span style="color: #66b1fa">8</span> - Set while a model is setting up its bones. | |||
* <span style="color: #66b1fa">16</span> - This is a special entity that should not be deleted when we restart entities only | |||
* <span style="color: #66b1fa">16</span> - One of the child entities is a player. | |||
* <span style="color: #66b1fa">32</span> - Client only- need shadow manager to update the shadow... | |||
* <span style="color: #66b1fa">64</span> - Another entity is watching events on this entity (used by teleport) | |||
* <span style="color: #66b1fa">128</span> - Force the engine to transmit this entity even if it doesn't have a model | |||
* <span style="color: #66b1fa">256</span> - This is set on bots that are frozen. | |||
* <span style="color: #66b1fa">512</span> - Non-networked entity. | |||
* <span style="color: #66b1fa">1024</span> - Don't attach the edict; we're doing it explicitly | |||
* <span style="color: #66b1fa">2048</span> - EFL_DIRTY_ABSTRANSFORM | |||
* <span style="color: #66b1fa">4096</span> - EFL_DIRTY_ABSVELOCITY | |||
* <span style="color: #66b1fa">8192</span> - EFL_DIRTY_ABSANGVELOCITY | |||
* <span style="color: #66b1fa">16384</span> - EFL_DIRTY_SURROUNDING_COLLISION_BOUNDS | |||
* <span style="color: #66b1fa">32768</span> - EFL_DIRTY_SPATIAL_PARTITION | |||
* <span style="color: #66b1fa">65536</span> - UNUSED | |||
* <span style="color: #66b1fa">131072</span> - This is set if the entity detects that it's in the skybox and forces it to pass the "in PVS" for transmission. | |||
* <span style="color: #66b1fa">262144</span> - Entities with this flag set show up in the partition even when not solid | |||
* <span style="color: #66b1fa">524288</span> - Used to determine if an entity is floating | |||
* <span style="color: #66b1fa">1048576</span> - EFL_IS_BEING_LIFTED_BY_BARNACLE | |||
* <span style="color: #66b1fa">2097152</span> - I shouldn't be pushed by the rotorwash | |||
* <span style="color: #66b1fa">4194304</span> - EFL_NO_THINK_FUNCTION | |||
* <span style="color: #66b1fa">8388608</span> - EFL_NO_GAME_PHYSICS_SIMULATION | |||
* <span style="color: #66b1fa">16777216</span> - EFL_CHECK_UNTOUCH | |||
* <span style="color: #66b1fa">33554432</span> - I shouldn't block NPC line-of-sight | |||
* <span style="color: #66b1fa">67108864</span> - NPC's should not walk on this entity | |||
* <span style="color: #66b1fa">134217728</span> - These guys shouldn't dissolve | |||
* <span style="color: #66b1fa">268435456</span> - Mega physcannon can't ragdoll these guys. | |||
* <span style="color: #66b1fa">536870912</span> - Don't adjust this entity's velocity when transitioning into water | |||
* <span style="color: #66b1fa">1073741824</span> - Physcannon can't pick these up or punt them | |||
* <span style="color: #66b1fa">2147483648</span> - Doesn't accept forces from physics damage | |||
|} | |||
|- | |- | ||
| style="width: 50%;" |'''m_iGlobalname''' | | style="width: 50%;" |'''m_iGlobalname''' | ||
Line 772: | Line 1,017: | ||
|- | |- | ||
| | | | ||
* 0 - None | * <span style="color: #66b1fa">0</span> - None | ||
* 1 - Spectator | * <span style="color: #66b1fa">1</span> - Spectator | ||
* 2 - RED | * <span style="color: #66b1fa">2</span> - RED | ||
* 3 - BLU | * <span style="color: #66b1fa">3</span> - BLU | ||
* 5 - Boss / Neutral | * <span style="color: #66b1fa">5</span> - Boss / Neutral | ||
|} | |} | ||
|- | |- | ||
Line 785: | Line 1,030: | ||
| style="width: 50%;" |'''m_iName''' | | style="width: 50%;" |'''m_iName''' | ||
| style="width: 15%;" |String | | style="width: 15%;" |String | ||
| style="width: 35%;" | | | style="width: 35%;" |The targetname of this entity. | ||
|- | |- | ||
| style="width: 50%;" |'''m_iParent''' | | style="width: 50%;" |'''m_iParent''' | ||
| style="width: 15%;" |String | | style="width: 15%;" |String | ||
| style="width: 35%;" | | | style="width: 35%;" |The targetname of the parent of this entity. | ||
|- | |- | ||
| style="width: 50%;" |'''m_iParentAttachment''' | | style="width: 50%;" |'''m_iParentAttachment''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Char | ||
| style="width: 35%;" | | | style="width: 35%;" |The attachment point on the parent entity which this entity is held to. | ||
|- | |- | ||
| style="width: 50%;" |'''m_iTeamNum''' | | style="width: 50%;" |'''m_iTeamNum''' | ||
Line 802: | Line 1,047: | ||
|- | |- | ||
| | | | ||
* 0 - None | * <span style="color: #66b1fa">0</span> - None | ||
* 1 - Spectator | * <span style="color: #66b1fa">1</span> - Spectator | ||
* 2 - RED | * <span style="color: #66b1fa">2</span> - RED | ||
* 3 - BLU | * <span style="color: #66b1fa">3</span> - BLU | ||
* 5 - Boss / Neutral | * <span style="color: #66b1fa">5</span> - Boss / Neutral | ||
|} | |} | ||
|- | |- | ||
| style="width: 50%;" |'''m_iTextureFrameIndex''' | | style="width: 50%;" |'''m_iTextureFrameIndex''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Char | ||
| style="width: 35%;" | | | style="width: 35%;" | | ||
|- | |- | ||
| style="width: 50%;" |'''m_iszDamageFilterName''' | | style="width: 50%;" |'''m_iszDamageFilterName''' | ||
| style="width: 15%;" |String | | style="width: 15%;" |String | ||
| style="width: 35%;" |The | | style="width: 35%;" |The targetname of the damage filter for this entity. | ||
|- | |- | ||
| style="width: 50%;" |'''m_iszResponseContext''' | | style="width: 50%;" |'''m_iszResponseContext''' | ||
Line 822: | Line 1,067: | ||
|- | |- | ||
| style="width: 50%;" |'''m_lifeState''' | | style="width: 50%;" |'''m_lifeState''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Char | ||
| style="width: 35%;" | | | style="width: 35%;" |Am I alive? | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | |||
[https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L273 /public/const.h#L273] | |||
* <span style="color: #66b1fa">0</span> - Alive | |||
* <span style="color: #66b1fa">1</span> - Playing death animation or still falling off of a ledge waiting to hit ground. (Does not apply to players.) | |||
* <span style="color: #66b1fa">2</span> - Dead, lying still. (Players will instantly have this set upon dying.) | |||
* <span style="color: #66b1fa">3</span> - LIFE_RESPAWNABLE | |||
* <span style="color: #66b1fa">4</span> - LIFE_DISCARDBODY | |||
|} | |||
|- | |- | ||
| style="width: 50%;" |'''m_nLastThinkTick''' | | style="width: 50%;" |'''m_nLastThinkTick''' | ||
Line 830: | Line 1,086: | ||
|- | |- | ||
| style="width: 50%;" |'''m_nModelIndex''' | | style="width: 50%;" |'''m_nModelIndex''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Short | ||
| style="width: 35%;" |The index for this entity's precached model. Changing this does nothing in TF2. | | style="width: 35%;" |The index for this entity's precached model. Changing this does nothing in TF2. | ||
|- | |- | ||
| style="width: 50%;" |'''m_nModelIndexOverrides''' | | style="width: 50%;" |'''m_nModelIndexOverrides''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Array (Integer) | ||
| style="width: 35%;" | | | style="width: 35%;" | | ||
|- | |- | ||
Line 842: | Line 1,098: | ||
|- | |- | ||
| style="width: 50%;" |'''m_nRenderFX''' | | style="width: 50%;" |'''m_nRenderFX''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Char | ||
| style="width: 35%;" | | | style="width: 35%;" |Alpha render effects enum. | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="1" |Values | |||
|- | |||
| | |||
[https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L367 /public/const.h#L367] | |||
* <span style="color: #66b1fa">0</span> - None | |||
* <span style="color: #66b1fa">1</span> - Slow Pulse (varies alpha by ±16 over a period of 1.5 s) | |||
* <span style="color: #66b1fa">2</span> - Fast Pulse (varies alpha by ±16 over a period of 0.4 s) | |||
* <span style="color: #66b1fa">3</span> - Slow Wide Pulse (varies alpha by ±64 over a period of 1.5 s) | |||
* <span style="color: #66b1fa">4</span> - Fast Wide Pulse (varies alpha by ±64 over a period of 0.4 s) | |||
* <span style="color: #66b1fa">5</span> - Slow Fade Away (decreases alpha by -1 per frame, fades out over 4 s) | |||
* <span style="color: #66b1fa">6</span> - Fast Fade Away (decreases alpha by -4 per frame, fades out over 1 s) | |||
* <span style="color: #66b1fa">7</span> - Slow Become Solid (increases alpha by +1 per frame, fades in over 4 s) | |||
* <span style="color: #66b1fa">8</span> - Fast Become Solid (increases alpha by +4 per frame, fades in over 1 s) | |||
* <span style="color: #66b1fa">9</span> - Slow Strobe (transparent 0.8 s, visible 0.8 s, repeat) | |||
* <span style="color: #66b1fa">10</span> - Fast Strobe (transparent 0.2 s, visible 0.2 s, repeat) | |||
* <span style="color: #66b1fa">11</span> - Faster Strobe (transparent 0.09 s, visible 0.09 s, repeat) | |||
* <span style="color: #66b1fa">12</span> - Slow Flicker (transparent 0.18 s, visible 1.5 s, repeat) | |||
* <span style="color: #66b1fa">13</span> - Fast Flicker (transparent 0.14 s, visible 0.2 s, repeat) | |||
* <span style="color: #66b1fa">14</span> - Constant Glow ("NoDissipation;" purpose uncertain—for sprites?) | |||
* <span style="color: #66b1fa">15</span> - Distort (causes unnatural flickering and position shifting), Fade Out (instant; not very useful outside of code) | |||
* <span style="color: #66b1fa">16</span> - Hologram (Distort + "distance fade"), Fade In (instant; not very useful outside of code) | |||
* <span style="color: #66b1fa">17</span> - Scale Up ("Explode"/"scale up really big!" causes wild stretching of model parts), Fade Wider Pulse (varies alpha by ±255 over a period over a period of 0.26 s) | |||
* <span style="color: #66b1fa">18</span> - Glow Shell (purpose unclear) | |||
* <span style="color: #66b1fa">19</span> - Clamp Minimum Scale ("keep this sprite from getting very small (SPRITES only!)") | |||
* <span style="color: #66b1fa">20</span> - Environmental Rain ("for environmental rendermode, make rain") | |||
* <span style="color: #66b1fa">21</span> - Environmental Snow ("for environmental rendermode, make snow") | |||
* <span style="color: #66b1fa">22</span> - Spotlight FX ("TEST CODE for experimental spotlight") | |||
* <span style="color: #66b1fa">23</span> - Ragdoll ("HACKHACK: TEST CODE for signalling death of a ragdoll character;" ragdolls an entity but doesn't kill it) | |||
* <span style="color: #66b1fa">24</span> - Fade Wider Pulse (varies alpha by ±255 over a period of 0.26 s) | |||
|} | |||
|- | |- | ||
| style="width: 50%;" |'''m_nRenderMode''' | | style="width: 50%;" |'''m_nRenderMode''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Char | ||
| style="width: 35%;" |The mode in which this entity should attempt to be rendered. | | style="width: 35%;" |The mode in which this entity should attempt to be rendered. | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | ||
Line 852: | Line 1,139: | ||
|- | |- | ||
| | | | ||
* 0 | [https://github.com/sr2echa/TF2-Source-Code/blob/master/tf2_src/public/const.h#L350 /public/const.h#L350] | ||
* 1 | * <span style="color: #66b1fa">0</span> - Normal | ||
* 2 | * <span style="color: #66b1fa">1</span> - Color | ||
* 3 | * <span style="color: #66b1fa">2</span> - Texture | ||
* 4 | * <span style="color: #66b1fa">3</span> - Glow | ||
* 5 | * <span style="color: #66b1fa">4</span> - Solid/Alphatest | ||
* 6 | * <span style="color: #66b1fa">5</span> - Additive | ||
* 7 | * <span style="color: #66b1fa">6</span> - Removed, does nothing | ||
* 8 | * <span style="color: #66b1fa">7</span> - Additive Fractional Frame | ||
* 9 | * <span style="color: #66b1fa">8</span> - Alpha Add | ||
* 10 - Don't Render | * <span style="color: #66b1fa">9</span> - World Space Glow | ||
* <span style="color: #66b1fa">10</span> - Don't Render | |||
|} | |} | ||
|- | |- | ||
Line 870: | Line 1,158: | ||
|- | |- | ||
| style="width: 50%;" |'''m_nTransmitStateOwnedCounter''' | | style="width: 50%;" |'''m_nTransmitStateOwnedCounter''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Char | ||
| style="width: 35%;" | | | style="width: 35%;" | | ||
|- | |- | ||
| style="width: 50%;" |'''m_nWaterLevel''' | | style="width: 50%;" |'''m_nWaterLevel''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Char | ||
| style="width: 35%;" |How far this entity is submerged in water. For players, the values are like so: | | style="width: 35%;" |How far this entity is submerged in water. For players, the values are like so: | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | ||
Line 880: | Line 1,168: | ||
|- | |- | ||
| | | | ||
* 0 | * <span style="color: #66b1fa">0</span> - Not touching water. | ||
* 1 | * <span style="color: #66b1fa">1</span> - Touching water, but our movement is unaffected. (Water at our feet) | ||
* 2 | * <span style="color: #66b1fa">2</span> - Swimming, but our head isn't below the surface. (We can still breath) | ||
* 3 | * <span style="color: #66b1fa">3</span> - Completely submerged in water. | ||
|} | |} | ||
|- | |- | ||
| style="width: 50%;" |'''m_nWaterType''' | | style="width: 50%;" |'''m_nWaterType''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Char | ||
| style="width: 35%;" | | | style="width: 35%;" | | ||
|- | |- | ||
| style="width: 50%;" |'''m_pBlocker''' | | style="width: 50%;" |'''m_pBlocker''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Handle | ||
| style="width: 35%;" | | | style="width: 35%;" | | ||
|- | |- | ||
| style="width: 50%;" |'''m_pParent''' | | style="width: 50%;" |'''m_pParent''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Handle | ||
| style="width: 35%;" | | | style="width: 35%;" | | ||
|- | |- | ||
| style="width: 50%;" |'''m_pPhysicsObject''' | | style="width: 50%;" |'''m_pPhysicsObject''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Handle | ||
| style="width: 35%;" | | | style="width: 35%;" | | ||
|- | |- | ||
Line 923: | Line 1,211: | ||
|- | |- | ||
| style="width: 50%;" |'''m_rgflCoordinateFrame''' | | style="width: 50%;" |'''m_rgflCoordinateFrame''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Array (Float) | ||
| style="width: 35%;" | | | style="width: 35%;" | | ||
|- | |- | ||
Line 931: | Line 1,219: | ||
|- | |- | ||
| style="width: 50%;" |'''m_takedamage''' | | style="width: 50%;" |'''m_takedamage''' | ||
| style="width: 15%;" | | | style="width: 15%;" |Char | ||
| style="width: 35%;" | | | style="width: 35%;" | | ||
|- | |- | ||
Line 968: | Line 1,256: | ||
| style="width: 50%;" |'''touchStamp''' | | style="width: 50%;" |'''touchStamp''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iszScriptId''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iszVScripts''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_iszScriptThinkFunction''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_bForcePurgeFixedupStrings''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | | style="width: 35%;" | | ||
|} | |} |
Latest revision as of 12:56, 17 September 2023
Overview[edit | edit source]
The class from which all entity types derive from. The only exceptions to this are TempEnts, which are temporary entities that are too simple to warrant the overhead of inheriting from CBaseEntity.
Source location : /game/server/baseentity.h
VScript : Script_Functions#CBaseEntity
Lua : scripts/library.lua#L61
Go back to Classes
SendProps[edit | edit source]
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flSimulationTime | Integer | |||||||||||||||||||||||||||||||||||||||||||||||||||||
m_vecOrigin | Vector | The local position of this entity relative to it's parent. If this entity has no parent, the position is relative to the world origin. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
m_ubInterpolationFrame | Integer | |||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nModelIndex | Short | The index for this entity's precached model. Changing this does nothing in TF2. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nRenderFX | Unsigned Char | Alpha render effects enum.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nRenderMode | Unsigned Char | The mode in which this entity should attempt to be rendered.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
m_fEffects | Integer | Entity effects bit flags.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
m_clrRender | Integer | An integer representing the RGB render color of this entity.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iTeamNum | Integer | The team this entity is a part of.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
m_CollisionGroup | Integer | Modifies what this entity collides with.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flElasticity | Float | |||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flShadowCastDistance | Float | |||||||||||||||||||||||||||||||||||||||||||||||||||||
m_hOwnerEntity | Handle | The owner of this entity, not to be confused with the parent (moveparent). A common example of ownership is players owning the projectiles that they fire. Some entities may not work properly if you create them without giving them an owner. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
m_hEffectEntity | Handle | The entity which is used to affect this one. (Ignite/Dissolve) | ||||||||||||||||||||||||||||||||||||||||||||||||||||
moveparent | String | The immediate parent of this entity in the movement hierarchy. The targetname of the parent is used, rather than a Handle to the parent entity itsself. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iParentAttachment | Unsigned Char | The attachment point on the parent entity which this entity is held to. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
movetype | Unsigned Char | Determines the movement behavior for this entity.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
movecollide | Unsigned Char | Determines the collision behavior for this entity.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
m_angRotation | Vector | The rotation vector of this entity relative to it's parent. If this entity has no parent the vector is relative to the world. For players only Yaw is non zero. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iTextureFrameIndex | Unsigned Char | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_bSimulatedEveryTick | Boolean | |||||||||||||||||||||||||||||||||||||||||||||||||||||
m_bAnimatedEveryTick | Boolean | |||||||||||||||||||||||||||||||||||||||||||||||||||||
m_bAlternateSorting | Boolean | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Entity DataMaps[edit | edit source]
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CBaseEntitySUB_CallUseToggle | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CBaseEntitySUB_DoNothing | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CBaseEntitySUB_FadeOut | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CBaseEntitySUB_Remove | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CBaseEntitySUB_StartFadeOut | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CBaseEntitySUB_StartFadeOutInstant | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CBaseEntitySUB_Vanish | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CBaseEntityShadowCastDistThink | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CBaseEntityScriptThink | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputAddContext | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputAddOutput | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputAlpha | Input (Integer) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputAlternativeSorting | Input (Boolean) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputClearContext | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputClearParent | Input (Void) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputColor | Input (Color32) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputDisableDamageForces | Input (Void) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputDisableShadow | Input (Void) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputDispatchEffect | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputDispatchResponse | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputEnableDamageForces | Input (Void) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputEnableShadow | Input (Void) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputFireUser1 | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputFireUser2 | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputFireUser3 | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputFireUser4 | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputKill | Input (Void) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputKillHierarchy | Input (Void) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputRemoveContext | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputSetDamageFilter | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputSetParent | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputSetParentAttachment | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputSetParentAttachmentMaintainOffset | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputSetTeam | Input (Integer) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputUse | Input (Void) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputRunScriptFile | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputRunScript | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputCallScriptFunction | Input (String) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InputTerminateScriptScope | Input (Void) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_CollisionGroup | Integer | Modifies what this entity collides with.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_ModelName | String | The model path and name for this entity | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_MoveCollide | Char | Determines the collision behavior for this entity.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_MoveType | Char | Determines the movement behavior for this entity.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_OnUser1 | Output | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_OnUser2 | Output | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_OnUser3 | Output | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_OnUser4 | Output | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_ResponseContexts | Vector | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_aThinkFunctions | Vector | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_angAbsRotation | Vector | The rotation vector of this entity relative to the world. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_angRotation | Vector | The rotation vector of this entity relative to it's parent. If it has no parent the vector will be relative to the world. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_bAlternateSorting | Boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_bAnimatedEveryTick | Boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_bSimulatedEveryTick | Boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_clrRender | Integer | An integer representing the RGB render color of this entity.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_debugOverlays | Integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_fEffects | Integer | Entity effects bit flags.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_fFlags | Integer | Entity bit flags (Different from m_iEFlags)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flAnimTime | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flDesiredShadowCastDistance | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flElasticity | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flFriction | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flGravity | Float | A modifier for the gravity of this entity. 0 does not mean "zero gravity", but rather it means this datamap does not modify anything. 1 is normal gravity. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flGroundChangeTime | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flLocalTime | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flMoveDoneTime | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flNavIgnoreUntilTime | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flPrevAnimTime | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flShadowCastDistance | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flSimulationTime | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flSpeed | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_flVPhysicsUpdateLocalTime | Float | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_hDamageFilter | Handle | The entity used as a damage filter for this entity. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_hEffectEntity | Handle | The entity which is used to affect this one. (Ignite/Dissolve) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_hGroundEntity | Handle | The entity this entity is standing / laying on. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_hMoveChild | Handle | The first immediate child of this entity in the movement hierarchy. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_hMoveParent | Handle | The immediate parent of this entity in the movement hierarchy. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_hMovePeer | Handle | The next immediate sibling (entity with the same parent) of this entity in the movement hierarchy. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_hOwnerEntity | Handle | The owner of this entity, not to be confused with the parent (moveparent). A common example of ownership is players owning the projectiles that they fire. Some entities may not work properly if you create them without giving them an owner. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iClassname | String | The class name of this entity (not the C++ Class name). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iEFlags | Integer | Entity bit flags (Different from m_fFlags)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iGlobalname | String | A string used to preserve entity state between map changes. When a map change is initiated, this entity will have it's entity state transferred over to entities in the new map with global names matching this one. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iHammerID | Integer | An ID unique to the entity type (if it's a brush it'll be unique between all brushes). An entity will only have a Hammer ID if it was compiled with the map (if it's not dynamically spawned). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iHealth | Integer | The current health of this entity. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iInitialTeamNum | Integer | The initial team this entity is a part of when it spawns. For players this is just 0.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iMaxHealth | Integer | The max health of this entity. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iName | String | The targetname of this entity. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iParent | String | The targetname of the parent of this entity. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iParentAttachment | Char | The attachment point on the parent entity which this entity is held to. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iTeamNum | Integer | The team this entity is a part of.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iTextureFrameIndex | Char | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iszDamageFilterName | String | The targetname of the damage filter for this entity. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iszResponseContext | String | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_lifeState | Char | Am I alive?
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nLastThinkTick | Integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nModelIndex | Short | The index for this entity's precached model. Changing this does nothing in TF2. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nModelIndexOverrides | Array (Integer) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nNextThinkTick | Integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nRenderFX | Char | Alpha render effects enum.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nRenderMode | Char | The mode in which this entity should attempt to be rendered.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nSimulationTick | Integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nTransmitStateOwnedCounter | Char | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nWaterLevel | Char | How far this entity is submerged in water. For players, the values are like so:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_nWaterType | Char | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_pBlocker | Handle | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_pParent | Handle | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_pPhysicsObject | Handle | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_pfnBlocked | Function | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_pfnMoveDone | Function | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_pfnThink | Function | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_pfnTouch | Function | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_pfnUse | Function | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_rgflCoordinateFrame | Array (Float) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_spawnflags | Integer | The spawnflags for this entity. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_takedamage | Char | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_target | String | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_vecAbsOrigin | Vector | The absolute position of this entity relative to the world. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_vecAbsVelocity | Vector | The absolute velocity of this entity relative to the world. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_vecAngVelocity | Vector | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_vecBaseVelocity | Vector | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_vecOrigin | Vector | The local position of this entity relative to it's parent. If this entity has no parent, the position is relative to the world | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_vecVelocity | Vector | The local velocity of this entity relative to it's parent. If this entity has no parent, the velocity is relative to the world. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_vecViewOffset | Vector | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
touchStamp | Integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iszScriptId | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iszVScripts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_iszScriptThinkFunction | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
m_bForcePurgeFixedupStrings |