Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Howto : create a mortar  (Read 1939 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"};
};