AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Player Glow V1.4 (https://forums.alliedmods.net/showthread.php?t=95435)

ƒa†es™ 06-23-2009 15:08

Player Glow V1.4
 
2 Attachment(s)
Player Glow V1.4

Description:
This Plugin Makes Player Glow On 10 Different Colours Every 3 Seconds Which Means Every 3 Second The Colour Will Change.

Commands:
Code:

amx_techno "1|0" 1 = Enable | 0 = Disable
Credits:
minimiller - Thanks For The Random Codes. :)
xPaw - Thanks For The Link. :)
SnoW - Thanks For Your Help. :)

Updates:
Code:

V1.4 - Fix some codes.

Duracell_sk8 06-23-2009 15:38

Re: Player Glow V1.0
 
In next version , you can add a trail for players!
Red for Tero - Blue for CT :P !
It`s just an ideea :P !
You can add a menu whit glow colors or a random color for players when round starts everybody have a random color!

Good job man! :comply:

Xellath 06-23-2009 15:39

Re: Player Glow V1.0
 
PHP Code:

switch(random_num(1,8)) 

10 cases..?

Instead of all those cases, you could just do this to get random colors.

PHP Code:

fm_set_rendering(idkRenderFxGlowShellrandom(255), random(255), random(255), kRenderNormal16); 

set_user_rendering from fun could be used instead, it's more efficient.

IMO you should rename the cvar to something more appropiate, like amx_randomglow, for example.

EDIT:
You shouldn't set a task in client_connect, may cause trouble. Hook spawn or new round instead.

zacky 06-23-2009 15:43

Re: Player Glow V1.0
 
He probably don't want to add engine, so he could use those:
PHP Code:

set_pev(idpev_renderfxkRenderFxGlowShell);
set_pev(idpev_rendercolor, {random_num(0255), random_num(0255), random_num(0255)});
set_pev(idpev_rendermodekRenderNormal);
set_pev(idpev_renderamt16); 

EDIT: Sorry, i meant fun.

ConnorMcLeod 06-23-2009 15:44

Re: Player Glow V1.0
 
Servers that gonna use this plugin gonna be spammed in logs with not valid pev errors.


Quote:

Originally Posted by zacky (Post 855298)
He probably don't want to add engine, so he could use those:
PHP Code:

set_pev(idpev_renderfxkRenderFxGlowShell);
set_pev(idpev_rendercolor, {random_num(0255), random_num(0255), random_num(0255)});
set_pev(idpev_rendermodekRenderNormal);
set_pev(idpev_renderamt16); 


renderamt is float.
PHP Code:

set_pev(idpev_rendercolor, {random_float(0255), random_float(0255), random_float(0255)});

set_pev(idpev_renderamt16.0); 

fun is still better.

SnoW 06-23-2009 15:45

Re: Player Glow V1.0
 
Quote:

Originally Posted by zacky (Post 855298)
He probably don't want to add engine, so he could use those:
PHP Code:

set_pev(idpev_renderfxkRenderFxGlowShell);
set_pev(idpev_rendercolor, {random_num(0255), random_num(0255), random_num(0255)});
set_pev(idpev_rendermodekRenderNormal);
set_pev(idpev_renderamt16); 


set_user_rendering is a native of fun module.

Xellath 06-23-2009 15:45

Re: Player Glow V1.0
 
Quote:

Originally Posted by zacky (Post 855298)
He probably don't want to add engine, so he could use those:
PHP Code:

set_pev(idpev_renderfxkRenderFxGlowShell);
set_pev(idpev_rendercolor, {random_num(0255), random_num(0255), random_num(0255)});
set_pev(idpev_rendermodekRenderNormal);
set_pev(idpev_renderamt16); 


There is no need to add engine.

EDIT:
Wow, you guys are fast!

ƒa†es™ 06-24-2009 03:59

Re: Player Glow V1.0
 
Quote:

Originally Posted by Duracell_sk8 (Post 855294)
In next version , you can add a trail for players!
Red for Tero - Blue for CT :P !
It`s just an ideea :P !
You can add a menu whit glow colors or a random color for players when round starts everybody have a random color!

Good job man! :comply:

Thanks, I will try my best :)

Quote:

Originally Posted by Xellath (Post 855296)
PHP Code:

switch(random_num(1,8)) 

10 cases..?

Instead of all those cases, you could just do this to get random colors.

PHP Code:

fm_set_rendering(idkRenderFxGlowShellrandom(255), random(255), random(255), kRenderNormal16); 

set_user_rendering from fun could be used instead, it's more efficient.

IMO you should rename the cvar to something more appropiate, like amx_randomglow, for example.

EDIT:
You shouldn't set a task in client_connect, may cause trouble. Hook spawn or new round instead.

Sorry for my mistake. Update V1.1

Arkshine 06-24-2009 04:32

Re: Player Glow V1.0
 
Use set_user_rendering() from fun and not the fakemeta version.

xPaw 06-24-2009 04:50

Re: Player Glow V1.0
 
http://forums.alliedmods.net/showthread.php?p=143706


All times are GMT -4. The time now is 00:29.

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