CTEDust: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
A dust puff particle, it can be quite hard to see at when m_flSize is high.
A dust puff particle, it can be quite hard to see when m_flSize is high.


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


<pre>
<pre>
tempents.Send("Dust", {m_vecOrigin=origin,
tempents.Send("Dust", {m_vecOrigin=Vector(0, 0, 0),
                       m_flSize=20,
                       m_flSize=20,
                       m_flSpeed=10,
                       m_flSpeed=10,
                       m_vecDirection=Vector(0, 0, 0)}, nil);
                       m_vecDirection=Vector(0, 0, 0)}, nil);
</pre>
</pre>
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
|+Preview
|-
|[[File:CTEDust.mp4|border|center|640x360px]]
|}


==[[Classes|Class Structure]]==
==[[Classes|Class Structure]]==
Line 33: Line 39:
| style="width: 50%;" |'''m_vecDirection'''
| style="width: 50%;" |'''m_vecDirection'''
| style="width: 15%;" |Vector
| style="width: 15%;" |Vector
| style="width: 35%;" |The direction the particle will emit towards
| style="width: 35%;" |A positional vector for the direction this particle will emit towards (Not an angular vector)
|}
|}

Latest revision as of 23:10, 27 November 2022

Overview[edit | edit source]

A dust puff particle, it can be quite hard to see when m_flSize is high.

Source location : /game/server/func_dust.cpp

tempents.Send("Dust", {m_vecOrigin=Vector(0, 0, 0),
                       m_flSize=20,
                       m_flSpeed=10,
                       m_vecDirection=Vector(0, 0, 0)}, nil);
Preview

Class Structure[edit | edit source]

SendProps[edit | edit source]

CTEDust
Name Type Description
m_flSize Float The size of the particle
m_flSpeed Float
m_vecDirection Vector A positional vector for the direction this particle will emit towards (Not an angular vector)