AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Color Format (https://forums.alliedmods.net/showthread.php?t=17176)

v3x 08-26-2005 22:36

Color Format
 
What's the format for the color? Examples plz? :)
Code:

#define        TE_BLOODSTREAM                101                // particle spray
// coord coord coord (start position)
// coord coord coord (spray vector)
// byte (color)
// byte (speed)

#define TE_BLOOD                        103                // particle spray
// coord coord coord (start position)
// coord coord coord (spray vector)
// byte (color)
// byte (speed)


XxAvalanchexX 08-26-2005 22:46

It's a strange rainbow color format from 0-255

0 is red, 30 is orange, 45 is yellow, 70 is light green, 105 is tealish, 125 is light blue, 160 is blue, 175 is dark blue, 190 is purple, 215 is pink, 235 is maroon, 255 is red again

v3x 08-26-2005 22:50

Hmm, how'd you get those? :P

XxAvalanchexX 08-26-2005 22:52

Used the colorize feature in Game Maker, which is also in Adobe Photoshop.

v3x 08-26-2005 23:02

Rawr! I tried this but it doesn't seem to work:
Code:
//     new origin[3]     get_user_origin(id,origin)         message_begin(MSG_BROADCAST,SVC_TEMPENTITY);     write_byte( TE_BLOOD );     write_coord( origin[0] );     write_coord( origin[1] );     write_coord( origin[2] );     write_coord( origin[0] + 50 );     write_coord( origin[1] + 50 );     write_coord( origin[2] + 50 );     write_byte( 70 );     write_byte( 15 );     message_end();
EDIT: I think it showed up as red..

XxAvalanchexX 08-26-2005 23:31

Dunno, maybe I was wrong.

Batman/Gorlag 08-27-2005 03:57

What's the difference between TE_BLOOD and TE_BLOODSTREAM, don't they both generate blood?

Freecode 08-27-2005 03:59

BLOOD and BLOODSTREAM

Batman/Gorlag 08-27-2005 04:02

So, blood is like not much blood, and Stream is like a crapload of blood? just wondering, sorry for asking this. But once I know I won't have to ask again :D .

v3x 08-27-2005 04:04

Quote:

Originally Posted by Batman/Gorlag
What's the difference between TE_BLOOD and TE_BLOODSTREAM, don't they both generate blood?

Test it out in the Damage event. :D


All times are GMT -4. The time now is 14:22.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.