Author Topic: G36  (Read 2077 times)

0 Members and 1 Guest are viewing this topic.

Lock

  • First Post
  • *
  • Posts: 1
    • View Profile
G36
« on: August 01, 2005, 05:32:06 pm »
Hi
I want to modifed my g36a weapon
Upgrade:
1) Distance
2) Power
3) View Distance
How can i do that?
Thanks

[TKC]Anothercheater

  • Heckler Apprentice
  • ****
  • Posts: 1349
    • View Profile
G36
« Reply #1 on: August 01, 2005, 10:39:17 pm »
create a new new pbo with a random name, for example o98304t.pbo with a  config.cpp in it with following content...
Quote

class CfgPatches
{
   class G36a
   {
      units[]={"SoldierWG36a"};
      weapons[]={"G36a"};
      requiredVersion=1.260000;
   };
};
class CfgAmmo
{
   class default {};
   class BulletSingle: default {};
   class G36a: BulletSingle
   {
      hit=11
      indirectHit=1
      indirectHitRange=0.100000;
   };
};
class CfgWeapons
{
   class Default {};
   class MGun: Default {};
   class Riffle: MGun {};
   class G36aBase: Riffle
   {      
      scopeWeapon=2
      scopeMagazine=2
      model="\G36A\G36";
      modelOptics="\G36A\G36_optics";
      picture="\G36A\w_g36.paa";
      optics=1
      opticsZoomMin=0.02;
      opticsZoomMax=0.24;
      distanceZoomMin=800;
      distanceZoomMax=40;
      displayName="$STR_DN_ADD_G36";
      displayNameMagazine="$STR_DN_ADD_G36_AMMO";
      shortNameMagazine="$STR_DN_ADD_G36_AMMO";
      drySound[]={"weapons\M16dry",0.003162,1};
      magazines[]={"G36a"};
      modes[]={"Single","Burst","Fullauto"};
      count=30
      
      class Single
      {
         ammo="G36a";
         multiplier=1
         burst=1
         displayName="G36";
         dispersion=0.000200;
         sound[]={"\G36A\g36a.wss",1.000000,1};
         soundContinuous=0
         reloadTime=0.00100000;
         ffCount=1
         recoil="";
         autoFire=0
         aiRateOfFire=0.500000;
         aiRateOfFireDistance=500
         useAction=0
         useActionTitle="";
      };
      class Burst
      {
         ammo="G36a";
         multiplier=1
         burst=3
         displayName="G36 Burst";
         dispersion=0;
         sound[]={"\G36A\g36a_burst",1.000000,1};
         soundContinuous=0
         reloadTime=0.100000;
         ffCount=1
         recoil="";
         autoFire=0
         aiRateOfFire=0.500000;
         aiRateOfFireDistance=500
         useAction=0
         useActionTitle="";
      };
      class FullAuto
      {
         ammo="G36a";
         multiplier=1
         burst=1
         displayName="G36 Auto";
         dispersion=0.000100;
         sound[]={"\G36A\g36a_full",1.000000,1};
         soundContinuous=0
         reloadTime=0.0750000;
         ffCount=1
         recoil="";
         autoFire=1
         aiRateOfFire=0.500000;
         aiRateOfFireDistance=500
         useAction=0
         useActionTitle="";
      };
   };
   class G36aMag: G36aBase
   {
      scopeMagazine=2
      picture="\G36a\m_G36.paa";
   };
   class G36a: G36aBase
   {
      scopeWeapon=2
      magazines[]={"G36aMag"};
   };
};

class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class ProxyG36: ProxyWeapon {};
};


...and play around with that settings.

Popkov

  • Cheater Apprentice
  • *
  • Posts: 12
    • View Profile
G36
« Reply #2 on: August 12, 2005, 09:55:27 am »
note: to give a unit the weapon in game you will need to put this in the units init line
; this addmagazine "G36aMag"; this addmagazine "G36aMag"; this addmagazine "G36aMag"; this addweapon "G36a", place the pbo in your addons folder, i think that then whenever you have the g36 in multiplayer it will go to that pbo and not your bis one, but people will get suspitious when the message, Playername has modified files G36a.pbo or somthing along those lines so make sure you play on non-clean ofp servers (that means servers which allow moddified files
ka na chatva dakat. TKC ki vaka :)

