Home   Help Search Login Register  

Author Topic: Howto : create a mortar  (Read 925 times)

0 Members and 1 Guest are viewing this topic.

ddavid

  • Guest
Howto : create a mortar
« on: 08 Dec 2002, 19:44:23 »
Hello everyone,

  I am working on a rifle grenade (the kind put on rifle's canon) but unfortunatly can't get it working... mostly due to the lack of documentation about this specific thing.
I know it's less sexy than a rocket launcher, but law and M203 where only used by US army by 1985  :)

I tried to use a simple derivative using
magazines[]={"FAMASmag","M16","Mortar"};
in the weapon config.cpp : the animation work but the weapon become normal just after it.

So, I made a p3d, a config with a derivative from GrenadeLauncher but the engine doesn't load it, and I finally get weaponless.
Any idea someone ?

class FamasMortar: GrenadeLauncher
{
   modelOptics="\FAMAS\famas_optika";
   optics=true;
   opticsZoomMin=1.00;
   opticsZoomMax=1.00;
   scopeWeapon=0;
   scopeMagazine=2;
   modelSpecial="FAMAS\Famas_mortar";
   magazineType="2 =          256";
   ammo="MortarShell";
   displayName="$STR_DN_MORTAR_W";
   displayNameMagazine="$STR_MN_MORTAR_W";
   shortNameMagazine="$STR_SN_MORTAR_W";
   count=1;
   initSpeed=70;
   reloadAction="ManActReloadMortar";
   modes[]={"this","this"};
};