AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   screen color (https://forums.alliedmods.net/showthread.php?t=25620)

pixel3 03-17-2006 07:43

screen color
 
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)

[ --<-@ ] Black Rose 03-17-2006 13:21

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

Zenith77 03-17-2006 14:52

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

[ --<-@ ] Black Rose 03-17-2006 15:02

that would make the screen black

Zenith77 03-17-2006 15:04

Fixed


All times are GMT -4. The time now is 16:46.

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