[TKC] maphax

  • Klass Klown
  • ***
  • Posts: 458
    • View Profile
G36
« Reply #3 on: August 13, 2005, 10:40:07 am »
ty popkov u r one of the first to giveminfo this way and i neeeded it..... i need to give a unit the opgtion to fly like a aplane and u gsve me the starters to get  there ;)
[TKC] MAPHAX  AT URE SERVICE

Popkov

  • Cheater Apprentice
  • *
  • Posts: 12
    • View Profile
G36
« Reply #4 on: August 15, 2005, 11:10:40 am »
:mrgreen:
ka na chatva dakat. TKC ki vaka :)

.Chapter.4

  • Online Villain
  • ***
  • Posts: 174
    • View Profile
    • http://www.farementocity.com
G36
« Reply #5 on: August 19, 2005, 02:48:58 pm »
When your done do you just save the Config.cpp and Convert it back to a PBO. and place it in your Addons Folder?





.Chapter.4

  • Online Villain
  • ***
  • Posts: 174
    • View Profile
    • http://www.farementocity.com
G36
« Reply #6 on: August 19, 2005, 03:07:10 pm »
I Must Be Doing Some Thing Wrong Can Any One Correct Me

Quote
Class definitions

class CfgPatches
   {

   class G36a
      {
      units[]={"SoldierWG36a"};
      weapons[]={"G36a"};
      requiredVersion=1.26;
      };
   };

class CfgAmmo
   {

   class default
      {
      };

   class BulletSingle:default
      {
      };

   class G36a:BulletSingle
      {
      hit=70;
      indirectHit=1;
      indirectHitRange=0.1;
      };
   };

class CfgWeapons
   {

   class Default
      {
      };

   class MGun:Default
      {
      };

   class Riffle:MGun
      {
      };

   class G36aBase:Riffle
      {
      scopeWeapon=2;
      scopeMagazine=2;
      model="\G36A\G36";
      modelOptics="\G36A\G36_optics";
      picture="\G36A\w_g36.paa";
      optics=1;
      opticsZoomMin=0.28;
      opticsZoomMax=0.7;
      distanceZoomMin=300;
      distanceZoomMax=300;
      displayName="$STR_DN_ADD_G36";
      displayNameMagazine="$STR_DN_ADD_G36_AMMO";
      shortNameMagazine="$STR_DN_ADD_G36_AMMO";
      drySound[]={"weapons\M16dry",0.0031623,1};
      magazines[]={"G36a"};
      modes[]={"Single","Burst","Fullauto"};

      class Single
         {
         ammo="G36a";
         multiplier=1;
         burst=1;
         displayName="$STR_DN_ADD_G36";
         dispersion=0.0002;
         sound[]={"\G36A\g36a.wss",1.0,1};
         soundContinuous=0;
         reloadTime=0.1;
         ffCount=1;
         recoil="riffleSingle";
         autoFire=0;
         aiRateOfFire=0.5;
         aiRateOfFireDistance=500;
         useAction=0;
         useActionTitle="";
         };

      class Burst
         {
         ammo="G36a";
         multiplier=1;
         burst=3;
         displayName="$STR_DN_ADD_G36_BURST";
         dispersion=0.001;
         sound[]={"\G36A\g36a_burst",1.0,1};
         soundContinuous=0;
         reloadTime=0.1;
         ffCount=3;
         recoil="riffleBurst3";
         autoFire=1;
         aiRateOfFire=0.5;
         aiRateOfFireDistance=500;
         useAction=0;
         useActionTitle="";
         };

      class FullAuto
         {
         ammo="G36a";
         multiplier=1;
         burst=1;
         displayName="G36 Auto";
         dispersion=0.0003;
         sound[]={"\G36A\g36a_full",1.0,1};
         soundContinuous=0;
         reloadTime=0.07;
         ffCount=1;
         recoil="riffleSingle";
         autoFire=1;
         aiRateOfFire=0.5;
         aiRateOfFireDistance=500;
         useAction=0;
         useActionTitle="";
         };
      };

   class G36aMag:G36aBase
      {
      scopeMagazine=2;
      picture="\G36a\m_G36.paa";
      };

   class G36a:G36aBase
      {
      scopeWeapon=2;
      magazines[]={"G36aMag"};
      };
   };

