Home   Help Search Login Register  

Author Topic: MUzzle flash prob  (Read 2386 times)

0 Members and 1 Guest are viewing this topic.

Offline hamis

  • Members
  • *
  • I'm a llama!
MUzzle flash prob
« on: 16 Jul 2006, 09:04:20 »
Hi!I have problem with stock bizon.The muzzle flash is full screen,so i can't see anything if i shoot at full auto ???

class CfgPatches
   {

   class Bizon
      {
      units[]={"SoldierESaboteurBizon"};
      weapons[]={"Bizon"};
      requiredVersion=1.26;
      };
   };

class CfgAmmo
   {

   class default
      {
      };

   class BulletSingle:default
      {
      };

   class BulletSilencedSingle:BulletSingle
      {
      };

   class Bizon:BulletSilencedSingle
      {
      hit=7;
      indirectHit=1;
      indirectHitRange=0.1;
      };
   };

class CfgWeapons
   {

   class Default
      {sections[]={"zasleh"};
      };

   class MGun:Default
      {
      };

   class Riffle:MGun
      {
      };

   class BizonBase:Riffle
      {
      scopeWeapon=1;
      scopeMagazine=1;
      picture="\FDF_w12\bizon\w_bizon_kobra_sd.paa";
      displayName="Bizon Kobra Silenced";
      modelOptics="\C8X_russ\optic_cobra.p3d";
      opticsZoomMin=0.2;
      opticsZoomMax=0.2;
      distanceZoomMax=100;
      distanceZoomMin=100;
      model="\FDF_w12\bizon\Bizon_kobra_sd.p3d";
      count=64;
      optics=1;
      displayNameMagazine="$STR_DN_ADD_BIZON";
      shortNameMagazine="$STR_DN_ADD_BIZON";
      drySound[]={"weapons\M16dry",0.0031623,1};
      reloadMagazineSound[]={"\Bizon\bizon_reload.wss",0.0031623,1};
      modes[]={"Single","Fullauto"};

      class Single
         {
         ammo="Bizon";
         multiplier=1;
         burst=1;
         displayName="$STR_DN_ADD_BIZON";
         dispersion=0.0001;
         sound[]={"\Bizon\bizon",0.0003162,1};
         soundContinuous=0;
         reloadTime=0.1;
         ffCount=1;
         recoil="riffleSilenced";
         autoFire=0;
         aiRateOfFire=0.5;
         aiRateOfFireDistance=500;
         useAction=0;
         useActionTitle="";
         };

      class FullAuto
         {
         ammo="Bizon";
         multiplier=1;
         burst=1;
         displayName="$STR_DN_ADD_BIZON_AUTO";
         dispersion=0.0015;
         sound[]={"\Bizon\bizon",0.0003162,1};
         soundContinuous=0;
         reloadTime=0.07;
         ffCount=1;
         recoil="riffleSilenced";
         autoFire=1;
         aiRateOfFire=0.5;
         aiRateOfFireDistance=500;
         useAction=0;
         useActionTitle="";
         };
      };

   class BizonMag:BizonBase
      {
      scopeMagazine=2;
      picture="\Bizon\m_bizon.paa";
      };

   class Bizon:BizonBase
      {
      scopeWeapon=2;
      magazines[]={"BizonMag"};
      };
   };

class CfgVehicles
   {

   class All
      {
      };

   class AllVehicles:All
      {
      };

   class Land:AllVehicles
      {
      };

   class Man:Land
      {
      };

   class Soldier:Man
      {
      };

   class SoldierEB:Soldier
      {
      };

   class SoldierESaboteur:SoldierEB
      {
      };

   class SoldierESaboteurPipe:SoldierESaboteur
      {
      };

   class SoldierESaboteurBizon:SoldierESaboteurPipe
      {
      displayName="specnaz (bizon sd)";
      weapons[]={"Bizon","NVGoggles","Throw","Put","icp_pmms"};
      magazines[]={"BizonMag","BizonMag","BizonMag","BizonMag","PipeBomb","PipeBomb","PipeBomb","icp_pmmsMag","icp_pmmsMag","icp_pmmsMag","icp_pmmsMag"};
      };
   };

