Raised This Month: $ Target: $400
 0% 

screen color


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pixel3
Senior Member
Join Date: Dec 2005
Old 03-17-2006 , 07:43   screen color
Reply With Quote #1

Well.... I've been looking this predator mode plugin. There is this code that changes screen color..

Code:
message_begin(MSG_ONE, 98, {0,0,0},id) write_short(1<<0)   // fade lasts this long duration write_short(1<<0)   // fade lasts this long hold time write_short(1<<2)   // fade type HOLD write_byte(0)   // fade red write_byte(0)   // fade green write_byte(255)     // fade blue write_byte(120)     // fade alpha message_end()

This will hold the players screen like this forever right? But how can I change players view back to normal? (Actually I have not tested this, but I'm assuming that this "fade type HOLD" means that screen will stay like this until it is turned back to normal)
__________________
pixel3 is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-17-2006 , 13:21  
Reply With Quote #2

Code:
write_byte(0)     // fade alpha


you could probably use this, I dun know.
Code:
#define FFADE_STAYOUT   0x0004      // ignores the duration, stays faded out until new ScreenFade message received write_short(FFADE_STAYOUT)  // fade type HOLD
[ --<-@ ] Black Rose is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 03-17-2006 , 14:52  
Reply With Quote #3

Code:
message_begin(MSG_ONE, 98, {0,0,0},id) write_short(1<<0)     // fade lasts this long duration write_short(1<<0)     // fade lasts this long hold time write_short(1<<2)     // fade type HOLD write_byte(0)    // fade red write_byte(0)     // fade green write_byte(0)     // fade blue write_byte(0)     // fade alpha message_end()

Just change all RGB and alpha values to 0
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-17-2006 , 15:02  
Reply With Quote #4

that would make the screen black
[ --<-@ ] Black Rose is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 03-17-2006 , 15:04  
Reply With Quote #5

Fixed
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Reply


Thread Tools
Display Modes

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 16:46.


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