First try at LUA, screen flashing after explosion.
Posted: 07 Mar 2009, 23:39
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!
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!