This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

pev_rendercolor not working as intended :/


Post New Thread Reply   
 
Thread Tools Display Modes
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
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 11-06-2014 , 14:10   Re: pev_rendercolor not working as intended :/
Reply With Quote #2

This is not how pev_rendercolor is set. You need to provide a vector for the third argument instead of three separate values.
__________________
In Flames we trust!

Last edited by Nextra; 11-06-2014 at 14:10.
Nextra is offline
Lycode
Junior Member
Join Date: Aug 2014
Old 11-06-2014 , 14:47   Re: pev_rendercolor not working as intended :/
Reply With Quote #3

PHP Code:
set_pev(entpev_rendercolor, {0.00.0255.0}) 
__________________
-This too shall pass
Lycode is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 11-06-2014 , 15:49   Re: pev_rendercolor not working as intended :/
Reply With Quote #4

Quote:
Originally Posted by Lycode View Post
PHP Code:
set_pev(entpev_rendercolor, {0.00.0255.0}) 
PHP Code:
set_pev(entpev_rendercolorFloat:{0.00.0255.0}) 
.Dare Devil. is offline
IAmReallyCool
Member
Join Date: Nov 2013
Old 11-07-2014 , 00:59   Re: pev_rendercolor not working as intended :/
Reply With Quote #5

Quote:
Originally Posted by .Dare Devil. View Post
PHP Code:
set_pev(entpev_rendercolorFloat:{0.00.0255.0}) 
Miracle, thanks a lot SOLVED!
IAmReallyCool 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 17:57.


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