Editing CTEBloodStream

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
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 : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/te_bloodstream.cpp /game/server/te_bloodstream.cpp]'''
<code>
 
local origin = player:GetAbsOrigin();
<pre>
origin.z = origin.z + 8;
tempents.Send("Blood Stream", {m_vecOrigin=Vector(0, 0, 0),
tempents.Send("Blood Stream", {m_vecOrigin=origin,
                               r=255,
                               r=255,
                               g=0,
                               g=255,
                               b=0,
                               b=0,
                               a=255,
                               a=255,
                               m_nAmount=100,
                               m_nAmount=100,
                               m_vecDirection=Vector(0, 90, 0)}, nil);
                               m_vecDirection=Vector(0, 0, 0)}, nil);
</pre>
</code>


{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;"
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/te_bloodstream.cpp /game/server/te_bloodstream.cpp]'''
|+Preview
|-
|[[File:CTEBloodStream.mp4|border|center|640x360px]]
|}


==[[Classes|Class Structure]]==
==[[Classes|Class Structure]]==
Line 34: Line 30:
| style="width: 50%;" |'''m_vecDirection'''
| style="width: 50%;" |'''m_vecDirection'''
| style="width: 15%;" |Vector
| style="width: 15%;" |Vector
| style="width: 35%;" |A positional vector for the direction this particle will emit towards (Not an angular vector)
| style="width: 35%;" |
|-
|-
| style="width: 50%;" |'''r'''
| style="width: 50%;" |'''r'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |The red color value
| style="width: 35%;" |
|-
|-
| style="width: 50%;" |'''g'''
| style="width: 50%;" |'''g'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |The green color value
| style="width: 35%;" |
|-
|-
| style="width: 50%;" |'''b'''
| style="width: 50%;" |'''b'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |The blue color value
| style="width: 35%;" |
|-
|-
| style="width: 50%;" |'''a'''
| style="width: 50%;" |'''a'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |The alpha value (transparency)
| style="width: 35%;" |
|-
|-
| style="width: 50%;" |'''m_nAmount'''
| style="width: 50%;" |'''m_nAmount'''
| style="width: 15%;" |Integer
| style="width: 15%;" |Integer
| style="width: 35%;" |How much should be emitted
| style="width: 35%;" |
|}
|}
Please note that all contributions to SigMod are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see SigMod:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)