CTEBloodStream: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
A blood particle trail, the texture of which seems to be missing as it uses the missing texture purple and black. | |||
'''Source location : ...''' | '''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/te_bloodstream.cpp /game/server/te_bloodstream.cpp]''' | ||
<pre> | |||
tempents.Send("Blood Stream", {m_vecOrigin=Vector(0, 0, 0), | |||
r=255, | |||
g=0, | |||
b=0, | |||
a=255, | |||
m_nAmount=100, | |||
m_vecDirection=Vector(0, 90, 0)}, nil); | |||
</pre> | |||
== | {| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | ||
|+Preview | |||
|- | |||
|[[File:CTEBloodStream.mp4|border|center|640x360px]] | |||
|} | |||
==[[Classes|Class Structure]]== | |||
*'''[[CBaseTempEntity]]''' | |||
**'''[[CTEParticleSystem]]''' | |||
***'''CTEBloodStream''' | |||
== 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;" | ||
|+CTEBloodStream | |+CTEBloodStream | ||
! style="width: 50%; background-color: #303030; color: white" |Name | ! style="width: 50%; background-color: #303030; color: white" |Name | ||
Line 24: | Line 34: | ||
| 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) | ||
|- | |- | ||
| style="width: 50%;" |'''r''' | | style="width: 50%;" |'''r''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |The red color value | ||
|- | |- | ||
| style="width: 50%;" |'''g''' | | style="width: 50%;" |'''g''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |The green color value | ||
|- | |- | ||
| style="width: 50%;" |'''b''' | | style="width: 50%;" |'''b''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |The blue color value | ||
|- | |- | ||
| style="width: 50%;" |'''a''' | | style="width: 50%;" |'''a''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |The alpha value (transparency) | ||
|- | |- | ||
| style="width: 50%;" |'''m_nAmount''' | | style="width: 50%;" |'''m_nAmount''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |How much should be emitted | ||
|} | |} |
Latest revision as of 23:07, 27 November 2022
Overview[edit | edit source]
A blood particle trail, the texture of which seems to be missing as it uses the missing texture purple and black.
Source location : /game/server/te_bloodstream.cpp
tempents.Send("Blood Stream", {m_vecOrigin=Vector(0, 0, 0), r=255, g=0, b=0, a=255, m_nAmount=100, m_vecDirection=Vector(0, 90, 0)}, nil);
Class Structure[edit | edit source]
- CBaseTempEntity
- CTEParticleSystem
- CTEBloodStream
- CTEParticleSystem
SendProps[edit | edit source]
Name | Type | Description |
---|---|---|
m_vecDirection | Vector | A positional vector for the direction this particle will emit towards (Not an angular vector) |
r | Integer | The red color value |
g | Integer | The green color value |
b | Integer | The blue color value |
a | Integer | The alpha value (transparency) |
m_nAmount | Integer | How much should be emitted |