Page 1 of 1

First try at LUA, screen flashing after explosion.

Posted: 07 Mar 2009, 23:39
by YamroZ
http://www.youtube.com/watch?v=oxBOCJxfDso

Ok, so I took camera shake and darkening widgets, married them together and this came out as a offspring. Widget name is "Nuke Blast" as it supposed to imitate blinding light emited when nuke goes off. Instead it just flashes whole screen white and fades quickly when powerful enough blast happens not too far from camera.

Here it is, feel free to try, copy, modify, do whatever, and offcourse comments are always nice to see:
http://www.jamro.pl/spring/lua/nukeblast.zip

I would like to know how to check what kind of weapon caused ShockFront, then I could make real Nuke blast, that would blind players for second and then fade slowly.
In future maybe I'll add some EMP effects like disabling all radars for short period of time.

anyway enjoy!

Re: First try at LUA, screen flashing after explosion.

Posted: 08 Mar 2009, 20:48
by Noruas
You are an angel of god sent from hell.

Re: First try at LUA, screen flashing after explosion.

Posted: 09 Mar 2009, 12:11
by YamroZ
Whatever 0_o

Re: First try at LUA, screen flashing after explosion.

Posted: 11 Mar 2009, 16:18
by Pendrokar
Shake + Blinding Flash?

That sounds like Mine Bombers where you could blow up tons of nukes and the screen shakes more and more. GOOD TIMES!!! :mrgreen:

Re: First try at LUA, screen flashing after explosion.

Posted: 13 Mar 2009, 12:45
by AF
youtube?

Re: First try at LUA, screen flashing after explosion.

Posted: 16 Mar 2009, 17:46
by YamroZ
I have my time pretty constrained, but Ill try to produce something nice to watch today's evening.

Re: First try at LUA, screen flashing after explosion.

Posted: 16 Mar 2009, 17:47
by Pxtl
Flashing white screen?

Image

Re: First try at LUA, screen flashing after explosion.

Posted: 16 Mar 2009, 22:23
by YamroZ
http://www.youtube.com/watch?v=oxBOCJxfDso

here you go

full res:
http://jamro.pl/spring/video/Nuke%20Blast.avi

In actual game it gives you a hint when something REALY big exploded when you are zoomed out and in closeup bombing view it can induce epilepsy seizure (i think). Maybe I should add a warning when widget is loaded :]

Re: First try at LUA, screen flashing after explosion.

Posted: 24 Mar 2009, 07:22
by 1v0ry_k1ng
WARNING YOU ARE GOING TO DIE

Re: First try at LUA, screen flashing after explosion.

Posted: 24 Mar 2009, 16:31
by CarRepairer
1v0ry_k1ng wrote:WARNING YOU ARE GOING TO DIE
More like

WARNING, YOU HAVE DIED. IF YOU WERE BETTER THIS WOULD NOT HAVE HAPPENED BUT NOW IT'S TOO LATE.