Raised This Month: $ Target: $400
 0% 

set_rendering to FakeMeta


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
raphxyz
Member
Join Date: Oct 2005
Old 05-12-2007 , 08:17   set_rendering to FakeMeta
Reply With Quote #1

Hi all,
I seek to change this code to FakeMeta.

set_rendering( ent , kRenderFxNoDissipation , 0,255,0 , kRenderGlow , 255 )

i do that:
PHP Code:
set_pevent pev_rendercolor , {0.0255.00.0} )
set_pevent pev_renderfx kRenderTransColor 
But the black color of the ".spr" is not transparant and i have not the kRenderFxNoDissipation and the kRenderGlow.

Please Help me ;)

Thanks in advance.
__________________
Code:
                On the road again!
 |""""""""""""""""""| || _
 |      DUREX       |,|||_;\,___,
 |___ _    _  _____/==|_|_|_,'__|
  '  |(@))"(@))      |(@)   (@)
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
raphxyz is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-12-2007 , 08:34   Re: set_rendering to FakeMeta
Reply With Quote #2

I'm not fully sure but i would try to add this after the "renderfx"
Code:
set_pev(entity, pev_rendermode, kRenderTransAlpha);
Hope it works!

greetz regalis
__________________
regalis is offline
raphxyz
Member
Join Date: Oct 2005
Old 05-12-2007 , 10:30   Re: set_rendering to FakeMeta
Reply With Quote #3

This is my code
PHP Code:
set_peventpev_classname"boul_ent" )
    
set_peventpev_solid,0)
    
engfuncEngFunc_SetModelentg_tSprite[random_num(0,1)] )
    
engfuncEngFunc_SetOriginentfOrigin )
    
set_peventpev_sequence,0)
 
    if( 
equaliplayert "Axis" ) )
    {
     
//set_rendering(ent, kRenderFxNoDissipation, 255, 0, 0, kRenderGlow, 255)
     
set_pev(entpev_rendercolor, {255.00.00.0})
    }
    else 
    {
     
//set_rendering(ent, kRenderFxNoDissipation, 0, 255, 0, kRenderGlow, 255)
     
set_pev(entpev_rendercolor, {0.0255.00.0})
    }
    
set_peventpev_renderfxkRenderTransColor)
    
set_peventpev_rendermodekRenderTransAlpha)
 
    
set_peventpev_flagsFL_ALWAYSTHINK )
    
set_peventpev_dmgtimeget_gametime() + 20 
That doesn't work.
__________________
Code:
                On the road again!
 |""""""""""""""""""| || _
 |      DUREX       |,|||_;\,___,
 |___ _    _  _____/==|_|_|_,'__|
  '  |(@))"(@))      |(@)   (@)
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°

Last edited by raphxyz; 05-12-2007 at 10:33.
raphxyz is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-12-2007 , 11:06   Re: set_rendering to FakeMeta
Reply With Quote #4

Quote:
Originally Posted by raphxyz View Post
That doesn't work.
Sorry, thought that might work..
I searched nearly half an hour but with no success..
Maybe some specialist can help you with that..
I would also like to know how to do that

greetz regalis
__________________
regalis is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 05-12-2007 , 12:15   Re: set_rendering to FakeMeta
Reply With Quote #5

Code:
stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16) {     new Float:RenderColor[3]     RenderColor[0] = float(r)     RenderColor[1] = float(g)     RenderColor[2] = float(b)     set_pev(entity, pev_renderfx, fx)     set_pev(entity, pev_rendercolor, RenderColor)     set_pev(entity, pev_rendermode, render)     set_pev(entity, pev_renderamt, float(amount))     return 1 }
Copyed from: http://forums.alliedmods.net/showthread.php?t=28284
(I recommend getting it, if you're using FakeMeta a lot)
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
raphxyz
Member
Join Date: Oct 2005
Old 05-13-2007 , 06:45   Re: set_rendering to FakeMeta
Reply With Quote #6

Quote:
Copyed from: http://forums.alliedmods.net/showthread.php?t=28284
(I recommend getting it, if you're using FakeMeta a lot)
Thanks, it work
__________________
Code:
                On the road again!
 |""""""""""""""""""| || _
 |      DUREX       |,|||_;\,___,
 |___ _    _  _____/==|_|_|_,'__|
  '  |(@))"(@))      |(@)   (@)
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
raphxyz is offline
Reply


Thread Tools
Display Modes

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 06:34.


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