AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Solved How to edit color of this? (https://forums.alliedmods.net/showthread.php?t=338250)

wizzkidon 06-21-2022 12:09

How to edit color of this?
 
--edited--

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

Supremache 06-21-2022 12:26

Re: How to edit color of this?
 
Quote:

Originally Posted by wizzkidon (Post 2782067)
https://i.imgur.com/tZC9MpV.jpg

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();



wizzkidon 06-21-2022 14:00

Re: How to edit color of this?
 
Quote:

Originally Posted by Supremache (Post 2782068)
I found this:


I recive some errors when i'm trying to compile it:

Code:

deadcolor.sma(1) : warning 203: symbol is never used: "InfectionEffects"
deadcolor.sma(32) : warning 203: symbol is never used: "TE_DLight"
deadcolor.sma(18) : warning 203: symbol is never used: "TE_Implosion"
deadcolor.sma(24) : warning 203: symbol is never used: "TE_ParticleBurst"
deadcolor.sma(73) : error 013: no entry point (no public functions)


OciXCrom 06-21-2022 16:14

Re: How to edit color of this?
 
Because it's not a plugin, it's a snippet that you can use.
You cannot change the color of those icons.

LiZou Mapper 06-21-2022 20:43

Re: How to edit color of this?
 
I added this in Zombie Escape Mod, it works

Code:
PHP Code:

// Death Message
message_begin(MSG_ALL83)
write_byte(iAttacker// killer
write_byte(iVictim// victim
write_byte(1// headshot flag
write_string("teammate"// killer's weapon
message_end() 


wizzkidon 06-23-2022 04:36

Re: How to edit color of this?
 
Quote:

Originally Posted by OciXCrom (Post 2782087)
Because it's not a plugin, it's a snippet that you can use.
You cannot change the color of those icons.

Yes you can. I found a lot of server who use a lot of colors of this icons.

Natsheh 06-23-2022 06:45

Re: How to edit color of this?
 
Why are you people ( Lizou ) hard coding things up?

Anywho changing deathmsg hud is impossible to be done by the server because its limited and its client side only.

wizzkidon 06-23-2022 13:04

Re: How to edit color of this?
 
Quote:

Originally Posted by OciXCrom (Post 2782087)
Because it's not a plugin, it's a snippet that you can use.
You cannot change the color of those icons.

Done. Someone help me to make this plugin. Thank you for answers.


All times are GMT -4. The time now is 21:51.

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