OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: jt on 24 Jun 2006, 10:32:11

Title: weapons in briefing
Post by: jt on 24 Jun 2006, 10:32:11
I have an easy question,but I still can't find the specific answer after having searched the whole forum.
That is:How to add different weapons to the briefe,so that I could change the weapons in the briefe-"gear"?
I kown that's very easy for you all,and thank you for replying me. ???
Title: Re: An easy question
Post by: The-Architect on 24 Jun 2006, 10:38:28
Add something like this to the description.ext. Obviously you add different weapons to suit your needs. Search the forums for a weapons and ammo list.

Code: [Select]
class Weapons
{
class hk
{ count = 3;};
class ak47grenadelauncher
{ count = 8;};
class ak47cz
{ count = 8;};
class pk
{ count = 6;};
class kozlice
{ count = 6;};
class rpglauncher
{ count = 3;};
class ak74
{ count = 10;};
class m16
{count = 4;
}; 
};

class Magazines
{
class hk
{ count = 20;};
class grenadelauncher
{ count = 20;};
class ak47
{ count = 55;};
class pk
{ count = 20;};
class kozliceshell
{ count = 40;};
class kozliceball
{count = 40;};
class rpglauncher
{ count = 30;};
class ak74
{ count = 30;};
class mine
{ count = 10;};
class pipebomb
{ count = 20;};
class handgrenade
{ count = 55;};
class m16
{ count = 30;};
class flare
{ count = 2;};
class flaregreen
{ count = 5;};
class flarered
{ count = 3;};
class flareyellow
{ count = 1;
};
};
Title: Re: An easy question
Post by: Trapper on 24 Jun 2006, 10:42:10
You need the file description.ext in your mission folder.

This is a possible gear setup:
Code: [Select]
class Weapons
{
// Add the weapons to the mission gear
class Beretta
{
Count = 9;
};
};

class Magazines
{
// Add the magazines to the mission gear
class BerettaMag
{
Count = 36;
};
class M16
{
Count = 100;
};
class M60
{
Count = 50;
};
class GrenadeLauncher
{
Count = 50;
};
class HandGrenade
{
Count = 100;
};
class Flare
{
Count = 100;
};
};
Title: Re: An easy question
Post by: Doktor Headshot on 24 Jun 2006, 13:04:49
Let me suggest you to download the CHOFPSE tool from http://www.chenderman.com/Contents/Applications/CHOFPSE_310.msi. It allows you to make things like the one you asked and much more (briefing, overview, scripts etc.).

Guido