Home   Help Search Login Register  

Author Topic: problem with weapon selection  (Read 886 times)

0 Members and 1 Guest are viewing this topic.

Offline ONoSixIsDown

  • Members
  • *
problem with weapon selection
« on: 05 Dec 2005, 20:22:31 »
hey everyone.. i'm back with another problem.
 
i just created a "description.EXT" file so the player has a number of weapons to choose from at the start of the mission.  

the weapons appear but the ammo does not.  also, i get an error message saying
           " No entry 'config.bin/cfg Weapons.Magazines'.

the weapons are there to picked from but no ammo.  :-\

here's what i have in my description.ext file

Quote
class Weapons
{
class G36a
{
count =  1;
};
class XMS
{
count =  1;
};
class M16
{
count =  1;
};
class M16GrenadeLauncher
{
count =  1;
};
class LAWLauncher
{
count =  1;
};
class CarlGustavLauncher
{
count =  1;
};
};

// and the ammo


class Magazines
{
class G36aMag
{
count =  9;
};
class M16
{
count =  9;
};
class M16GrenadeLauncher
{
count =  9;
};
class HandGrenade
{
count =  9;
};
class LAWLauncher
{
count =  6;
};
class CarlGustavLauncher
{
count =  2;
};
class Flare
{
count =  4;
};
class FlareRed
{
count =  4;
};
class FlareGreen
{
count =  4;
};
class FlareYellow
{
count =  4;
};
class SmokeShell
{
count =  4;
};
};

did i go wrong somewhere?
CRIMSON REIGN COMMING..... eventually :/

Offline 456820

  • Contributing Member
  • **
Re:problem with weapon selection
« Reply #1 on: 05 Dec 2005, 20:28:02 »
well this is the magazine class from one of my missions

Code: [Select]
class Magazines
{
   class SmokeShellRed
   {
      Count = 2;
   };
   class SmokeShellGreen
   {
      Count = 2;
   };
   class SmokeShell
   {
      Count = 2;
   };
   class UZIMag
   {
      Count = 6;
   };
   class SteyrMag
   {
      Count = 12;
   };
   class M60
   {
      Count = 8;
   };
   class M4
   {
      Count = 10;
   };
   class M21
   {
      Count = 10;
   };
   class GrenadeLauncher
   {
      Count = 15;
   };
   class M16
   {
      Count = 25;
   };
   class LAWLauncher
   {
      Count = 10;
   };
   class HK
   {
      Count = 13;
   };
   class GlockMag
   {
      Count = 20;
   };
   class CarlGustavLauncher
   {
      Count = 3;
   };
   class BerettaMag
   {
      Count = 30;
   };
   class HandGrenade
   {
      Count = 20;
   };
   class FlareGreen
   {
      Count = 2;
   };
   class Flare
   {
      Count = 2;
   };
   class AALauncher
   {
      Count = 5;
   };
};

you could try editing that to your needs

i cant see anything wrong also this should go in the section below this one about cutscenes and description.ext

yankme

  • Guest
Re:problem with weapon selection
« Reply #2 on: 06 Dec 2005, 11:37:33 »
 i cant see whats wrong, might be one little typo in there, this is a little tighter
Quote
class Binocular
{count =  1;};


};
// This class indicates what weapon magazines to make available to the player in the mission briefing.
class Magazines
{
class JAM_W556_30HDmag
{count =  50;};
class BAS_M4SMag
{count =  50;};
class JAM_W556_30mag
{count =  50;};
class LAWLauncher
{count =  50;};
« Last Edit: 06 Dec 2005, 11:48:25 by yankme »

Offline ONoSixIsDown

  • Members
  • *
Re:problem with weapon selection
« Reply #3 on: 06 Dec 2005, 21:58:35 »
ok, it works, thanks guys
CRIMSON REIGN COMMING..... eventually :/