Raised This Month: $ Target: $400
 0% 

pev_rendercolor not working as intended :/


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
IAmReallyCool
Member
Join Date: Nov 2013
Old 11-06-2014 , 13:50   pev_rendercolor not working as intended :/
Reply With Quote #1

so far i've got this and everything is working as intended, when i use affect function on entity it becomes inactive and colored in RED colour.

PHP Code:
public affect(ent,button)
{
    if(
button != 1)
    {
        
g_trapstate[button] = true
    
}
    
g_trapstate[ent] = true
    
new temp_trap[2]
    
temp_trap[0] = ent
    temp_trap
[1] = button
    set_task
(get_pcvar_float(cvar_time), "enable"0temp_trap2)
    
set_pev(entpev_renderfx0)
    
set_pev(entpev_renderamt200.0)
    
set_pev(entpev_rendercolor255.00.00.0)
    
set_pev(entpev_rendermode1)

However, for example when I change the pev_rendercolor line to any other color, in game it just won't show the right color.. it will just fade black.

So, basically the code below is working :
PHP Code:
set_pev(entpev_rendercolor255.00.00.0
and this one isnt working

PHP Code:
set_pev(entpev_rendercolor0.00.0255.0
What could be wrong?
IAmReallyCool is offline
 



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 17:41.


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