class CfgVehicles
   {

   class All
      {
      };

   class AllVehicles:All
      {
      };

   class Land:AllVehicles
      {
      };

   class Man:Land
      {
      };

   class Soldier:Man
      {
      };

   class SoldierWB:Soldier
      {
      };

   class SoldierWG36a:SoldierWB
      {
      displayName="$STR_DN_ADD_G36_SOLDIER";
      weapons[]={"G36a","Throw","Put"};
      magazines[]={"G36aMag","G36aMag","G36aMag","G36aMag","G36aMag","HandGrenade","HandGrenade","HandGrenade","HandGrenade","HandGrenade"};
      };
   };

class CfgNonAIVehicles
   {

   class ProxyWeapon
      {
      };

   class ProxyG36:ProxyWeapon
      {
      };
   ;





[TKC]Anothercheater

  • Heckler Apprentice
  • ****
  • Posts: 1349
    • View Profile
G36
« Reply #7 on: August 19, 2005, 06:57:19 pm »
u got a wrong ; in the last line

use this (fixed no recoil error message):

Quote
class CfgPatches
{
   class G36a
   {
      units[]={"SoldierWG36a"};
      weapons[]={"G36a"};
      requiredVersion=1.260000;
   };
};
class CfgAmmo
{
   class default {};
   class BulletSingle: default {};
   class G36a: BulletSingle
   {
      hit=11
      indirectHit=1
      indirectHitRange=0.100000;
   };
};
class CfgWeapons
{
   class Default {};
   class MGun: Default {};
   class Riffle: MGun {};
   class G36aBase: Riffle
   {      
      scopeWeapon=2
      scopeMagazine=2
      model="\G36A\G36";
      modelOptics="\G36A\G36_optics";
      picture="\G36A\w_g36.paa";
      optics=1
      opticsZoomMin=0.02;
      opticsZoomMax=0.24;
      distanceZoomMin=800;
      distanceZoomMax=40;
      displayName="$STR_DN_ADD_G36";
      displayNameMagazine="$STR_DN_ADD_G36_AMMO";
      shortNameMagazine="$STR_DN_ADD_G36_AMMO";
      drySound[]={"weapons\M16dry",0.003162,1};
      magazines[]={"G36a"};
      modes[]={"Single","Burst","Fullauto"};
      count=30
      
      class Single
      {
         ammo="G36a";
         multiplier=1
         burst=1
         displayName="G36";
         dispersion=0.000200;
         sound[]={"\G36A\g36a.wss",1.000000,1};
         soundContinuous=0
         reloadTime=0.00100000;
         ffCount=1
         recoil="Empty";
         autoFire=0
         aiRateOfFire=0.500000;
         aiRateOfFireDistance=500
         useAction=0
         useActionTitle="";
      };
      class Burst
      {
         ammo="G36a";
         multiplier=1
         burst=3
         displayName="G36 Burst";
         dispersion=0;
         sound[]={"\G36A\g36a_burst",1.000000,1};
         soundContinuous=0
         reloadTime=0.100000;
         ffCount=1
         recoil="Empty";
         autoFire=0
         aiRateOfFire=0.500000;
         aiRateOfFireDistance=500
         useAction=0
         useActionTitle="";
      };
      class FullAuto
      {
         ammo="G36a";
         multiplier=1
         burst=1
         displayName="G36 Auto";
         dispersion=0.000100;
         sound[]={"\G36A\g36a_full",1.000000,1};
         soundContinuous=0
         reloadTime=0.0750000;
         ffCount=1
         recoil="Empty";
         autoFire=1
         aiRateOfFire=0.500000;
         aiRateOfFireDistance=500
         useAction=0
         useActionTitle="";
      };
   };
   class G36aMag: G36aBase
   {
      scopeMagazine=2
      picture="\G36a\m_G36.paa";
   };
   class G36a: G36aBase
   {
      scopeWeapon=2
      magazines[]={"G36aMag"};
   };
};

class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class ProxyG36: ProxyWeapon {};
};