CSprite: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== Overview ==
== Overview ==
...
This entity creates a [https://developer.valvesoftware.com/wiki/Sprite sprite] in the world.


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

Revision as of 18:09, 10 August 2022

Overview

This entity creates a sprite in the world.

Source location : /game/shared/Sprite.h

Linked Entity : env_sprite

Class Structure

SendProps

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

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