Well, I have tried and tried, but I cannot get this to work FULLY. What I did was place an entity on the floor. I set its settings to as follows:
1. The Main A.I. SCRIPT IS A CUSTOM ONE THAT MAKES IT FULLY TRANSPARENT. IT IS As FOLLOWS. This is important if you don't want to see floor entities everywhere.
apperaclear.fpi:
;Artificial Intelligence Script
;Header
desc = Appear Clear
;Triggers
:state=0:setalphafade=0,runfpidefault=1
;End of Script
Then, the main A.I. is also a custom script.
FLASHBANG.fpi:
;Artificial Intelligence Script
;Header
desc = FLASH BANG ENTITY
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecorehudsflash.tga,hudname=flash,hudhide=1,hudmake=display,state=1
:state=1,healthless=10:hudshow=flash,timerstart,plrsound=audiobankflash.wav,state=2
:state=2,timergreater=3000:hudfadeout=flash,timerstart,state=3
;End of Script
As you can tell, you need a pure white hud to act as the blinding agent in the correct folder, as well as your flash sound. NOTE: this sound is just the ears ringing, the sound is delayed, so it cannot contain the explosion sound as well. Anyhow, once you have this set up, set its health above ten, and make it immobile.
There are your floor segmeants. These, when dammaged, will make the flashbang.
Then, if youw irh, model a flash grenade, of just use the stock ones. Anything that will cause dammage will work fine. Then have fun.
ISSUES:
First of all, I need help with the script, it works for the first flash perfectly, but after that, it messes everything up. Any help? Continuing, if the "tiles" are dammaged in any way, including being shot, then they will flash. Also, I need to add a point where the player is not affected ny the flash anymore, I should plrwithin to make a point where the player is no flashed from a certain distance. This is simple. Anyhow, It is a rough start, but atleast I managed a "beta" if you will of a much better method.
Now all I need is people to edit, improve, and test this script. I have included a video of the final result, the fpi, the script, and some screenshots. Enjoy!
Sorry:
I cannot upload the video, so I have a like to filefront.com on the next post.