Raised This Month: $ Target: $400
 0% 

Player Glow V1.4


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 06-23-2009 , 15:43   Re: Player Glow V1.0
Reply With Quote #1

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.

Last edited by zacky; 06-23-2009 at 15:47.
zacky is offline
Send a message via Skype™ to zacky
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 06-23-2009 , 15:45   Re: Player Glow V1.0
Reply With Quote #2

Quote:
Originally Posted by zacky View Post
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.
SnoW is offline
Send a message via MSN to SnoW
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 06-23-2009 , 15:45   Re: Player Glow V1.0
Reply With Quote #3

Quote:
Originally Posted by zacky View Post
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!
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
ƒa†es™
Senior Member
Join Date: May 2009
Location: Garena
Old 06-24-2009 , 03:59   Re: Player Glow V1.0
Reply With Quote #4

Quote:
Originally Posted by Duracell_sk8 View Post
In next version , you can add a trail for players!
Red for Tero - Blue for CT !
It`s just an ideea !
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!
Thanks, I will try my best

Quote:
Originally Posted by Xellath View Post
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
__________________
ƒa†es™ is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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