Color255: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(reverted to prev revision)
Line 4: Line 4:
<code>RED GREEN BLUE</code>
<code>RED GREEN BLUE</code>


<pre>
===Examples:===
give env_Smokestack1
 
ent_fire env_smokestack addoutput "classname smoky"
:Red = "<code>255 0 0</code>"
ent_Fire smoky addoutput "basespread 50"
 
ent_Fire smoky addoutput "spreadspeed 50"
:Green = "<code>0 255 0</code>"
ent_Fire smoky addoutput "initialstate 1"
 
ent_Fire smoky addoutput "speed 300"
:Blue = "<code>0 0 255</code>"
ent_Fire smoky addoutput "startsize 25"
 
ent_Fire smoky addoutput "endsize 30"
:Orange = "<code>255 128 0</code>"
ent_Fire smoky addoutput "rate 20"
 
ent_Fire smoky addoutput "jetlength 500"
Hammer allows for [[integer]]s (possibly [[string]]s and [[real |float]]s too) to be appended to the color255.  This is used by light entities to store their brightness.
ent_Fire smoky addoutput "twist 200"
ent_Fire smoky addoutput "angles 10 0 0"
ent_Fire smoky addoutput "rendermode 2"
ent_Fire smoky addoutput "renderamt 255"
ent_fire smoky addoutput "rendermode 1"
ent_Fire smoky addoutput "rendercolor 125 80 51"
ent_Fire smoky addoutput "smokematerial effects/blueblackflash.vmt"
ent_fire smoky turnon
ent_fire smoky setparent !activator
</pre>

Revision as of 13:17, 18 June 2007

(not a c++ variable)

A string of three bytes (0-255) separated by spaces: RED GREEN BLUE

Examples:

Red = "255 0 0"
Green = "0 255 0"
Blue = "0 0 255"
Orange = "255 128 0"

Hammer allows for integers (possibly strings and floats too) to be appended to the color255. This is used by light entities to store their brightness.