OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Burn on 30 Mar 2003, 18:53:48

Title: How to add ADDON weapons to Chris's OFP script editor...
Post by: Burn on 30 Mar 2003, 18:53:48
 :oI would want to add some addonweapons to the weaponslist in Chris's OFP script editor, (when you make an Description file in the description.ext WIZARD)... Is this possible ??? And if not how do you add ADDONWEAPONS manually into the description, after using the wizard ???

Please help ::)

Thank you :-* :D
~:BIZON:~ OUT :-X***
Title: Re:How to add ADDON weapons to Chris's OFP script editor...
Post by: macguba on 30 Mar 2003, 19:00:50
I don't know anything about the Scripteditor, but adding extra weapons to gear selection is very easy.    

I take it you have a description.ext file.     Copy and paste the blurb below, change the weapons as you like.   Get the names from the weapon and ammo list in the Ed Depot - Tutes - References.    For user created addon weapons the names should be included in the addon readme.



class Weapons
{
class binocular
{
count =  1;
};
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;
};
};



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 =  3;
};
class CarlGustavLauncher
{
count =  1;
};
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;
};
};
Title: Re:How to add ADDON weapons to Chris's OFP script editor...
Post by: Burn on 30 Mar 2003, 21:31:47
Problem solved... Thanx  alot ;D

I had a little typing error in my description :-[ :P