CTESparks: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
...
A simple spark particle.


'''Source location : ...'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/te_sparks.cpp /game/server/te_sparks.cpp]'''


'''Linked entity : ...'''
<pre>
tempents.Send("Sparks", {m_vecOrigin=Vector(0, 0, 0),
                        m_nMagnitude=2,
                        m_nTrailLength=1,
                        m_vecDir=Vector(0, 0, 0)}, nil);
</pre>


==[[SendProps|Class Structure]]==
==[[Classes|Class Structure]]==
*'''[[CBaseEntity]]'''
*'''[[CBaseTempEntity]]'''
**'''[[CBaseAnimating]]'''
**'''[[CTEParticleSystem]]'''
***'''[[CBaseAnimatingOverlay]]'''
***'''CTESparks'''
****'''[[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;"
|+CTESparks  
|+CTESparks  
! style="width: 50%; background-color: #303030; color: white" |Name  
! style="width: 50%; background-color: #303030; color: white" |Name  
Line 24: Line 25:
| style="width: 50%;" |'''m_nMagnitude'''
| style="width: 50%;" |'''m_nMagnitude'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |How large the base sphere for the spark particle is
|-
|-
| style="width: 50%;" |'''m_nTrailLength'''
| style="width: 50%;" |'''m_nTrailLength'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |
| style="width: 35%;" |How long the spark trails flung from the base sphere are
|-
|-
| style="width: 50%;" |'''m_vecDir'''
| style="width: 50%;" |'''m_vecDir'''
| style="width: 15%;" |Vector
| style="width: 15%;" |Vector
| style="width: 35%;" |
| style="width: 35%;" |A positional vector for the direction this particle will emit towards (Not an angular vector)
|}
|}

Latest revision as of 22:07, 27 November 2022

Overview[edit | edit source]

A simple spark particle.

Source location : /game/server/te_sparks.cpp

tempents.Send("Sparks", {m_vecOrigin=Vector(0, 0, 0),
                         m_nMagnitude=2,
                         m_nTrailLength=1,
                         m_vecDir=Vector(0, 0, 0)}, nil);

Class Structure[edit | edit source]

SendProps[edit | edit source]

CTESparks
Name Type Description
m_nMagnitude Integer How large the base sphere for the spark particle is
m_nTrailLength Integer How long the spark trails flung from the base sphere are
m_vecDir Vector A positional vector for the direction this particle will emit towards (Not an angular vector)