Home   Help Search Login Register  

Author Topic: Weapon selection from 'Gear' tab in Briefing  (Read 576 times)

0 Members and 1 Guest are viewing this topic.

2nd Ranger

  • Guest
Weapon selection from 'Gear' tab in Briefing
« on: 18 Oct 2004, 19:51:59 »
Hello,

I'd like to know how you can give people the opportunity to select their weapons and equipment from the gear tab at the mission briefing. I realise you have to reference each individual item you want to allow, I just don't know how to get the list up there in the first place after you click on your slots.

I realise this must be a common question, but I have searched the FAQ and the forum itself to no avail, and any help would be greatly appreciated.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Weapon selection from 'Gear' tab in Briefing
« Reply #1 on: 18 Oct 2004, 20:18:45 »
Put something like this in your description.ext file:


Code: [Select]
// This class indicates what weapons to make available to the player in the mission
class Weapons
{
class M60
{count =  1;};
class M16GrenadeLauncher
{count =  1;};
class M16
{count =  4;};
class M21
{count =  1;};
class CarlGustavLauncher
{count =  2;};
class LAWLauncher
{count =  2;};

class Binocular
{count =  3;};
class Beretta
{count =  4;};
class UZI
{count =  4;};
class Mine
{count =  9;};



};
// This class indicates what weapon magazines to make available to the player in the mission briefing.
class Magazines
{
class m60
{count =  10;};
class M21
{count =  10;};
class M16
{count =  20;};
class GrenadeLauncher
{count =  8;};
class HK
{count =  20;};
class CarlGustavLauncher
{count =  2;};
class LAWLauncher
{count =  6;};
class HandGrenade
{count =  24;};
class Pipebomb
{count =  9;};
class BerettaMag
{count =  20;};
class UZIMag
{count =  20;};
class Mine
{count =  9;};

Obviously you should amend it to give the weapons and mags that you want to have available.  This is an example I used for one of my missions.
« Last Edit: 18 Oct 2004, 20:23:34 by THobson »

2nd Ranger

  • Guest
Re:Weapon selection from 'Gear' tab in Briefing
« Reply #2 on: 18 Oct 2004, 22:10:18 »
Thanks very much THobson, that worked great. Thanks for the help.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Weapon selection from 'Gear' tab in Briefing
« Reply #3 on: 18 Oct 2004, 23:02:12 »
You are very welcome