Improvements needed: Spread, smaller BBs, better sound, smaller model.
For the gun model does the entire thing need to be smaller or just one direction? Also I am not the best of scripters and can't figure out how to make the BBs spread if someone could help me out I would appreciate it.
What a slut.
function <yourweapon>Image::onFire(%this,%obj,%slot){ %fvec = %obj.getForwardVector(); %fX = getWord(%fvec,0); %fY = getWord(%fvec,1); %evec = %obj.getEyeVector(); %eX = getWord(%evec,0); %eY = getWord(%evec,1); %eZ = getWord(%evec,2); %eXY = mSqrt(%eX*%eX+%eY*%eY); %aimVec = %fX*%eXY SPC %fY*%eXY SPC %eZ; %obj.setVelocity(VectorAdd(%obj.getVelocity(),VectorScale(%aimVec,"-0.5"))); %obj.playThread(2, root);// don't edit this %projectile = %this.projectile; %spread = 0.00012;// how far apart %shellcount = 1;// how many shells shot at once for(%shell=0; %shell<%shellcount; %shell++) { %vector = %obj.getMuzzleVector(%slot);// this is throwback. it's pretty complicated, so best leave it alone %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); } return %p;}
It probably is flat shaded. It just has a massive poly count. Other than that, it's nice.
The butt stock goes into your shoulder. Last I checked, Airsoft guns don't go into my shoulders
The ACR is a real gun, I hate how people use a gun in a video game then think they know all about the actual fire-arm
Good for a first however it needs to be smaller and the gun goes into his arm...