OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Black_Mantis on 26 Jul 2003, 01:39:26
-
How do you add grenade launchers, and how come when I fire my gun which I created (OICW) it doesn't hit in the centre when using the scope? I used the M21 scope for the moment.
-
well for the m21 (sniper isnt it?) scope, you zoom in until the targets head and feet are in between the top and bottom and there......it is ranged,
as for grenades, as per real life, they drop sooner and closer than bulets basically because of thier weight
-
What I meant was how do I add a grenade launcher to my OICW? I've found out that you need to add the czech word for "grenade barrel" start and end (which I have done) but I have absoulutaly no idea how to add a grenade launcher to it. I also want it to hold 6 rounds.
-
add this to you config:
class CfgModels
{
   class grenadelauncher:default{};
};
class CfgWeapons
{
   class grenadelauncher: Default{};
   class yourweapon
   {
      muzzles[]={"OICWmuzzle","OICWMuzzle"};
      class OICWmuzzle: riffle
      {
         modes[] = {"Single","Auto"};
         magazines[]={"yourmag"};
      };
      class OICWMuzzle: GrenadeLauncher
      {
         displayName="grenade Launcher";
         scopeMagazine=2;
         weaponType=0;
         count=1;
         autoReload=0;
         ffMagnitude=0.100000;
         ffFrequency=1;
         ffCount=1;
      distanceZoomMin=150;
      distanceZoomMax=150;
         optics=1;
       opticsFlare=0;
         muzzlePos="usti granatometu";
         muzzleEnd="konec granatometu";
         magazines[]={"Flare","grenadelauncher"};
      };
   };
   class yourmag:
   {
      modes[]={"Single"etc};
      class Single{};
   };
     ÂÂ
};
If you need any more help email me at 8):
shaw13266@yahoo.com
-
Wow, many thanks for that, shawm3! Pretty soon others can enjoy the OICW! Thanks!