class CfgNonAIVehicles
   {

   class ProxyWeapon
      {
      };

   class ProxyBizon:ProxyWeapon
      {
      };
   };
Something wrong?

Offline oyman

  • Members
  • *
  • king of pings
Re: MUzzle flash prob
« Reply #1 on: 16 Jul 2006, 18:17:20 »
You need a Cfg models section probably which looks like this
Code: [Select]
class CfgModels
{
class Default {};
class Weapon: Default {};
        class Bizon_kobra_sd: Weapon {};
};
« Last Edit: 16 Jul 2006, 18:19:32 by oyman »

Offline hamis

  • Members
  • *
  • I'm a llama!
Re: MUzzle flash prob
« Reply #2 on: 17 Jul 2006, 16:12:33 »
Didn't help :(

Yij

  • Guest
Re: MUzzle flash prob
« Reply #3 on: 17 Jul 2006, 18:43:36 »
Full screen muzzleflash when firing full auto, do you mean the whole screen turns white? Does this happen in normal view or just the optics view? That might mean that you didn't set the texture path right in o2. Take a screenshot of your problem it will help.

oyman was on the right track. Try adding this to your config file. I honestly don't know what most of the crap below does anyway, other than zasleh means muzzleflash and it makes it show up.


class CfgModels
   {
   class Default
   {
   sections[]={};
   sectionsInherit="";
   };
   class Weapon: Default
   {
   sections[]={"zasleh"};
   };
   class Bizon: Weapon{};
};

Offline hamis

  • Members
  • *
  • I'm a llama!
Re: MUzzle flash prob
« Reply #4 on: 20 Jul 2006, 07:06:20 »
Well,whole screen turns white in optics mode.

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re: MUzzle flash prob
« Reply #5 on: 20 Jul 2006, 17:56:09 »
oyman was on the right track. Try adding this to your config file. I honestly don't know what most of the crap below does anyway, other than zasleh means muzzleflash and it makes it show up.


class CfgModels
   {
   class Default
   {
   sections[]={};
   sectionsInherit="";
   };
   class Weapon: Default
   {
   sections[]={"zasleh"};
   };
   class Bizon: Weapon{};
};

nah, oyman was completely right. cfgmodels is for models therefore you have to insert the model name here which is Bizon_kobra_sd, not Bizon.  and you can leave out the whole sectionsinherit stuff anyway. it's not wrong, but not necessary here either.

the white muzzle flash occurs cos the texture path in the optics model is wrong. you obviously took the optic model (\C8X_russ\optic_cobra.p3d) from earl's weapons, but forgot the texture of the muzzle flash. look for this texture in the c8x_russ.pbo, put it into your addon folder, and change the texture path in the optic p3d. if it's mlod change it in o2 -- if it's odol format do it with an ordinary hex-editor.

hope you asked earl for his permission to use his models/textures
« Last Edit: 20 Jul 2006, 18:01:14 by remcen »
we're looking for members: IM:UC MOD

Offline hamis

  • Members
  • *
  • I'm a llama!
Re: MUzzle flash prob
« Reply #6 on: 20 Jul 2006, 19:17:15 »
Well,have to use full c8x_russ.pbo without config.No need for permission,it's for my own use only.Thank's for help!

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re: MUzzle flash prob
« Reply #7 on: 20 Jul 2006, 20:50:09 »
errrr, forget what i wrote in my post about the texture path etc.
when the optic model remains in the c8x_russ pbo there's no need to copy the textures to your addon folder. when early custom optic is displayed his custom muzzle flash should also show up... sorry for that, my bad.

ok, the easiest way o find out what's wrong is to convert the optic model to mlod, open it in o2 and take a look at the muzzle flash.
we're looking for members: IM:UC MOD