fullbrite help

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

Post Reply
User avatar
O/S/T-M/O/B
CJ Wannabe
CJ Wannabe
Posts: 27
Joined: April 8th, 2012, 5:04 pm

fullbrite help

Post by O/S/T-M/O/B » 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?

IzNoGoD
CJ Worshipper
CJ Worshipper
Posts: 343
Joined: January 6th, 2009, 8:39 pm
Location: Netherlands/Holland

Re: fullbrite help

Post by IzNoGoD » April 21st, 2012, 2:34 pm

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;
}
LMGTFY!

Its not a glitch... Its the future!

User avatar
O/S/T-M/O/B
CJ Wannabe
CJ Wannabe
Posts: 27
Joined: April 8th, 2012, 5:04 pm

Re: fullbrite help

Post by O/S/T-M/O/B » April 21st, 2012, 4:51 pm

k thx trying later

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests