Raised This Month: $ Target: $400
 0% 

fm_set_user_rendering


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gior
Member
Join Date: Sep 2013
Location: Israel
Old 10-25-2013 , 10:16   fm_set_user_rendering
Reply With Quote #1

Hi,

Can someone explain me about fm_set_user_rendring parameters?

Thank You
Gior is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-25-2013 , 10:20   Re: fm_set_user_rendering
Reply With Quote #2

Don't use it, stick with set_user_rendering
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Gior
Member
Join Date: Sep 2013
Location: Israel
Old 10-25-2013 , 10:24   Re: fm_set_user_rendering
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
Don't use it, stick with set_user_rendering
What's the difference?
but I still need the parameters..

Last edited by Gior; 10-25-2013 at 10:24.
Gior is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-25-2013 , 10:27   Re: fm_set_user_rendering
Reply With Quote #4

fm_ natives are inefficient and should not be used.

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

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Gior
Member
Join Date: Sep 2013
Location: Israel
Old 10-25-2013 , 10:50   Re: fm_set_user_rendering
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
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?
Gior is offline
lein
Junior Member
Join Date: Mar 2013
Location: China
Old 10-27-2013 , 14:29   Re: fm_set_user_rendering
Reply With Quote #6

Quote:
Originally Posted by YamiKaitou View Post
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;

__________________

一切伟大的行动和梦想,都有一个微不足道的开始!
All great actions and dreams, there is a small start!
lein is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-27-2013 , 16:00   Re: fm_set_user_rendering
Reply With Quote #7

Quote:
Originally Posted by lein View Post
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.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-27-2013 at 16:01.
ConnorMcLeod is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-25-2013 , 10:57   Re: fm_set_user_rendering
Reply With Quote #8

The values are listed in amxconst.inc
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 23:21.


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