OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MACRO 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
-
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 !
-
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.