Home   Help Search Login Register  

Author Topic: cfgMagazines  (Read 2110 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
cfgMagazines
« on: 23 Jun 2008, 15:58:56 »
I am puzzled about the config for magazines. The initSpeed of an M119 artillery can be determined by:
Code: [Select]
_muzzleVelocity = getNumber (configFile >> "cfgMagazines" >> "30Rnd_105mmHE_M119" >> "initSpeed");but the muzzle, magazine and ammo types returned by a fired event handler are simply M119, SH_105_HE.

Where does "30Rnd_105mmHE_M119" come from? For a given vehicle(or weapon) how do you retrieve this value from the config? I realise that many vehicles have more than one muzzle.
urp!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: cfgMagazines
« Reply #1 on: 23 Jun 2008, 19:52:11 »
Well, ...

"M119" is the weapon name
"30Rnd_105mmHE_M119" is the magazine name
"Sh_105_HE" is the ammo name.

So, the "M119" fires the "Sh_105_HE" ammo and it comes in magazines called "30Rnd_105mmHE_M119", which contain 30 X "Sh_105_HE".

Hope that muddies the water a bit.   ;)


Planck
I know a little about a lot, and a lot about a little.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: cfgMagazines
« Reply #2 on: 23 Jun 2008, 21:35:43 »
Yes, but given a vehicle with multiple weapons/magazines, how would I generate a list of possible magazines?
urp!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: cfgMagazines
« Reply #3 on: 24 Jun 2008, 01:55:29 »
The vehicles config entry:

magazines [] = {bla,blah,blahblah};

will list them all ...

Likewise the entry:

weapons [] = {bla,blah,blahblah};

will list the weapons the vehicle uses.

In the case of the M119, it only has the one weapon and hence only one magazine...., so:

weapons[]={M119};
magazines[]={30Rnd_105mmHE_M119};


Planck
I know a little about a lot, and a lot about a little.