CSpriteTrail: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
...
Constantly emits a [https://developer.valvesoftware.com/wiki/Sprite sprite], which in turn will create a trail effect on movement.


'''Source location : ...'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/shared/SpriteTrail.h /game/shared/SpriteTrail.h]'''


'''Linked entity : ...'''
'''Linked Entity : [https://developer.valvesoftware.com/wiki/env_spritetrail env_spritetrail]'''


==[[SendProps|Class Structure]]==
==[[Classes|Class Structure]]==
*'''[[CBaseEntity]]'''
*'''[[CBaseEntity]]'''
**'''[[CBaseAnimating]]'''
**'''[[CSprite]]'''
***'''[[CBaseAnimatingOverlay]]'''
***'''CSpriteTrail'''
****'''[[CBaseFlex]]'''
*****'''[[CBaseCombatCharacter]]'''
******'''[[CBasePlayer]]'''
*******'''CTFPlayer'''


== SendProps ==
== SendProps ==
{| class="wikitable sortable" style="margin: 0 auto; width: 100%; padding: 0;"
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
|+CSpriteTrail  
|+CSpriteTrail  
! style="width: 50%; background-color: #303030; color: white" |Name  
! style="width: 50%; background-color: #303030; color: white" |Name  
Line 52: Line 48:
| style="width: 50%;" |'''m_flSkyboxScale'''
| style="width: 50%;" |'''m_flSkyboxScale'''
| style="width: 15%;" |Float
| style="width: 15%;" |Float
| style="width: 35%;" |
|}
== Entity DataMaps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+CSpriteTrail
! style="width: 50%; background-color: #303030; color: white" |Name
! style="width: 15%; background-color: #303030; color: white" |Type
! style="width: 35%; background-color: #303030; color: white" |Description
|-
| style="width: 50%;" |'''m_bAnimate'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flEndWidth'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flLifeTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flMinFadeLength'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flSkyboxScale'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flStartWidth'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flStartWidthVariance'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flTextureRes'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_iszSpriteName'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecSkyboxOrigin'''
| style="width: 15%;" |
| style="width: 35%;" |
| style="width: 35%;" |
|}
|}

Latest revision as of 18:15, 10 August 2022

Overview[edit | edit source]

Constantly emits a sprite, which in turn will create a trail effect on movement.

Source location : /game/shared/SpriteTrail.h

Linked Entity : env_spritetrail

Class Structure[edit | edit source]

SendProps[edit | edit source]

CSpriteTrail
Name Type Description
m_flLifeTime Float
m_flStartWidth Float
m_flEndWidth Float
m_flStartWidthVariance Float
m_flTextureRes Float
m_flMinFadeLength Float
m_vecSkyboxOrigin Vector
m_flSkyboxScale Float

Entity DataMaps[edit | edit source]

CSpriteTrail
Name Type Description
m_bAnimate
m_flEndWidth
m_flLifeTime
m_flMinFadeLength
m_flSkyboxScale
m_flStartWidth
m_flStartWidthVariance
m_flTextureRes
m_iszSpriteName
m_vecSkyboxOrigin