Home   Help Search Login Register  

Author Topic: Permanent Muzzle Flash Bug (Solved)  (Read 1478 times)

0 Members and 1 Guest are viewing this topic.

Offline NoMore

  • Members
  • *
  • Location: Denmark
Permanent Muzzle Flash Bug (Solved)
« on: 12 Jul 2009, 15:46:45 »
Ok, I know this problem has been up MANY times and I have been searching for a while for what I needed but didn't find much.
I have downloaded a sniper called USMC Ghillie Sniper by Ghost in the Grass, and it has this odd muzzle bug.
I found this thread but I don't really understand what to do...

http://www.ofpec.com/forum/index.php?topic=1698.msg12406#msg12406

I think I need to add this to the config.cpp file, but I don't know how...
 
class CfgModels
{
class Default{};
class Weapon: Default{};
class ghilliegungig.p3d: Weapon{};
};

The config.cpp file looks like this:
Quote
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot      0// dummy weapons
#define WeaponSlotPrimary   1// primary weapons
#define WeaponSlotSecondary   16// secondary weapons
#define WeaponSlotItem      256// items
#define WeaponSlotBinocular   4096// binocular
#define WeaponHardMounted   65536

class CfgPatches
{
   class ghilliegungig
   {
      units[] = {};
      weapons[] = {ghilliegungig};
      requiredVersion = 1.30;
   };
   class gitg2gig
   {
      units[] = {gitg2gig};
      weapons[] = {};
      requiredVersion = 1.30;
   };
};
class CfgVehicles
{
   class All{};
   class AllVehicles : All{};
   class Land : AllVehicles{};
   class Man : Land{};
   class Soldier : Man{};
   class SoldierWB : Soldier{};
   class SoldierWSniper : SoldierWB{};
   class gitg2gig : SoldierWSniper
   {
      scope=2;
      sensitivity=2.5;
      displayName="USMC Ghillie Sniper (GIG)";
      weapons[]={GhillieM40A1gig,NVGoggles,Throw,Put};
      magazines[]={ghilliegunmaggig,ghilliegunmaggig,ghilliegunmaggig,ghilliegunmaggig,ghilliegunmaggig};
      camouflage=0.25;
      accuracy=1000;
      namesound= "sniper"
      attendant= 1;
      moves="CfgMovesMC";
      canhidebodies= 1;
      laserscanner=1;
      hiddenSelections[]={"medic"};
      model="\gitg2\gitg2gig.p3d";
      picture="\gitg2\gitg2.paa";
      wounds[]={
         "\gitg2\_hrud_p","\gitg2\xhrud_p",
         "\gitg2\_nohy_p","\gitg2\xnohy_p",
         "\gitg2\_nohy_z","\gitg2\xnohy_z",
         "\gitg2\_helma_side2","\gitg2\xhelma_side2",
         "\gitg2\_zadaruce_z","\gitg2\xzadaruce_z",
         "\gitg2\_vojak_nohy_bok_l","\gitg2\xvojak_nohy_bok_l",
         "\gitg2\_vojak_ruka_bok_l","\gitg2\xvojak_ruka_bok_l",
         "\gitg2\_vojak_hrud_bok_p","\gitg2\xvojak_hrud_bok_p",
         "\gitg2\_helma_front","\gitg2\xhelma_front"};
   };
};
class CfgAmmo
{
   class default {};
         class BulletSingle: default {};
   class BulletSniper: BulletSingle {};
   class ghilliesilencedgig: BulletSniper
   {
      hit=11;
      indirectHit=1;
      indirectHitRange=0.5;
      visibleFire=0.025000;
      audibleFire=0.025000;
      tracerColor[]={0,0,0,0.000000};
      tracerColorR[]={0,0,0,0.000000};
   };              
};

class CfgWeapons
{
   class Default   {};
   class MGun: Default {};
   class Riffle: MGun {};
   class M21: Riffle{};
   class GhillieM40A1gig: M21
   {   
      scopeWeapon=2;
      scopemagazine=0;
      model="\gitg2\ghilliegungig";
      modelOptics="\gitg2\optics.p3d";
      ammo=ghilliesilencedgig;
      opticsZoomMin=0.01;
      opticsZoomMax=0.5;
      distanceZoomMin=2000;
      distanceZoomMax=80;
      recoil=riffleSilenced;
      recoilfixed=empty;
      count=15;
      magazines[]={ghilliegunmaggig};
      reloadTime=1.1;
      displayName = Silenced M40A1;
      displayNameMagazine = "M40A1 Mag.";
      picture="\gitg2\ghilliegunpic.paa";
      accuracy=1000;
      initspeed=5000;
      sound[]={\gitg2\shot.wav,0.003,1};
      drySound[]={\gitg2\empty.wav,db-40,1};
   };

   class ghilliegunmaggig: ghillieM40A1gig
   {
      scopeWeapon=2;
      scopeMagazine=2;
      displayNameMagazine = "M40A1";
      shortNameMagazine = "M40A1";
      picture="\dtaext\equip\m\m_m21.paa";
        };
};
class CfgFaces
{
   class Ghilliefacegig
   {
      name="Ghillie Sniper";
      texture="\gitg2\face.paa";
      east=1;
      west=1;
   };
};
class CfgNonAIVehicles
{
   class ProxyWeapon{};
   class Proxygitg2gig: ProxyWeapon{};
};

I could really use some help on this.
Thank you in advance,
NoMore  ;)
« Last Edit: 12 Jul 2009, 18:02:10 by NoMore »
"He who stands with me shall be my brother." - Warhammer 40k: Dawn of War

Walter_E_Kurtz

  • Guest
Re: Permanent Muzzle Flash Bug
« Reply #1 on: 12 Jul 2009, 16:09:58 »
It is usual to have the CfgModels section after CfgPatches (which introduces the new stuff) but before anything else. Also you only need the name of the model, not the .p3d part. It ought to look like:
Quote
class CfgPatches
{
   class ghilliegungig
   {
      units[] = {};
      weapons[] = {ghilliegungig};
      requiredVersion = 1.30;
   };
   class gitg2gig
   {
      units[] = {gitg2gig};
      weapons[] = {};
      requiredVersion = 1.30;
   };
};

class CfgModels
{
class Default{};
class Weapon: Default{};
class ghilliegungig: Weapon{};
};


class CfgVehicles
{
...

Offline NoMore

  • Members
  • *
  • Location: Denmark
Re: Permanent Muzzle Flash Bug
« Reply #2 on: 12 Jul 2009, 18:01:48 »
Great! Works perfect  :D

Thanks you so much 
NoMore :good:
"He who stands with me shall be my brother." - Warhammer 40k: Dawn of War