CSprite: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
...
This entity represents a generic [https://developer.valvesoftware.com/wiki/Sprite sprite].


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


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


==[[SendProps|Class Structure]]==
==[[Classes|Class Structure]]==
*'''[[CBaseEntity]]'''
*'''[[CBaseEntity]]'''
**'''[[CBaseAnimating]]'''
**'''CSprite'''
***'''[[CBaseAnimatingOverlay]]'''
****'''[[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;"
|+CSprite  
|+CSprite  
! style="width: 50%; background-color: #303030; color: white" |Name  
! style="width: 50%; background-color: #303030; color: white" |Name  
Line 64: Line 59:
| style="width: 50%;" |'''m_bWorldSpaceScale'''
| style="width: 50%;" |'''m_bWorldSpaceScale'''
| style="width: 15%;" |Boolean
| style="width: 15%;" |Boolean
| style="width: 35%;" |
|}
== Entity DataMaps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+CSprite
! 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%;" |'''CSpriteAnimateThink'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CSpriteAnimateUntilDead'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CSpriteBeginFadeOutThink'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''CSpriteExpandThink'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputColorBlueValue'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputColorGreenValue'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputColorRedValue'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputHideSprite'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputShowSprite'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''InputToggleSprite'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_bWorldSpaceScale'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flBrightnessTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flBrightnessTimeStart'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flDestScale'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flDieTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flFrame'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flGlowProxySize'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flHDRColorScale'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flLastTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flMaxFrame'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flScaleTime'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flScaleTimeStart'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flSpriteFramerate'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flSpriteScale'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_flStartScale'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_hAttachedToEntity'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nAttachment'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nBrightness'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nDestBrightness'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_nStartBrightness'''
| style="width: 15%;" |
| style="width: 35%;" |
| style="width: 35%;" |
|}
|}

Latest revision as of 18:13, 10 August 2022

Overview[edit | edit source]

This entity represents a generic sprite.

Source location : /game/shared/Sprite.h

Linked Entity : env_sprite

Class Structure[edit | edit source]

SendProps[edit | edit source]

CSprite
Name Type Description
m_hAttachedToEntity Integer
m_nAttachment Integer
m_flScaleTime Float
m_flSpriteScale Float
m_flGlowProxySize Float
m_flHDRColorScale Float
m_flSpriteFramerate Float
m_flFrame Float
m_flBrightnessTime Float
m_nBrightness Integer
m_bWorldSpaceScale Boolean

Entity DataMaps[edit | edit source]

CSprite
Name Type Description
CSpriteAnimateThink
CSpriteAnimateUntilDead
CSpriteBeginFadeOutThink
CSpriteExpandThink
InputColorBlueValue
InputColorGreenValue
InputColorRedValue
InputHideSprite
InputShowSprite
InputToggleSprite
m_bWorldSpaceScale
m_flBrightnessTime
m_flBrightnessTimeStart
m_flDestScale
m_flDieTime
m_flFrame
m_flGlowProxySize
m_flHDRColorScale
m_flLastTime
m_flMaxFrame
m_flScaleTime
m_flScaleTimeStart
m_flSpriteFramerate
m_flSpriteScale
m_flStartScale
m_hAttachedToEntity
m_nAttachment
m_nBrightness
m_nDestBrightness
m_nStartBrightness