First try at LUA, screen flashing after explosion.

First try at LUA, screen flashing after explosion.

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
YamroZ
Posts: 35
Joined: 24 Oct 2006, 10:13

First try at LUA, screen flashing after explosion.

Post 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!
Last edited by YamroZ on 17 Mar 2009, 11:30, edited 2 times in total.
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

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

Post by Noruas »

You are an angel of god sent from hell.
User avatar
YamroZ
Posts: 35
Joined: 24 Oct 2006, 10:13

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

Post by YamroZ »

Whatever 0_o
User avatar
Pendrokar
Posts: 658
Joined: 30 May 2007, 10:45

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

Post 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:
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

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

Post by AF »

youtube?
User avatar
YamroZ
Posts: 35
Joined: 24 Oct 2006, 10:13

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

Post by YamroZ »

I have my time pretty constrained, but Ill try to produce something nice to watch today's evening.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

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

Post by Pxtl »

Flashing white screen?

Image
User avatar
YamroZ
Posts: 35
Joined: 24 Oct 2006, 10:13

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

Post 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 :]
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

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

Post by 1v0ry_k1ng »

WARNING YOU ARE GOING TO DIE
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

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

Post 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.
Post Reply

Return to “Lua Scripts”