Thread: [Solved] How to edit color of this?
View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-21-2022 , 12:26   Re: How to edit color of this?
Reply With Quote #2

Quote:
Originally Posted by wizzkidon View Post


Can anyone tell me how i can change the color (like on photo) of this? --in photo was green--
I found this:

PHP Code:
InfectionEffects(id)
{
    
//if (get_pcvar_num(cvar_infect_screen_shake))
    
{
        
message_begin(MSG_ONEgmsgScreenShake_id);
        
write_short((1<<12) * 4);
        
write_short((1<<12) * 2);
        
write_short((1<<12) * 10);
        
message_end();
    }
    
    new 
Float:vecOrigin[3];
    
get_entvar(idvar_originvecOrigin);
    
    
//if (get_pcvar_num(cvar_infect_tracers))
    
{
        
message_begin_f(MSG_PVSSVC_TEMPENTITYvecOrigin);
        
TE_Implosion(vecOrigin128203);
    }
    
    
//if (get_pcvar_num(cvar_infect_particles))
    
{
        
message_begin_f(MSG_PVSSVC_TEMPENTITYvecOrigin);
        
TE_ParticleBurst(vecOrigin50703);
    }
    
    new 
cvar_infect_sparkle_color[3] = { 0150};

    
//if (get_pcvar_num(cvar_infect_sparkle))
    
{
        
message_begin_f(MSG_PVSSVC_TEMPENTITYvecOrigin);
        
TE_DLight(vecOrigin20cvar_infect_sparkle_color20);
    }
}

TE_Implosion(Float:position[3], radiuscountlife)
{
    
write_byte(TE_IMPLOSION);
    
write_coord_f(position[0]); // position.x
    
write_coord_f(position[1]); // position.y
    
write_coord_f(position[2]); // position.z
    
write_byte(radius); // radius
    
write_byte(count); // count
    
write_byte(life); // life in 0.1's
    
message_end();
}

TE_ParticleBurst(Float:origin[3], radiusparticleColorduration)
{
    
write_byte(TE_PARTICLEBURST);
    
write_coord_f(origin[0]); // origin
    
write_coord_f(origin[1]);
    
write_coord_f(origin[2]);
    
write_short(radius); // radius
    
write_byte(particleColor); // particle color
    
write_byte(duration); // duration * 10 (will be randomized a bit)
    
message_end();
}

TE_DLight(Float:position[3], radiuscolor[3], lifedecayRate)
{
    
write_byte(TE_DLIGHT);
    
write_coord_f(position[0]); // position.x
    
write_coord_f(position[1]); // position.y
    
write_coord_f(position[2]); // position.z
    
write_byte(radius); // radius in 10's
    
write_byte(color[0]); // red
    
write_byte(color[1]); // green
    
write_byte(color[2]); // blue
    
write_byte(life); // life in 10's
    
write_byte(decayRate); // decay rate in 10's
    
message_end();

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline