AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   3 different colour aura (https://forums.alliedmods.net/showthread.php?t=95071)

ƒa†es™ 06-19-2009 02:39

3 different colour aura
 
I was wondering how do i add 3 different colour aura during the same time.

which mean there will be Red, Blue, Green during the same time, it depends

PHP Code:

        static Float:originF[3]            
        
pev(idpev_originoriginF)
        
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
        
write_byte(TE_DLIGHT// TE id
        
engfunc(EngFunc_WriteCoordoriginF[0]) // x
        
engfunc(EngFunc_WriteCoordoriginF[1]) // y
        
engfunc(EngFunc_WriteCoordoriginF[2]) // z
        
write_byte(50// radius
        
write_byte(0// r
        
write_byte(225// g
        
write_byte(0)  // b 
        
write_byte(2// life
        
write_byte(0// decay rate
        
message_end() 

If i change those colour like this:

PHP Code:

        write_byte(225// r
        
write_byte(225// g
        
write_byte(255)  // b 

it will mix the colour so it will be white for this case.

so now the question is how do i prevent the colour from mixing ?


All times are GMT -4. The time now is 15:35.

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