CAPTAIN SIM FORUM
Weapon for FSX >> Weapon for FSX >> unlimited ammo
https://www.captainsim.org/forum/csf.pl?num=1296898545

Message started by Markoz on Feb 5th, 2011 at 9:35am

Title: Re: unlimited ammo
Post by Markoz on Feb 7th, 2011 at 10:55am
Hi Paul.

The clues to what each entry in CSWeapon.xml file are inside it. The following is the entry in the CSWeapon.xml for the M60C:

       <Weapon>
           <!-- weapon sub-type section. unlimited number of -->
           <Gun>M60C</Gun>
           <!-- weapon sub-type name. must match GunInfo>Gun>Name -->
           <Shell>M60C Bullet</Shell>
           <!-- shell name. must match GunInfo>Shell>Name -->
           <Unlimited>0</Unlimited>
           <!-- unlimited ammo fire. 1-yes, 0-no -->
           <Station name="Nose" params="0,9,0,0,-0.039,0,200" />
           <!-- Station position (x,y,z) meters, angle of incidence, ammo units quantity -->
           <Mode name="AUTO" shotrate="10" setshots="0" sequence="1" />
           <!-- fire mode section. unlimited number of. name= dispayed on HUD in weapon info string. -->
           <Mode name="X3" shotrate="10" setshots="3" sequence="1" />
           <Mode name="SINGL" shotrate="10" setshots="1" sequence="1" />
           <DefaultMode>AUTO</DefaultMode>
           <!-- default fire mode. Any from the list above  -->
       </Weapon>

The Lines that start with <!--- tell you about the entry above it and the parameters involved. I have place the entry that deals with unlimited ammo in blue.

You need to change the line from <Unlimited>0</Unlimited> to <Unlimited>1</Unlimited> for every <Weapon> entry. There are fifteen (15) entries that need to be changed. Once you have done that, just copy that CSWeapon.xml file and overwrite the ones in each plane you have added the Weapon for FSX to. To change them back to normal, use the Loader to remove from the plane/chopper and then add it back again.

If you just want to add more ammo:

           <Station name="Nose" params="0,9,0,0,-0.039,0,200" />
           <!-- Station position (x,y,z) meters, angle of incidence, ammo units quantity -->

change the last parameter of the Station entry as shown in red above.

Hope this helps.

Mark

CAPTAIN SIM FORUM » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.