Advertisement
TroyT

BSF AA12 Config

Nov 17th, 2020 (edited)
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.63 KB | None | 0 0
  1. class CfgPatches
  2. {
  3.     class BSF_Weapons
  4.     {
  5.         author="Troy - BS-Free";
  6.         requiredVersion=1.6;
  7.         requiredAddons[]=
  8.         {
  9.             "a3_weapons_f",
  10.             "A3_Weapons_F_Enoch",
  11.             "A3_Data_F"
  12.         };
  13.         units[]=
  14.         {
  15.             "Weapon_BSF_AA12_1A_F"
  16.         };
  17.         weapons[]=
  18.         {
  19.             "BSF_AA12_1A_F"
  20.         };
  21.         magazines[]=
  22.         {
  23.             "BSF_12g_Drum_32Rnnd_Pellets",
  24.             "BSF_12g_Drum_32Rnnd_Slug"
  25.         };
  26.         ammo[]={};
  27.     };
  28. };
  29.  
  30. class Mode_SemiAuto;
  31. class Mode_Burst;
  32. class Mode_FullAuto;
  33.  
  34. class CfgMagazines
  35. {
  36.     class CA_Magazine;
  37.     class BSF_12g_Drum_32Rnnd_Pellets: CA_Magazine
  38.     {
  39.         author="Troy - BS-Free";
  40.         scope=2;
  41.         displayname="32 Round Drum, 12ga pellets";
  42.         displaynameshort="32Rnd Drum, 12ga. pellets";
  43.         descriptionshort="32Rnd Drum, 12ga. pellets";
  44.         picture="\BSF_Community_Addon\addons\BSF_Weapons\data\UI\icon_BSF_AA12_DrumGreen_CA.paa";
  45.         ammo="B_12Gauge_Pellets_Submunition";
  46.         initSpeed=380;
  47.         count=32;
  48.         mass=15;
  49.     };
  50.     class BSF_12g_Drum_32Rnnd_Slug: BSF_12g_Drum_32Rnnd_Pellets
  51.     {
  52.         author="Troy - BS-Free";
  53.         displayname="32 Round Drum, 12ga slug";
  54.         displaynameshort="32Rnd Drum, 12ga. slug";
  55.         descriptionshort="32Rnd Drum, 12ga. slug";
  56.         picture="\BSF_Community_Addon\addons\BSF_Weapons\data\UI\icon_BSF_AA12_DrumRed_CA.paa";
  57.         ammo="B_12Gauge_Slug_NoCartridge";
  58.         initSpeed=450;
  59.     };
  60. };
  61.  
  62. class CfgRecoils
  63. {
  64.     class recoil_default;
  65.     class BSF_AA12_Recoil: recoil_default
  66.     {
  67.         muzzleOuter[]={1,3,0.60000002,0.60000002};
  68.         kickBack[]={0.04,0.07};
  69.         temporary=0.02;
  70.     };
  71. };
  72.  
  73. class CfgWeapons
  74. {
  75.     class Rifle_Base_F;
  76.     class Rifle_Long_Base_F: Rifle_Base_F
  77.     {
  78.         class GunParticles;
  79.         class WeaponSlotsInfo;
  80.     };
  81.     class BSF_AA12_base_F: Rifle_Long_Base_F
  82.     {
  83.         model="BSF_Community_Addon\addons\BSF_Weapons\BSF_AA12.p3d";
  84.         picture="BSF_Community_Addon\addons\BSF_Weapons\data\UI\icon_BSF_AA12_X_CA.paa";
  85.         class Library
  86.         {
  87.             libTextDesc="The Atchisson AA-12 is a fully automatic combat shotgun. The shotgun fires in full-auto mode only. However, the relatively low cyclic rate of fire of around 300 rounds per minute enables the shooter to fire semi-automatically de facto with brief trigger pulls. It is fed from a 32-shell drum magazine.";
  88.         };
  89.         magazines[]=
  90.         {
  91.             "BSF_12g_Drum_32Rnnd_Pellets",
  92.             "BSF_12g_Drum_32Rnnd_Slug"
  93.         };
  94.         magazineWell[]= {"BSF_AA12"};
  95.         magazineReloadSwitchPhase=0.40700001;
  96.         handAnim[]=
  97.         {
  98.             "OFP2_ManSkeleton",
  99.             "\BSF_Community_Addon\addons\BSF_Weapons\data\anim\bsf_aa12.rtm"
  100.         };
  101.         reloadAction="GestureReloadMX";
  102.         discreteDistance[]={100};
  103.         discreteDistanceInitIndex=0;
  104.         recoil="BSF_AA12_Recoil";
  105.         initSpeed=-0.89999998;
  106.         inertia=0.69999999;
  107.         dexterity=1.4;
  108.         aimTransitionSpeed=1;
  109.         maxZeroing=300;
  110.         fireSpreadAngle=0.94999999;
  111.         cursor="sgun";
  112.  
  113.         drySound[]=
  114.         {
  115.             "A3\Sounds_F_Enoch\Assets\Arsenal\HunterShotgun_01\HunterShotgun_01_Shot_Dry_01",
  116.             0.50118721,
  117.             1,
  118.             10
  119.         };
  120.         reloadMagazineSound[]=
  121.         {
  122.             "A3\Sounds_F\weapons\MX\mx_reload",
  123.             1,
  124.             1,
  125.             10
  126.         };
  127.         class GunParticles: GunParticles
  128.         {
  129.             class Effect1
  130.             {
  131.                 effectName="StarterPistolCloud1";
  132.                 positionName="usti hlavne";
  133.                 directionName="konec hlavne";
  134.             };
  135.             class Effect2
  136.             {
  137.                 effectName="StarterPistolCloud2";
  138.                 positionName="konec hlavne";
  139.                 directionName="usti hlavne";
  140.             };
  141.         };
  142.         class WeaponSlotsInfo: WeaponSlotsInfo
  143.         {
  144.             class CowsSlot
  145.             {
  146.             };
  147.             class MuzzleSlot
  148.             {
  149.             };
  150.             class UnderBarrelSlot
  151.             {
  152.             };
  153.             class PointerSlot
  154.             {
  155.             };
  156.             mass=110;
  157.         };
  158.         modes[]=
  159.         {
  160.             "Single",
  161.             "Single_close",
  162.             "Single_far"
  163.         };
  164.         class Single: Mode_FullAuto
  165.         {
  166.             reloadTime=0.05;
  167.             // reloadTime=0.1;
  168.             dispersion=0.00145;
  169.             minRange=1;
  170.             minRangeProbab=0.1;
  171.             midRange=10;
  172.             midRangeProbab=0.80000001;
  173.             maxRange=50;
  174.             maxRangeProbab=0.15000001;
  175.             aiRateOfFire=1;
  176.             aiRateOfFireDistance=20;
  177.  
  178.             sounds[]=
  179.             {
  180.                 "StandardSound"
  181.             };
  182.             class StandardSound
  183.             {
  184.                 soundSetShot[]=
  185.                 {
  186.                     "HunterShotgun_01_Shot_SoundSet",
  187.                     "HunterShotgun_01_Tail_SoundSet"
  188.                 };
  189.             };
  190.  
  191.  
  192.         };
  193.         class Single_Close: Single
  194.         {
  195.             showToPlayer=0;
  196.             minRange=50;
  197.             minRangeProbab=0.1;
  198.             midRange=170;
  199.             midRangeProbab=0.80000001;
  200.             maxRange=250;
  201.             maxRangeProbab=0.15000001;
  202.             aiRateOfFire=2;
  203.             aiRateOfFireDistance=200;
  204.         };
  205.         class Single_Far: Single_Close
  206.         {
  207.             minRange=220;
  208.             minRangeProbab=0.1;
  209.             midRange=250;
  210.             midRangeProbab=0.69999999;
  211.             maxRange=350;
  212.             maxRangeProbab=0.15000001;
  213.             aiRateOfFire=4;
  214.             aiRateOfFireDistance=300;
  215.         };
  216.     };
  217.     class BSF_AA12_1A_F: BSF_AA12_base_F
  218.     {
  219.         author="Troy - BS-Free";
  220.         scope=2;
  221.         picture="\BSF_Community_Addon\addons\BSF_Weapons\data\UI\icon_BSF_AA12_X_CA.paa";
  222.         displayName="BSF AA12 1A";
  223.     };
  224.  
  225. };
  226.  
  227. class CfgVehicles
  228. {
  229.     class FxCartridge;
  230.     class BSF_12g_Drum_32Rnnd_Pellets: FxCartridge
  231.     {
  232.         author="Troy - BS-Free";
  233.         mapSize=0.07;
  234.         model="\BSF_Community_Addon\addons\BSF_Weapons\BSF_AA12_Drum.p3d";
  235.     }; 
  236.    
  237.     class BSF_12g_Drum_32Rnnd_Slug: FxCartridge
  238.     {
  239.         author="Troy - BS-Free";
  240.         mapSize=0.07;
  241.         model="\BSF_Community_Addon\addons\BSF_Weapons\BSF_AA12_Drum.p3d";
  242.     };
  243.  
  244.     class Weapon_Base_F;
  245.     class Weapon_BSF_AA12_1A_F: Weapon_Base_F
  246.     {
  247.         scope=2;
  248.         scopeCurator=2;
  249.         displayName="AA12 Auto Shotgun";
  250.         author="Troy - BS-Free";
  251.         editorCategory="EdCat_Weapons";
  252.         editorSubcategory="EdSubcat_AssaultRifles";
  253.         vehicleClass="WeaponsPrimary";
  254.         class TransportWeapons
  255.         {
  256.             class BSF_AA12_1A_F
  257.             {
  258.                 weapon="BSF_AA12_1A_F";
  259.                 count=1;
  260.             };
  261.         };
  262.         class TransportMagazines
  263.         {
  264.             class BSF_12g_Drum_32Rnnd_Pellets
  265.             {
  266.                 magazine="BSF_12g_Drum_32Rnnd_Pellets";
  267.                 count=1;
  268.             };
  269.         };
  270.     };
  271.  
  272. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement