Everyone wants the USP. The M-45 is close enough to one, and is better Oh ok then I guess that works ._. and uhh, send me pictures of any finished gun that you have that you'd like to add into this pack, so people don't request things that you already have. Through Email of course, since you can't send PM's anymore :c
No, not even close. It's a long slur of stuff that even I find hard to comprehend. Zloff, do the honors of posting a sliver of real script.
function M9A1Fire(%this,%obj,%slot,%val,%triggerNum)
{
%projectile = BerettaM9Projectile;
if (%obj.heat > 4)
{
%obj.playThread(3, shiftAway);
}
else if (%obj.heat > 1)
{
%obj.playThread(3, plant);
}
if(%obj.isImageMounted(BerettaM9Image))
{
if(%triggerNum == 3 && %val)
{
%spread = 0.00075 + (%obj.heat * 0.00025);
}
else
if(vectorLen(%obj.getVelocity()) < 4)
{
%spread = 0.00125 + (%obj.heat * 0.00025);
}
else
{
%spread = 0.002 + (%obj.heat * 0.00025);
}
}
else if(%obj.isImageMounted(BerettaM9ADSImage))
{
if(%triggerNum == 4 && %val)
{
%spread = 0.00035 + (%obj.heat * 0.00025);
}
else
if(vectorLen(%obj.getVelocity()) < 4)
{
%spread = 0.0009 + (%obj.heat * 0.00025);
}
else
{
%spread = 0.0014 + (%obj.heat * 0.00025);
}
}
%obj.maxHeat = 10;
if(%obj.heat < %obj.maxHeat)
%obj.heat += 2;
%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) * 10 * 3.1415926 * %spread;
%y = (getRandom() - 0.5) * 10 * 3.1415926 * %spread;
%z = (getRandom() - 0.5) * 10 * 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);
}
%projectile = "FlashProjectile";
%vector = %obj.getMuzzleVector(%slot);
%objectVelocity = %obj.getVelocity();
%vector1 = VectorScale(%vector, %projectile.muzzleVelocity);
%vector2 = VectorScale(%objectVelocity, %projectile.velInheritFactor);
%velocity = VectorAdd(%vector1,%vector2);
%p = new (%this.projectileType)()
{
dataBlock = %projectile;
initialVelocity = %velocity;
initialPosition = %obj.getMuzzlePoint(%slot);
sourceObject = %obj;
sourceSlot = %slot;
client = %obj.client;
};
MissionCleanup.add(%p);
return %p;
}
That's what makes the bullets spread out
Will you ever sell this?
Hell yes we'll take money for this It's going to be publicly released, free of charge to download, but that's later
Edit: Got to make up unfinished work and study for exams, so I'll be scripting less than I have been the past few weeks, if not, not at all for a couple days