fullbrite help
Posted: April 21st, 2012, 1:58 pm
				
				someone know if it is possible to block on some points in my map the fullbrite and fx off and fog off using?
			CoDJumper.com - For all your CoDJumping needs!
https://codjumper.com/forums/
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;
}