Raised This Month: $32 Target: $400
 8% 

pev_light_level


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 03-10-2009 , 07:41   pev_light_level
Reply With Quote #1

What does pev_light_level do ?
I searched the forums, found nothing... but I don't know where else to search
__________________
Hunter-Digital is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 03-10-2009 , 11:23   Re: pev_light_level
Reply With Quote #2

check this -> http://www.ghwchronic.com/pev_research.php

Quote:
Amount of light shining on the entity (Used for model rendering) (0=No light 180=Fully Lit).
__________________
Dr.G is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 03-10-2009 , 13:22   Re: pev_light_level
Reply With Quote #3

*SOUNDS* like just what I need... except the part that does not work...

I set it to 0, 180 and 90 to test if makes any difference... but it doesnt, I set it to an model and moved around in the world in the sunlight and in shadows... the model just takes lightning from the world lightning, doesn't ignore it... actually does nothing compared to not setting it at all...

anyway, thanks for the info and website

EDIT: btw, is there any other way to ignore world lightning on a entity ? except additive rendermode :}
__________________

Last edited by Hunter-Digital; 03-10-2009 at 13:47.
Hunter-Digital is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-10-2009 , 14:01   Re: pev_light_level
Reply With Quote #4

it works only for players afaik
__________________
xPaw is offline
tolsty
Senior Member
Join Date: Feb 2008
Location: Latvia
Old 09-27-2009 , 09:56   Re: pev_light_level
Reply With Quote #5

sorry for bump, but it didnt work for me, i wanted to use it for players, but nothing changes

this is how i tested it, but no resluts
PHP Code:
public plugin_init()
    
register_clcmd("say /test""test" )
public 
test(id) {
    
client_print(idprint_chat" TEST0  !");
    
set_pev(0pev_light_level58.0);
    
set_task1.0,"test1"id );
}
public 
test1(id) {
    
client_print(idprint_chat" TEST1  !");
    
set_pev(idpev_light_level10.0);
    
set_task1.0,"test2"id );
}
public 
test2(id) {
    
client_print(idprint_chat" TEST2  !");
    
set_pev(idpev_light_level100.0);
    
set_task1.0,"test3"id );
}
public 
test3(id) {
    
client_print(idprint_chat" TEST3  !");
    
set_pev(idpev_light_level150.0);
    
set_task1.0,"test4"id );
}
public 
test4(id) {
    
client_print(idprint_chat" TEST4  !");
    
set_pev(idpev_light_level80.0);
    
set_task1.0,"test2"id );

__________________
[IMG]http://img2.**************/img2/7173/signfp.jpg[/IMG]

Last edited by tolsty; 09-27-2009 at 10:10.
tolsty is offline
crashbandicoot
BANNED
Join Date: Mar 2012
Location: why will u come XD?
Old 07-01-2017 , 15:45   Re: pev_light_level
Reply With Quote #6

because you used FLOAT values in INTEGER. Therefore it did not work ) . Use integer then it will work normally
crashbandicoot is offline
Send a message via Skype™ to crashbandicoot
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 00:27.


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