Raised This Month: $51 Target: $400
 12% 

[INC] ScreenFade Util [RAGE Supported]


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-18-2009 , 01:13   Re: [INC] ScreenFade Util
Reply With Quote #11

UTIL_ScreenFade(id, {Color_red,Color_green,Color_blue}, 1.0, 0.0, 75 )
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 05-18-2009 , 13:09   Re: [INC] ScreenFade Util
Reply With Quote #12

Quote:
Originally Posted by ConnorMcLeod View Post
UTIL_ScreenFade(id, {Color_red,Color_green,Color_blue}, 1.0, 0.0, 75 )
Can you create a variable like that straight? I believe they have to be constants, so you'd have to create a three cell array and use that (like I did).
SnoW is offline
Send a message via MSN to SnoW
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 05-18-2009 , 20:43   Re: [INC] ScreenFade Util
Reply With Quote #13

Quote:
Originally Posted by SnoW View Post
Can you create a variable like that straight? I believe they have to be constants, so you'd have to create a three cell array and use that (like I did).
no you cant i just tried. you do have to have a constant. which means i think i might have to use another way of screenfade.(or i guess i could just use your way snow. have 3 different cvars. hmmmm.
__________________
[B]
{PHILMAGROIN} is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 05-19-2009 , 01:56   Re: [INC] ScreenFade Util
Reply With Quote #14

Quote:
Originally Posted by {PHILMAGROIN} View Post
no you cant i just tried. you do have to have a constant. which means i think i might have to use another way of screenfade.(or i guess i could just use your way snow. have 3 different cvars. hmmmm.
You can use Connor's way with no problems, use the two stocks and:
PHP Code:
new iColor[3] = GetColorCVAR_POINTER )
UTIL_ScreenFade(idiColor1.00.075 
SnoW is offline
Send a message via MSN to SnoW
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-08-2012 , 09:57   Re: [INC] ScreenFade Util
Reply With Quote #15

I use it and it doesn't work :

PHP Code:
UTIL_ScreenFadeid, { 2000200 }, 40.0 
I want a screenfade during 40 seconds and with the RGB colors : { 200, 0, 200 }

What is the problem ?
__________________
You can do anything you set your mind to, man.

Devil259 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-08-2012 , 09:59   Re: [INC] ScreenFade Util
Reply With Quote #16

Problem is holdtime = 0.0
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 01-08-2012, 10:05
Devil259
This message has been deleted by Devil259. Reason: problem solved
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-14-2012 , 14:49   Re: [INC] ScreenFade Util
Reply With Quote #17

PHP Code:
UTIL_ScreenFadeid, { 2000}, 5.0 45.0 255 FFADE_OUT 
The screenfade is removed after ~15 seconds.
Is it because I test on hlds server ?

EDIT : Tested on localserver, still the same.
__________________
You can do anything you set your mind to, man.


Last edited by Devil259; 01-14-2012 at 15:05.
Devil259 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-14-2012 , 17:26   Re: [INC] ScreenFade Util
Reply With Quote #18

Max time value is 15.999756 ( max short value 0xFFFF / second value 1<<12 )

Set it so it stay fade and remove it when you need.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-14-2012 at 17:27.
ConnorMcLeod is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-14-2012 , 18:15   Re: [INC] ScreenFade Util
Reply With Quote #19

Thank you.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 01-31-2012 , 09:16   Re: [INC] ScreenFade Util
Reply With Quote #20

Awesome
__________________
kiki33hun is offline
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 11:30.


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