CTEDust: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(5 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 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> | |||
tempents.Send("Dust", {m_vecOrigin=Vector(0, 0, 0), | |||
m_flSize=20, | |||
m_flSpeed=10, | |||
m_vecDirection=Vector(0, 0, 0)}, nil); | |||
</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 10: | Line 23: | ||
== 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;" | ||
|+CTEDust | |+CTEDust | ||
! style="width: 50%; background-color: #303030; color: white" |Name | ! style="width: 50%; background-color: #303030; color: white" |Name | ||
Line 18: | Line 31: | ||
| style="width: 50%;" |'''m_flSize''' | | style="width: 50%;" |'''m_flSize''' | ||
| style="width: 15%;" |Float | | style="width: 15%;" |Float | ||
| style="width: 35%;" | | | style="width: 35%;" |The size of the particle | ||
|- | |- | ||
| style="width: 50%;" |'''m_flSpeed''' | | style="width: 50%;" |'''m_flSpeed''' | ||
Line 26: | Line 39: | ||
| style="width: 50%;" |'''m_vecDirection''' | | style="width: 50%;" |'''m_vecDirection''' | ||
| 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 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);
Class Structure[edit | edit source]
- CBaseTempEntity
- CTEParticleSystem
- CTEDust
- CTEParticleSystem
SendProps[edit | edit source]
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) |