Author Topic: Image overlap/whiteout effect question  (Read 1961 times)

Lately i am wondering how the white out effect works.
The one that is used in the flash grenade and event and more.

But as the whiteout effect is a default function, it is protected and i cannot see into the code or anything.
So, i would like to know if anyone knows how to do such an effect, or do something like that.
I was thinking it was done by an image overlapping the player's screen, like a hud, but the effect seems to dissappear slowly and is made to be used with different intensities..

Please, help me and answer this question as i am very curious about this.



So, the whiteout effect itself is default.

I didn't searched the guide so i indeed overlooked that detail, however, i am asking if i can make an effect similiar to that.

Like for example, a black version of whiteout.

So, the whiteout effect itself is default.

I didn't searched the guide so i indeed overlooked that detail, however, i am asking if i can make an effect similiar to that.

Like for example, a black version of whiteout.

Well, I am about to hit myself very hard. This is becuase you have not been searching... you know what you must do....

Well, I am about to hit myself very hard. This is becuase you have not been searching... you know what you must do....
I just looked for myself and didn't find anything. I don't know if you're full of stuff or just delusional.

I'd recommend using the GUI editor to dig around the playGui and look for the effect used.

setblackout

I just looked and found it, I searched blackout and I found it quite easily.
« Last Edit: June 28, 2010, 04:13:16 PM by Human Reaper »

blackout doesn't actually work when used from the server, and the client-side version may have been removed too

Hehe, i haven't been searching for anything like that, but my question is if i can create such an effect by myself, not using a default one.
blackout doesn't actually work when used from the server, and the client-side version may have been removed too
That's sad.
I just looked for myself and didn't find anything. I don't know if you're full of stuff or just delusional.

I'd recommend using the GUI editor to dig around the playGui and look for the effect used.
I'll do that. Thanks again.

blackout doesn't actually work when used from the server, and the client-side version may have been removed too

Why is that? I mean like setwhiteout is still around

Uhh... Could you do something like Randy's extremely old Admin GUI hack? It added GUI elements to the Admin GUI (and still does for me... which is annoying since the GUI has changed since then). Maybe you could add a full-screen element for displaying an image and have that fade in and out? Maybe using the same effect as the main menu?

That would require you to trust that clients actually have your mod and haven't edited it to give yourself an advantage. (You can see vs everyone else blinded = ?)

That would require you to trust that clients actually have your mod and haven't edited it to give yourself an advantage. (You can see vs everyone else blinded = ?)

Well obviously, but who's to say this would need to be used in such situations? Yes, they'd need it too, but again: So?

Meh, that's the obvious stuff you listed. No way against it, but it's probably the only way to do it efficiently.

The setWhiteout method is a console method defined within the engine. It just "draws whiteness" onto the PlayGui - there's no image overlap.

So why does setblackout no longer work?