AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   simple, efficient, glow in function (https://forums.alliedmods.net/showthread.php?t=233706)

Shockblade 01-19-2014 04:51

simple, efficient, glow in function
 
Hello,
How can I set simple, efficient, glow for each person in function?

GuskiS 01-19-2014 06:51

Re: simple, efficient, glow in function
 
set_user_rendering

hornet 01-19-2014 19:58

Re: simple, efficient, glow in function
 
Is this a request for a plugin or are you trying to learn?

Shockblade 01-22-2014 12:15

Re: simple, efficient, glow in function
 
Quote:

Originally Posted by hornet (Post 2088273)
Is this a request for a plugin or are you trying to learn?

What? I know only one method... and there is more and i dont know which is the best...

hornet 01-22-2014 18:29

Re: simple, efficient, glow in function
 
Quote:

Originally Posted by GuskiS (Post 2088022)
set_user_rendering


Leonidddd 01-24-2014 04:44

Re: simple, efficient, glow in function
 
PHP Code:

stock fm_set_rendering(entityfx kRenderFxNone255255255render kRenderNormalamount 16)
{
    static 
Float:color[3]
    
color[0] = float(r)
    
color[1] = float(g)
    
color[2] = float(b)
    
    
set_pev(entitypev_renderfxfx)
    
set_pev(entitypev_rendercolorcolor)
    
set_pev(entitypev_rendermoderender)
    
set_pev(entitypev_renderamtfloat(amount))


Maybe it will be better?

guipatinador 01-24-2014 04:49

Re: simple, efficient, glow in function
 
No.

set_user_rendering - players
fm_set_rendering - players / entities

Leonidddd 01-24-2014 04:54

Re: simple, efficient, glow in function
 
Okey,thanks.

hornet 01-24-2014 05:30

Re: simple, efficient, glow in function
 
Quote:

Originally Posted by Leonidddd (Post 2090247)
PHP Code:

stock fm_set_rendering(entityfx kRenderFxNone255255255render kRenderNormalamount 16)
{
    static 
Float:color[3]
    
color[0] = float(r)
    
color[1] = float(g)
    
color[2] = float(b)
    
    
set_pev(entitypev_renderfxfx)
    
set_pev(entitypev_rendercolorcolor)
    
set_pev(entitypev_rendermoderender)
    
set_pev(entitypev_renderamtfloat(amount))


Maybe it will be better?

Most definitely not - your calling 4 natives to achieve the same result of which can be achieved with 1 native.


All times are GMT -4. The time now is 10:06.

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