Home   Help Search Login Register  

Author Topic: Changing Weapons On Gear Page In Briefing  (Read 574 times)

0 Members and 1 Guest are viewing this topic.

Offline the corinthian

  • Members
  • *
  • I'm a llama!
Changing Weapons On Gear Page In Briefing
« on: 05 Apr 2003, 17:08:07 »
Hi

I have a co-op mission and want to make it so that each player can change their starting weapon from the Gear screen in the briefing.

I thought that to do this I needed to add weapon and magazine classes to my description.ext file so I have done this but I cannot change the loadout on the briefing screen. There are arrows that let me choose the players but how do I actually change the weapons?

respawn = "instant";
respawndelay = 15;

class Weapons
{
class M16
{
count = 5;
};

class M16GrenadeLauncher
{
count = 5;
};

class M4
{
count = 5;
};

class M60
{
count = 5;
};

class HK
{
count = 5;
};

class M21
{
count = 5;
};

class CarlGustavLauncher
{
count = 5;
};


class LAWLauncher
{
count = 5;
};

class AALauncher
{
count = 5;
};
};

class Magazines
{
class M16
{
count = 10;
};

class GrenadeLauncher
{
count = 10;
};

class M4
{
count = 10;
};

class M60
{
count = 10;
};

class HK
{
count = 10;
};

class M21
{
count = 10;
};

class CarlGustavLauncher
{
count = 10;
};

class LAWLauncher
{
count = 10;
};

class AALauncher
{
count = 10;
};
};

class CfgSounds
{
   sounds[] =    { };

   class BT
   {
      name = "";
      sound[] = {"BT.ogg", db+10, 1.0};
      forceTitles = false;
      titles[] = { };
   };
};

Offline the corinthian

  • Members
  • *
  • I'm a llama!
Re:Changing Weapons On Gear Page In Briefing
« Reply #1 on: 05 Apr 2003, 18:14:17 »
I have checked out the forum search and looked at the description,ext tutorial. I have also seen that the operation lojack2 mission has the ability to change weapons at briefing so I tried using the relevent part of that desc.ext file.

class Weapons
        {
                class g36a {count = 5;};
                class M21 {count = 1;};
                class Steyr {count = 5;};
                class LAWLauncher {count = 2;};
           class HK {count = 5;};
           class Glock {count = 5;};
           class GlockS {count = 5;};
      class BAS_M4ACOG {count = 5;}
      class BAS_M4MKACOG {count = 5;}
      class BAS_M4MKReflex {count = 5;}
      class BAS_M4REFLEX {count = 5;}
      class BAS_M4REFLEXM203 {count = 5;}
      class BAS_M4ACOGS {count = 5;}
      class BAS_M4REFLEXS {count = 5;}
      class BAS_M4REFLEXSM203 {count = 5;}
      class BAS_M14AIMPOINT {count = 5;}
      class BAS_M24SWS {count = 1;}
      class BAS_MP5SDAIMPOINT {count = 5;}
      class BAS_Beretta {count = 5;}
        };

class Magazines
        {
           class g36amag {count = 50;};
           class HandGrenade {count = 30;};
           class steyrmag {count = 50;};
           class M21 {count = 10;};
           class HK {count = 50;};
           class LAWLauncher {count = 6;};
           class PipeBomb {count = 6;};
           class TimeBomb {count = 6;};
           class SmokeShell{count = 3;};
           class SmokeShellGreen{count = 3;};
           class SmokeShellRed{count = 3;};
           class GlockMag {count = 20;};
           class BAS_M4Mag {count = 50;};
           class BAS_MKshell {count = 50;};
           class BAS_M433grenade {count = 15;};
           class BAS_M4SMag {count = 50;};
           class BAS_M24Mag {count = 10;};
           class BAS_MP5SDMag {count = 50;};
           class BAS_M14Mag {count = 50;};
           class GlockSMag {count = 20;};
           class BAS_BerettaMag {count = 20;};
            };


