Home   Help Search Login Register  

Author Topic: Weapon selection???  (Read 412 times)

0 Members and 1 Guest are viewing this topic.

MACRO

  • Guest
Weapon selection???
« on: 06 May 2003, 21:30:40 »
Hi

I have been playing around with the COC mod and noticed something that interests me.

In the hasty attack demo mission you can change your weapons at the breifing.

I am certain that this is to do with a capability of resistance and not coc but it was coc that made me notice it.

How would I go about it if I wanted to have a stand alone mission in which the user could change his/her kit at the briefing stage?

Cheers for any help.

MACRO

CrashnBurn

  • Guest
Re:Weapon selection???
« Reply #1 on: 06 May 2003, 21:53:00 »
You need a file called description.ext in your mission folder. You define weapons and ammo for the player to choose from in that file. example-

class Weapons
{
class Beretta
{count =  1;};
class UZI
{count =  1;};
class Ingram
{count =  1;};
class M16
{count = 1;};    
class M21
{count = 1;};
class M60
{count = 1;};    
class HuntingRifle
{count = 1;};
class Revolver
{count = 1;};
class Steyr
{count = 1;};
class G36a
{count = 1;};
class XMS
{count = 1;};
class HKG3
{count = 1;};
class FAL
{count = 1;};
class Kozlice
{count = 1;};
class M4
{count = 1;};
class M16GrenadeLauncher
{count = 1;};
};

class Magazines
{
class HK
{count =  10;};
class BerettaMag
{count =  4;};
class IngramMag
{count =  4;};
class UZIMag
{count =  10;};
class HandGrenade
{count =  6;};
class M16
{count = 10;};
class M21
{count = 6;};
class M60
{count = 6;};
class HuntingRifleMag
{count = 6;};
class RevolverMag
{count = 4;};
class SteyrMag
{count = 10;};
class G36aMag
{count = 10;};
class M4
{count = 10;};
class GrenadeLauncher
{count = 3;};
class Kozliceball
{count = 10;};
class Kozliceshell
{count = 10;};
class HKG3Mag
{count = 10;};
class FALMag
{count = 10;};
};

Set the count for number of weapons and magazines to what you want available to the player. This is not a new thing. Works with any version of OFP, although some of the weapons in the example are from later versions. Make a new text document and save as description.ext and put in your missions folder. It only works if the player is alone or leader of a group !
« Last Edit: 06 May 2003, 21:56:37 by CrashnBurn »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Weapon selection???
« Reply #2 on: 06 May 2003, 22:50:17 »
description.ext does other cool stuff as well - there are tutes in the Ed Depot and an template for you to copy in the Tutorial Mission.
Plenty of reviewed ArmA missions for you to play