AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   fm_set_user_rendering (https://forums.alliedmods.net/showthread.php?t=228695)

Gior 10-25-2013 10:16

fm_set_user_rendering
 
Hi,

Can someone explain me about fm_set_user_rendring parameters?

Thank You :)

YamiKaitou 10-25-2013 10:20

Re: fm_set_user_rendering
 
Don't use it, stick with set_user_rendering

Gior 10-25-2013 10:24

Re: fm_set_user_rendering
 
Quote:

Originally Posted by YamiKaitou (Post 2052737)
Don't use it, stick with set_user_rendering

What's the difference?
but I still need the parameters..

YamiKaitou 10-25-2013 10:27

Re: fm_set_user_rendering
 
fm_ natives are inefficient and should not be used.

As for the parameters, look at the function header and the comment block above it

Gior 10-25-2013 10:50

Re: fm_set_user_rendering
 
Quote:

Originally Posted by YamiKaitou (Post 2052741)
fm_ natives are inefficient and should not be used.

As for the parameters, look at the function header and the comment block above it

I need explanation about the second and the third parameter(kRenderFxNone and kRenderNormal)
because i saw in other code this:
Code:

kRenderFxGlowShell
instead of kRenderFxNone

and this:
Code:

kRenderTransAlpha
instead of kRenderNormal

Can you explain me about the options and what they do in this two parameters?

YamiKaitou 10-25-2013 10:57

Re: fm_set_user_rendering
 
The values are listed in amxconst.inc

lein 10-27-2013 14:29

Re: fm_set_user_rendering
 
Quote:

Originally Posted by YamiKaitou (Post 2052741)
fm_ natives are inefficient and should not be used.

As for the parameters, look at the function header and the comment block above it

There must be many people against you!
I don't thing fm is inefficient!
But the fun module is really low level!

I suggest using these:
PHP Code:

stock fm_set_rendering(entityfx kRenderFxNone255255255render kRenderNormalamount 16) {
    new 
Float:RenderColor[3];
    
RenderColor[0] = float(r);
    
RenderColor[1] = float(g);
    
RenderColor[2] = float(b);

    
set_pev(entitypev_renderfxfx);
    
set_pev(entitypev_rendercolorRenderColor);
    
set_pev(entitypev_rendermoderender);
    
set_pev(entitypev_renderamtfloat(amount));

    return 
1;



ConnorMcLeod 10-27-2013 16:00

Re: fm_set_user_rendering
 
Quote:

Originally Posted by lein (Post 2053535)
There must be many people against you!

Those people don't know what they are talking about.
Mainly ZP scripters lol.

You should read this : https://forums.alliedmods.net/showthread.php?t=88792

set_user_rendering seems 5 times faster than fm_set_user_rendering.


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

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