This file has a fixed format, its first line specifies the number of weapons
to use, the other lines specify the name of weapon and its position in x,y,z.

Each weapon has its own directory inside the weapons directory of the
program, inside this directory are the weapon configuration file and related
textures and mesh files.

The weapon configuration file

Inside each weapon directory there is a configuration file called weapon.cfg,
this file contains the parameters for defining the type of weapon and its
behavior, these are the types of parameters and their decryptions.

Weapons do not require all of these parameters to be specified, for each type
of weapon there is a minimal set of parameters that can be used to specify the
weapon configuration, when some parameters are not specified default values are
used.

Weapon graphics:

Each weapon has optionally some graphic files inside its directory, these
include the following:

The base mesh file base.x

The turret mesh file turret.x

The barrel mesh file barrel.x

The shell mesh file shell.x

The machine gun texture flame.dds

These files are loaded according to the following structure:

The shell is attached to the barrel and fired from it, the barrel can swing
in elevation only, and is attached to the turret, the turret swings in yaw only
and is attached to the base.

All of the components can be used to compose a great variety of weapon types,
for example to specify a barrel which swings in pitch and elevation simply
ignore the turret.

For machine guns the actual shells are not using the shell.x mesh file,
instead they use the flame.jpg file and the salvo_size parameter to draw
glowing points similar to a line of tracers.

For machine guns there are also splash.jpg and blast.jpg for
showing explosion and splash effects when hitting ground or water.

Weapon sound files:

Each weapon has optionally some sound files inside its directory, these
include the following:

The firing sound fire.wav - heard when a rocket is shot.

The flight sound flight.wav - heard during the flight of the weapon.

The explosion sound explode.wav - heard when the shell explodes.

The release sound check.wav - heard when a bomb is released.

Sound files should be mono sounds, 22 kHz, 16 bit sounds, other formats
can be loaded as well.

Using Limited Ammo:

Weapons can have limited or unlimited shells that can be fired, when
"Limited "Ammo" option is enabled for the vehicle options, the
weapons have a limited number of shells which is 500 for cannons and 1 for other
types by default, this number can be specified for each weapon in the
[max_rounds] parameter.

When limited ammo is used, the weight and innertia of each shell
fired is subtracted from the weight and innertia of the vehicle.