However this still desnt work, When I click on the weapon in the gear screen nothing happens.

Offline the corinthian

  • Members
  • *
  • I'm a llama!
Re:Changing Weapons On Gear Page In Briefing
« Reply #2 on: 05 Apr 2003, 18:27:30 »
I also tried using the sections from the description.ext file given with the tutorial mission in the addons depot but still I cannot change weapons on the players.

Here is my newest description.ext file....


respawn = "instant";
respawndelay = 15;

class CfgSounds
{
   sounds[] =    { };

   class BT
   {
      name = "";
      sound[] = {"BT.ogg", db+10, 1.0};
      forceTitles = false;
      titles[] = { };
   };
};

class Weapons
{
class binocular
{
count =  2;
};
class M21
{
count =  1;
};
class Steyr
{
count =  1;
};
class G36a
{
count =  1;
};
class XMS
{
count =  1;
};
class M16
{
count =  1;
};
class M16GrenadeLauncher
{
count =  1;
};
class M60
{
count =  1;
};
class kozlice
{
count =  1;
};
class MM1
{
count =  1;
};
class Mortar
{
count =  1;
};
class LAWLauncher
{
count =  1;
};
class CarlGustavLauncher
{
count =  1;
};
};



// and the ammo


class Magazines
{
class M21
{
count =  9;
};
class SteyrMag
{
count =  9;
};
class G36aMag
{
count =  9;
};
class M4
{
count =  9;
};
class M16
{
count =  9;
};
class M16GrenadeLauncher
{
count =  9;
};
class M60
{
count =  9;
};
class kozliceball
{
count =  9;
};
class kozliceshell
{
count =  9;
};
class MM1magazine
{
count =  9;
};
class HandGrenade
{
count =  9;
};
class Mortar
{
count =  9;
};
class LAWLauncher
{
count =  6;
};
class CarlGustavLauncher
{
count =  2;
};
class Pipebomb
{
count =  3;
};
class Flare
{
count =  4;
};
class FlareRed
{
count =  4;
};
class FlareGreen
{
count =  4;
};
class FlareYellow
{
count =  4;
};
class SmokeShell
{
count =  4;
};
class SmokeShellRed
{
count =  4;
};
class SmokeShellGreen
{
count =  4;
};
};

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Changing Weapons On Gear Page In Briefing
« Reply #3 on: 11 Apr 2003, 14:45:41 »
I haven't checked your syntax (I never check other people's syntax, a more pointless exercise is hard to imagine  ;D ) but I know the Tutorial Mission description.ext works because I wrote it.

It sounds to me as if your description.ext is not being picked up at all.   Are you sure its in the mission folder?    Check that it is not called description.ext.txt by mistake.     You also have to save your mission in the Mission Editor before and changes in description.ext are picked up - simply clicking on Preview is not sufficient.

The quick way to check if the file is working correctly is to change the onloadmission text.    If that works, then at least the file works and you know its a problem inside the file.   If it doesn't then its a problem with the file itself.    (Assuming you haven't screwed up on that bit  ;D)    Copy the relevant bits from the Tutorial mission one.
Plenty of reviewed ArmA missions for you to play

Offline the corinthian

  • Members
  • *
  • I'm a llama!
Re:Changing Weapons On Gear Page In Briefing
« Reply #4 on: 11 Apr 2003, 15:04:04 »
I managed to sort it out by using the CH Scripting tool to create the description.ext but thanks.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Changing Weapons On Gear Page In Briefing
« Reply #5 on: 11 Apr 2003, 15:59:27 »
Good!  :)

When your question has been answered, or you have figured out the answer for yourself, can you remember to solve the topic with the green solve button at the bottom left of your screen?     It means the Ed Depot staff can add the information to the FAQ (if appropriate).     And if you post the final answer it means that anybody else with the same problem can discover what to do by searching the forum.  ;)

It also means I don't have to write posts that you don't need anymore.  ;D

Thanks
Plenty of reviewed ArmA missions for you to play