Jump to content
Sign in to follow this  
DragoFire

Question on ammo?

Recommended Posts

Have question in regards to the following piece of coding:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ammo="BulletSingleW";

Is it possible of have more than on ammo type listed?

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ammo="7_62NATO_FMJ","7_62NATO_JHP","7_62NATO_AP";

DragoFire

Share this post


Link to post
Share on other sites

Ok here's the trick, ammo as per normal, and then you add a few "new" weapon classes for the ammo being used.

eg;

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class 7_62NATO_Belt_100FMJ:FAL_20FMJ

{

magazineType="2 * 256";

displayName="7_62NATO_Belt_100FMJ";

displayNameMagazine="7_62NATO_Belt_100FMJ";

shortNameMagazine="7_62NATO_Belt_100FMJ";

count=100;

};

class 7_62NATO_Belt_100JHP:FAL_20JHP

{

magazineType="2 * 256";

displayName="7_62NATO_Belt_100JHP";

displayNameMagazine="7_62NATO_Belt_100JHP";

shortNameMagazine="7_62NATO_Belt_100JHP";

count=100;

};

class 7_62NATO_Belt_100AP:FAL_20AP

{

magazineType="2 * 256";

displayName="7_62NATO_Belt_100AP";

displayNameMagazine="7_62NATO_Belt_100AP";

shortNameMagazine="7_62NATO_Belt_100AP";

count=100;

};

Here's how it works in the weapon;

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class M60_GPMG:M249_SAW // USA M60 7.62mm NATO GPMG

{

magazines[]={"7_62NATO_Belt_100FMJ","7_62NATO_Belt_100JHP","7_62NATO_Belt_100AP"};

As you can see the weapon can now use three ammo types, so if a soldier has multiple-mag's of different types, then he/she can change the ammo used, or the mission maker can config. weapons and ammo to suit the situation.

DragoFire

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×