Ok, here is the newest version of the script!
Read the readme on how to use, here is a quick overview of how the script works:
This is a relatively simple to use script to simulate a cluster bomb. It creates a laser guided bomb at the pos of the specified plane, and once the bomb reaches a predetermined height, 120 shells of a specified type are created around the bomb and the bomb is deleted. The shells fall to the ground and explode, simulating a cluster bomb. The shells are randomly placed and given random velocities, meaning, each bomb will have a different footprint.
I have also added the ability to choose the size of the foorprint!
The script is now called like this:
[NameOfBomber, FootPrintRadius, "ShellType"] exec "ClusterBombing.sqs";
The new value, FootPrintRadius, is the
radius of the area you want the shells to fall in.
This version should work with aircraft flying in
any direction!
Unfortunately, in order to fix this bug, I had to change the way the pattern is determined by the script. As a result, the patterns may seem more square than rectangular. :-\
@penguinman
I have decided to keep the mission the way it is for now, so the viewer can see the effects of the script more clearly. Maybe in a later version I will bomb the player.
EDIT
I forgot to mention. I modified the script so a puff of smoke appears when the shells are dispersed. I think I remember seeing this effect happen in some documentary when a cluster bomb disperesed it's shells. If you don't like this effect, please tell me, if enough of you don't like it, I will remove it.