I am not sure about the screen shaking.
To spread projectiles, lets look at the TF2 Minigun...
function TF2MinigunImage::onFire(%this,%obj,%slot)
{
%projectile = TF2MinigunProjectile;
%spread = 0.04;
%shellcount = 1;
for(%shell=0; %shell<%shellcount; %shell++)
{
%vector = %obj.getMuzzleVector(%slot);
%objectVelocity = %obj.getVelocity();
%vector1 = VectorScale(%vector, %projectile.muzzleVelocity);
%vector2 = VectorScale(%objectVelocity, %projectile.velInheritFactor);
%velocity = VectorAdd(%vector1,%vector2);
%x = (getRandom() - 0.5) * 0.8 * 3.1415926 * %spread;
%y = (getRandom() - 0.5) * 0.8 * 3.1415926 * %spread;
%z = (getRandom() - 0.5) * 0.8 * 3.1415926 * %spread;
%mat = MatrixCreateFromEuler(%x @ " " @ %y @ " " @ %z);
%velocity = MatrixMulVector(%mat, %velocity);
%p = new (%this.projectileType)()
{
dataBlock = %projectile;
initialVelocity = %velocity;
initialPosition = %obj.getMuzzlePoint(%slot);
sourceObject = %obj;
sourceSlot = %slot;
client = %obj.client;
};
MissionCleanup.add(%p);
}
return %p;
}
These would be your main thing to spread them:
%projectile = NamedProjectile;
%spread = HowShouldItSpreadOut;
%shellcount = 1; //Keep this the way it is unless you want more than one shell