Hm, I needed just one line for that effect:
UTIL_ScreenFadeAll(Vector(255, 255, 255), 0.8, 1.0, 255, 0);
This will fade the screen to white and back.
----- Original Message -----
From: "Cortex" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 30, 2002 11:43 AM
Subject: Re: [hlcoders] UTIL_ScreenFadeAll
> mmmhhh... Thx for the tip, but it doesn't as good as I expect :(
> Indeed, I wanted to fade really the screen... With your method, the screen
> is instantaneous "blacked out" (I've tried to change the duration value,
but
> in vain :( ).
>
> Am I the only one to have this problem ??
>
> - Cortex : mapper & coder www.hlalbator.fr.st
>
> ----- Original Message -----
> From: "Mike Blowers" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 30, 2002 10:55 AM
> Subject: Re: [hlcoders] UTIL_ScreenFadeAll
>
>
> > I've previously done a similar thing... Here's the 2 lines of code I
used:
> >
> > // Turn on
> > UTIL_ScreenFade( m_pPlayer, Vector(50,50,50), 0, 5, 200, FFADE_STAYOUT);
> >
> > // Turn off
> > UTIL_ScreenFade( m_pPlayer, Vector(50,50,50), 0, 1, 200, FFADE_OUT);
> >
> > I think you'll find the problem is you are using FFADE_IN to remove the
> > STAYOUT effect, which won't work... you need FFADE_OUT.
> >
> > Mike.
> > ----- Original Message -----
> > From: "Cortex" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 30, 2002 7:34 AM
> > Subject: [hlcoders] UTIL_ScreenFadeAll
> >
> >
> > > Hello,
> > >
> > > I'm having trouble with this function :(
> > > I wanted to fade the screen juste before a round ends. So, I put this
on
> > the
> > > right place :
> > >
> > > UTIL_ScreenFadeAll ( Vector(0,0,0), 3, 1, 255, FFADE_OUT |
> > FFADE_STAYOUT );
> > >
> > > But, I want that the screen returns to his normal state ! So, I put
this
> > in
> > > an other function :
> > >
> > > UTIL_ScreenFadeAll ( Vector(0,0,0), 3, 1, 255, FFADE_IN );
> > >
> > > The problem I have is that the FFADE_IN effect doesn't work... If
I
> > set
> > > it a green color (for test purpose only :) ), the green stays all the
> time
> > > at the screen (so, it does the same with the black). It's really
> annoying
> > > for gameplay LOL
> > >
> > > It must be a big error from me but I can't figure it me out :( Does
> anyone
> > > see it ????????
> > >
> > > - Cortex : mapper & coder www.hlalbator.fr.st
> > >
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders