fullbrite help
Moderator: Core Staff
- 
				O/S/T-M/O/B
														 - CJ Wannabe

 - Posts: 27
 - Joined: April 8th, 2012, 5:04 pm
 
fullbrite help
someone know if it is possible to block on some points in my map the fullbrite and fx off and fog off using?
			
			
									
									
						- 
				IzNoGoD
 - CJ Worshipper

 - Posts: 343
 - Joined: January 6th, 2009, 8:39 pm
 - Location: Netherlands/Holland
 
Re: fullbrite help
Ugly solution:
			
			
									
									
						Code: Select all
 
main()
{
        thread monitortrig();
}
 
monitortrig()
{
        trigger=getent("trigger","targetname");//trigger multiple in your no-fullbright section
        while(true)
        {
                trigger waittill("trigger",player);
                if(!isdefined(player.fullbrightthread))
                {
                        player.fullbrightthread=true;
                        player thread force_fullbright(trigger);
                }
        }
}
 
force_fullbright(trig)
{
        self endon("disconnect")
        while(self istouching(trig))
        {
                self setclientcvar("r_fullbright","0");
                wait 0.05;
        }
        self.fullbrightthread=undefined;
}- 
				O/S/T-M/O/B
														 - CJ Wannabe

 - Posts: 27
 - Joined: April 8th, 2012, 5:04 pm
 
Re: fullbrite help
k thx trying later