Home   Help Search Login Register  

Author Topic: Flare Addon  (Read 867 times)

0 Members and 1 Guest are viewing this topic.

madwolfnemesis

  • Guest
Flare Addon
« on: 16 Jul 2003, 06:39:35 »
I tried creating a new flare addon with only 0.25 * WeaponItemSlot

In CfgPatch, I put this:

class MyOwnFlare
{
   units[] = {};
   weapons[] = {MyOwnFlare};
   requiredVersion = 1.85;
};

In CfgAmmo, I put this:

class Default {};
class Grenade : Default {};
class Flare : Grenade {};
class MyOwnFlare : Flare {};

In CfgWeapons, I put this;

class GrenadeLauncher : Default {};
class MyOwnFlare : GrenadeLauncher
{
   magazineType =  0.25 * WeaponSlotItem;
      
   ammo=MyOwnFlare;
   displayName = "M203 Launcher (Whitestar)";
   displayNameMagazine = "Whitestar";
   shortNameMagazine = "Whitestar";
};

Initially, I managed to create my own Grenade for the GrenadeLauncher with 0.25 * WeaponItemSlot.

SO in my very own configured GrenadeLaucnher, I put this statement in it:

class M203Muzzle : GrenadeLauncher
{
   displayName=$STR_DN_M203;
   sound[]={weapons\M16GrenadeLaunch, db-70,1};
   magazines[] = {MyOwnLauncher, MyOwnFlare, FlareGreen, FlareRed, FlareYellow}};
   //optics = true;

   //opticsZoomMin=0.40;
   //opticsZoomMax=0.40;

   //modelOptics="optika_m16_granatomet";
}

And yet, I couldn't run the game well when I load my soldier wtih MyOwnFlare. It will pop back into my desktop when I Preview it. If I change to MyOwnFlare to 1 * WeaponItemSlot, it'll work, but if I put it to 0.25 * WeaponItemSlot, it'll not work. Why is that so?

madwolfnemesis

  • Guest
Re:Flare Addon
« Reply #1 on: 16 Jul 2003, 07:43:01 »
Anyway, I set the WeaponItemSlot to 0, so that means it'll not take up any weaponslot. It works, but I can't possibly put it to 0 right? Please advise, thank you.