Author Topic: JG-614 Airsoft Gun  (Read 22061 times)

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.

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.
Try this: Open the shotgun script, copypaste it into the corresponding  area of the script, change the shellcount to 1.

Heheh the stock goes into the arm.
What a slut.


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.

Try this script:
Code: [Select]
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.
Then he only flatshaded the cylinders.

The butt stock goes into your shoulder. Last I checked, Airsoft guns don't go into my shoulders

The butt stock goes into your shoulder. Last I checked, Airsoft guns don't go into my shoulders
Last I checked you don't just have a floating loving hand and a shoulder attatched to noyhing that just majorly complicates using rifles.

Looks like ACR.     

/MW2reference 

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

It should be a Red Ryder.

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...

Good for a first however it needs to be smaller  and the gun goes into his arm...
We have already accomplished this fact.

OnTopic:

1.) Flatshade it... as said previously.
2.) And make it smaller... as ALSO said previously.

can you make a non-airsoft model.