player2_dz

configs

Jan 16th, 2014
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 67.42 KB | None | 0 0
  1.  
  2. class CfgPatches {
  3.  
  4.     class DZ_Items_Misc {
  5.         units = {"CookerItem_PrimusCooker", "ItemCompass", "ItemGPS", "ItemMap", "ItemRadio", "ItemWatch", "MiscItem_Tent", "MiscItem_HeatPack", "MiscItem_Matchbox", "MiscItem_Toolbox", "MiscItem_WoodPile", "MiscItem_BatteryD", "ItemTransmitter"};
  6.         weapons = {};
  7.         requiredVersion = 0.100000;
  8.         requiredAddons = {"DZ_Items"};
  9.     };
  10. };
  11.  
  12. class CfgRecipes {
  13.  
  14.     class Craft_Fire {
  15.         name = "Fire %TOOL2";
  16.         tools = {"MiscItem_Matchbox", "= burnable > 0.5"};
  17.         action = "statusChat ['You have fire ' + (displayName _tool2),'colorAction'];";
  18.     };
  19.  
  20.     class Craft_WoodStickChopping {
  21.         name = "Chop wood";
  22.         tools = {"WeaponItem_Hatchet"};
  23.         material = {"MiscItem_WoodenStick"};
  24.         results = {"MiscItem_Firewood"};
  25.         action = "statusChat ['You have chopped some wood','colorAction'];";
  26.     };
  27.  
  28.     class Craft_WoodPlankChopping {
  29.         name = "Chop wood";
  30.         tools = {"WeaponItem_Hatchet"};
  31.         material = {"MiscItem_WoodenPlank"};
  32.         results = {"MiscItem_Firewood"};
  33.         action = "statusChat ['You have chopped some wood','colorAction'];";
  34.     };
  35.  
  36.     class Craft_WoodPlankToStick {
  37.         name = "Create sticks";
  38.         tools = {"WeaponItem_Knife"};
  39.         material = {"MiscItem_WoodenPlank"};
  40.         results = {"MiscItem_WoodenStick", "MiscItem_WoodenStick"};
  41.         action = "statusChat ['You have made two sticks','colorAction'];";
  42.     };
  43.  
  44.     class Craft_TyreCutting {
  45.         name = "Tear to rubber";
  46.         tools = {"WeaponItem_Knife"};
  47.         material = {"VehiclePartsItem_CarWheel"};
  48.         results = {"MiscItem_RubberStrap", "MiscItem_RubberStrap", "MiscItem_RubberStrap", "MiscItem_RubberStrap"};
  49.         action = "statusChat ['You have torn the Tyre into scraps','colorAction'];";
  50.     };
  51.  
  52.     class Craft_WaterPurificationCanteen {
  53.         name = "Purify water";
  54.         material = {"Medical_PurificationTablets"};
  55.         tools = {"BottleBase"};
  56.         action = "statusChat ['You have purified the water','colorAction'];";
  57.     };
  58.  
  59.     class Craft_ImprovisedSpear {
  60.         name = "Create weapon";
  61.         material = {"MiscItem_WoodenStick", "WeaponItem_Knife"};
  62.         results = {"WeaponItem_ImprovisedSpear"};
  63.         action = "statusChat ['You have made a Spear','colorAction'];";
  64.     };
  65.  
  66.     class Craft_ImprovisedClub {
  67.         name = "Create weapon";
  68.         material = {"MiscItem_WoodenStick", "MiscItem_Nails"};
  69.         results = {"WeaponItem_ImprovisedClub"};
  70.         action = "statusChat ['','colorAction'];";
  71.     };
  72.  
  73.     class Craft_AttachGL_AK74 {
  74.         name = "Attach grenade launcher";
  75.         material = {"xxx_AK74", "xxx_GP25_GL"};
  76.         results = {"xxx_AK74GL"};
  77.         action = "statusChat ['','colorAction'];";
  78.     };
  79.  
  80.     class Craft_AttachGL_M4 {
  81.         name = "Attach grenade launcher";
  82.         material = {"xxx_M4", "xxx_M203_GL"};
  83.         results = {"xxx_M4GL"};
  84.         action = "statusChat ['','colorAction'];";
  85.     };
  86.  
  87.     class Craft_ImprovisedSilencer {
  88.         name = "Attach grenade launcher";
  89.         material = {"MiscItem_DuctTape", "MiscItem_MetalPipe"};
  90.         results = {"xxx_ImprovisedSilencer"};
  91.         action = "statusChat ['','colorAction'];";
  92.     };
  93.  
  94.     class Craft_ImprovisedCooker {
  95.         name = "Create shabby cooker";
  96.         material = {"TinCan", "TinCan"};
  97.         results = {"CookerItem_ImprovisedCooker"};
  98.         action = "statusChat ['','colorAction'];";
  99.     };
  100.  
  101.     class Craft_ImprovisedPack {
  102.         name = "Create backpack";
  103.         material = {"MiscItem_PlasticBag", "MiscItem_Twine"};
  104.         results = {"Bag_ImprovisedPack"};
  105.         action = "statusChat ['You have made a Sack','colorAction'];";
  106.     };
  107.  
  108.     class Craft_ExplosiveTripwire_Grenade {
  109.         name = "Create tripwire trap";
  110.         material = {"MiscItem_String", "HandGrenade"};
  111.         results = {"xxx_ExplosiveTripwire"};
  112.         action = "statusChat ['You have made a Tripwire','colorAction'];";
  113.     };
  114.  
  115.     class Craft_ExplosiveTripwire_Improvised {
  116.         name = "Create tripwire trap";
  117.         material = {"MiscItem_String", "xxx_ImprovisedGrenade"};
  118.         results = {"xxx_ExplosiveTripwire"};
  119.         action = "statusChat ['You have made a Tripwire','colorAction'];";
  120.     };
  121.  
  122.     class Decraft_ExplosiveTripwire_Improvised {
  123.         name = "Decompose";
  124.         material = {"xxx_ExplosiveTripwire"};
  125.         results = {"MiscItem_String", "xxx_ImprovisedGrenade"};
  126.         action = "statusChat ['You have decomposed a Tripwire','colorAction'];";
  127.     };
  128.  
  129.     class Craft_FlareTripwire {
  130.         name = "Create tripwire trap";
  131.         material = {"MiscItem_String", "xxx_EmergencyFlare_Red"};
  132.         results = {"xxx_FlareTripwire"};
  133.         action = "statusChat ['You have made a Flare Tripwire','colorAction'];";
  134.     };
  135.  
  136.     class Decraft_FlareTripwire {
  137.         name = "Decompose";
  138.         material = {"xxx_FlareTripwire"};
  139.         results = {"MiscItem_String", "xxx_EmergencyFlare_Red"};
  140.         action = "statusChat ['You have decomposed a Flare Tripwire','colorAction'];";
  141.     };
  142.  
  143.     class Craft_RoadFlareTripwire {
  144.         name = "Create tripwire trap";
  145.         material = {"MiscItem_String", "MiscItem_RoadFlare"};
  146.         results = {"xxx_RoadFlareTripwire"};
  147.         action = "statusChat ['You have made a Road Flare Tripwire','colorAction'];";
  148.     };
  149.  
  150.     class Decraft_RoadFlareTripwire {
  151.         name = "Decompose";
  152.         material = {"xxx_RoadFlareTripwire"};
  153.         results = {"MiscItem_String", "MiscItem_RoadFlare"};
  154.         action = "statusChat ['You have decomposed a Road Flare Tripwire','colorAction'];";
  155.     };
  156.  
  157.     class Craft_ImprovisedGrenade {
  158.         name = "Create explosive";
  159.         material = {"MiscItem_SprayCan_Tan", "MiscItem_RoadFlare"};
  160.         results = {"xxx_ImprovisedGrenade"};
  161.         action = "statusChat ['You have made an Improvised Grenade','colorAction'];";
  162.     };
  163.  
  164.     class Decraft_ImprovisedGrenade {
  165.         name = "Decompose";
  166.         material = {"xxx_ImprovisedGrenade"};
  167.         results = {"MiscItem_SprayCan_Tan", "MiscItem_RoadFlare"};
  168.         action = "statusChat ['You have decomposed an Improvised Grenade','colorAction'];";
  169.     };
  170.  
  171.     class Craft_ImprovisedTimeGrenade {
  172.         name = "Create explosive";
  173.         material = {"MiscItem_CookingClock", "xxx_ImprovisedGrenade"};
  174.         results = {" xxx_ImprovisedTimeGrenade"};
  175.         action = "statusChat ['You have made an Improvised Explosive Device','colorAction'];";
  176.     };
  177.  
  178.     class Decraft_ImprovisedTimeGrenade {
  179.         name = "Decompose";
  180.         material = {" xxx_ImprovisedTimeGrenade"};
  181.         results = {"MiscItem_CookingClock", "xxx_ImprovisedGrenade"};
  182.         action = "statusChat ['You have decomposed an Improvised Explosive Device','colorAction'];";
  183.     };
  184.  
  185.     class CombineMoney {
  186.         name = "Combine Money";
  187.         tools = {"MiscItem_Money", "MiscItem_Money"};
  188.         action = "[_owner,_tool1,_tool2] call player_combineMoney;";
  189.     };
  190. };
  191.  
  192. class CfgVehicles {
  193.     /*extern*/ class InventoryBase;
  194.  
  195.     class MiscItemBase: InventoryBase {
  196.         tooltip = "_text = _this call fnc_generateTooltip;_text";
  197.     };
  198.  
  199.     class PoweredItem: MiscItemBase {
  200.         attachments = {"BatteryD"};
  201.     };
  202.  
  203.     class ItemCompass: MiscItemBase {
  204.         scope = 2;
  205.         displayName = "$STR_ItemCompass";
  206.         descriptionShort = "A trekking compass that uses the magnetic field of Earth to function. Shows not only N, S, E and W, but also the exact bearing.";
  207.         model = "\DZ\items\map\compass\compass.p3d";
  208.         selectionArrow = "arrow";
  209.         simulation = "ItemCompass";
  210.         rotateDropped = 1;
  211.         rotateAlways = 1;
  212.     };
  213.  
  214.     class ItemGPS: MiscItemBase {
  215.         scope = 2;
  216.         displayName = "$STR_ItemGPS";
  217.         descriptionShort = "...";
  218.         model = "\DZ\items\map\gps\gps.p3d";
  219.         simulation = "ItemGPS";
  220.         absorbency = 0.500000;
  221.     };
  222.  
  223.     class ItemTransmitter: PoweredItem {
  224.         scope = 2;
  225.         displayName = "$STR_ItemTransmitter";
  226.         descriptionShort = "...";
  227.         model = "\dz\items\Misc\WalkieTalkie.p3d";
  228.         absorbency = 0.500000;
  229.         itemSize = {1, 2};
  230.         simulation = "ItemTransmitter";
  231.         rotateDropped = 1;
  232.         rotateAlways = 1;
  233.         range = 1000;
  234.         attachments = {"BatteryD"};
  235.         energyResources = {{"power", 4.000000}};
  236.     };
  237.  
  238.     class ItemRadio: PoweredItem {
  239.         scope = 2;
  240.         displayName = "$STR_ItemRadio";
  241.         descriptionShort = "...";
  242.         model = "\dz\structures\Furniture\Eletrical_appliances\radio_b\radio_b.p3d";
  243.         itemSize = {2, 2};
  244.         absorbency = 0.500000;
  245.         attachments = {"BatteryD"};
  246.         energyResources = {{"power", 0.400000}};
  247.         simulation = "ItemRadio";
  248.  
  249.         class Channels {
  250.  
  251.             class Cro1 {
  252.                 name = "Cro1";
  253.                 url = "http://amp.cesnet.cz:8000/cro1.ogg";
  254.             };
  255.  
  256.             class Cro2 {
  257.                 name = "Cro2";
  258.                 url = "http://amp.cesnet.cz:8000/cro2.ogg";
  259.             };
  260.  
  261.             class Beat {
  262.                 name = "Beat";
  263.                 url = "http://icecast2.play.cz:8000/radiobeat128.ogg";
  264.             };
  265.  
  266.             class Classic {
  267.                 name = "Classic";
  268.                 url = "http://audio-ogg.ibiblio.org:8000/wcpe.ogg";
  269.             };
  270.  
  271.             class Absolute60s {
  272.                 name = "Absolute 60s";
  273.                 url = "http://icecast.as34763.net:80/a632.ogg";
  274.             };
  275.  
  276.             class Absolute70s {
  277.                 name = "Absolute 70s";
  278.                 url = "http://icecast.as34763.net:80/a732.ogg";
  279.             };
  280.  
  281.             class Absolute80s {
  282.                 name = "Absolute 80s";
  283.                 url = "http://icecast.timlradio.co.uk/a832.ogg";
  284.             };
  285.  
  286.             class Absolute90s {
  287.                 name = "Absolute 90s";
  288.                 url = "http://icecast.timlradio.co.uk/a932.ogg";
  289.             };
  290.  
  291.             class Absolute00s {
  292.                 name = "Absolute 00s";
  293.                 url = "http://icecast.timlradio.co.uk/a032.ogg";
  294.             };
  295.         };
  296.     };
  297.  
  298.     class ItemWatch: MiscItemBase {
  299.         scope = 2;
  300.         displayName = "$STR_ItemWatch";
  301.         descriptionShort = "...";
  302.         model = "\DZ\items\map\Watch\Watch.p3d";
  303.         reversed = 0;
  304.         selectionDate1 = "date1";
  305.         selectionDate2 = "date2";
  306.         selectionDay = "day";
  307.         simulation = "ItemWatch";
  308.         rotateDropped = 1;
  309.         rotateAlways = 1;
  310.     };
  311.  
  312.     class TrashItem_TinCan: MiscItemBase {
  313.         scope = 2;
  314.         displayName = "$STR_EQUIP_NAME_33";
  315.         descriptionShort = "An empty tin can with the label torn off. Hard to say what it used to contain.";
  316.         model = "\dz\Items\Misc\EmptyTinCan.p3d";
  317.         ammo = "TinCan";
  318.         itemSize = {1, 2};
  319.     };
  320.  
  321.     class MiscItem_Tent: MiscItemBase {
  322.         scope = 2;
  323.         displayName = "$STR_EQUIP_NAME_20";
  324.         descriptionShort = "A camping tent that can be pitched, allowing you to extent storage safe from others.";
  325.         model = "\dz\Items\Misc\CampingTent.p3d";
  326.         itemSize = {3, 2};
  327.         rotateDropped = 1;
  328.         rotateAlways = 1;
  329.         absorbency = 0.100000;
  330.  
  331.         class ItemActions {
  332.  
  333.             class Pitch {
  334.                 text = "$STR_PITCH_TENT";
  335.                 script = "spawn player_tentPitch;";
  336.             };
  337.         };
  338.     };
  339.  
  340.     class MiscItem_HeatPack: MiscItemBase {
  341.         scope = 2;
  342.         displayName = "$STR_EQUIP_NAME_42";
  343.         descriptionShort = "A heating pack that heats when you start the crystallization process. Used to provide quick warmth to your body.";
  344.         model = "\dz\Items\Misc\Heatpack.p3d";
  345.  
  346.         class UserActions {
  347.  
  348.             class Drink {
  349.                 displayNameDefault = "Use Heatpack";
  350.                 displayName = "Use";
  351.                 position = "action";
  352.                 radius = 2;
  353.                 onlyForPlayer = 0;
  354.                 condition = "true";
  355.                 statement = "[this,_name,_person] spawn player_useItem;";
  356.                 soundEffects = {""};
  357.                 playerAction = "playerBandage";
  358.                 statusText = "You have used a %1";
  359.                 trashItem = "";
  360.             };
  361.         };
  362.     };
  363.  
  364.     class MiscItem_WoodPile: MiscItemBase {
  365.         scope = 2;
  366.         displayName = "$STR_EQUIP_NAME_40";
  367.         descriptionShort = "A small pile of freshly chopped wood that can be used for making a fireplace and various other things.";
  368.         model = "\dz\Items\Misc\WoodPile.p3d";
  369.         itemSize = {2, 2};
  370.         rotateDropped = 1;
  371.         rotateAlways = 1;
  372.         absorbency = 0.300000;
  373.     };
  374.  
  375.     class MiscItem_WoodenPlank: MiscItemBase {
  376.         scope = 2;
  377.         displayName = "Wooden Plank";
  378.         descriptionShort = "A solid wooden plank. Commonly used as a base construction material.";
  379.         model = "\dz\Items\Misc\WoodenPlank.p3d";
  380.         itemSize = {1, 4};
  381.         rotateDropped = 1;
  382.         rotateAlways = 1;
  383.         absorbency = 0.200000;
  384.     };
  385.  
  386.     class MiscItem_BirchBark: MiscItemBase {
  387.         scope = 2;
  388.         displayName = "Birch bark";
  389.         descriptionShort = "Dry bark from a birch tree. It comes in handy as a base for starting a fire, if paper is scarce.";
  390.         model = "\dz\Items\Misc\WoodenPlank.p3d";
  391.         absorbency = 1;
  392.         rotateDropped = 1;
  393.         rotateAlways = 1;
  394.     };
  395.  
  396.     class MiscItem_Stone: MiscItemBase {
  397.         scope = 2;
  398.         displayName = "Stone";
  399.         descriptionShort = "A big chunk of a common mineral, shaped by the elements.";
  400.         model = "\dz\gear\consumables\Stone.p3d";
  401.         itemSize = {2, 1};
  402.     };
  403.  
  404.     class MiscItem_DuctTape: MiscItemBase {
  405.         scope = 2;
  406.         displayName = "Duct Tape";
  407.         descriptionShort = "Duct tape or duck tape is cloth- or scrim-backed pressure-sensitive tape often coated with polyethylene. It has many uses including protecting objects from humidity, sticking objects together or abduction.";
  408.         model = "\dz\Items\Misc\DuctTape.p3d";
  409.         itemSize = {1, 1};
  410.     };
  411.  
  412.     class MiscItem_Firewood: MiscItemBase {
  413.         scope = 2;
  414.         displayName = "Firewood";
  415.         descriptionShort = "Dry wood chopped into convenient pieces. Ready for setting up a fireplace.";
  416.         model = "\dz\items\Misc\Firewood.p3d";
  417.         absorbency = 0.300000;
  418.         itemSize = {2, 2};
  419.  
  420.         class EventHandlers {
  421.             init = "(_this select 0) setVariable ["burnable", 0.7]";
  422.         };
  423.     };
  424.  
  425.     class MiscItem_SheetMetal: MiscItemBase {
  426.         scope = 2;
  427.         displayName = "Sheet metal";
  428.         descriptionShort = "Sheet metal is metal formed by an industrial process into thin, flat pieces. It is one of the fundamental forms used in metalworking and it can be cut and bent into a variety of shapes. Countless everyday objects are constructed with sheet metal.";
  429.         model = "dz\items\Misc\WoodPile.p3d";
  430.         rotateDropped = 1;
  431.         rotateAlways = 1;
  432.         itemSize = {4, 4};
  433.     };
  434.  
  435.     class MiscItem_LeadRod: MiscItemBase {
  436.         scope = 2;
  437.         displayName = "lead rod";
  438.         descriptionShort = "...";
  439.         model = "\dz\items\Misc\Wooden_stick.p3d";
  440.         rotateDropped = 1;
  441.         rotateAlways = 1;
  442.         itemSize = {1, 3};
  443.     };
  444.  
  445.     class MiscItem_Shard: MiscItemBase {
  446.         scope = 2;
  447.         displayName = "Shard";
  448.         descriptionShort = "A shard of glass. Looks pretty sharp around the edges.";
  449.         model = "\dz\items\Misc\Wooden_stick.p3d";
  450.     };
  451.  
  452.     class MiscItem_ButaneTorch: MiscItemBase {
  453.         scope = 2;
  454.         displayName = "Butane Torch";
  455.         descriptionShort = "...";
  456.         model = "\dz\items\Misc\ButaneTorch.p3d";
  457.         attachments = {"ButaneTorchCanister"};
  458.         rotateDropped = 1;
  459.  
  460.         class UserActions {
  461.  
  462.             class RemoveCanister {
  463.                 displayNameDefault = "Remove Canister";
  464.                 displayName = "Remove Canister";
  465.                 position = "action";
  466.                 radius = 2;
  467.                 onlyForPlayer = 0;
  468.                 condition = "!isNull (this itemInSlot 'ButaneTorchCanister')";
  469.                 statement = "player moveToInventory (this itemInSlot 'ButaneTorchCanister');";
  470.             };
  471.         };
  472.         itemSize = {1, 2};
  473.     };
  474.  
  475.     class MiscItem_RoadFlare: MiscItemBase {
  476.         scope = 2;
  477.         displayName = "Road flare";
  478.         descriptionShort = "Road flares are commonly used in traffic or emergency situations for signalisation. They burn with bright red light.";
  479.         model = "\dz\items\Misc\Road_flare.p3d";
  480.     };
  481.  
  482.     class MiscItem_CookingClock: MiscItemBase {
  483.         scope = 2;
  484.         displayName = "Cooking clock";
  485.         descriptionShort = "Plastic cooking clock that allows you to set it to up to 1 hour.";
  486.         model = "\dz\items\Misc\Cooking_clock.p3d";
  487.         absorbency = 0.500000;
  488.     };
  489.  
  490.     class MiscItem_WalkieTalkie: MiscItemBase {
  491.         scope = 2;
  492.         displayName = "WalkieTalkie";
  493.         descriptionShort = "...";
  494.         model = "\dz\items\Misc\WalkieTalkie.p3d";
  495.         rotateDropped = 1;
  496.         rotateAlways = 1;
  497.         itemSize = {1, 2};
  498.         absorbency = 0.500000;
  499.     };
  500.  
  501.     class MiscItem_Money: MiscItemBase {
  502.         scope = 2;
  503.         displayName = "Banknotes";
  504.         descriptionShort = "Chernarussian money, the Korunas.";
  505.         model = "\dz\items\Misc\Money_100.p3d";
  506.         absorbency = 0.900000;
  507.         rotateDropped = 1;
  508.         rotateAlways = 1;
  509.         maxAmmo = 100000;
  510.         storeVariables = {"note", "quantity", "modifiers"};
  511.         quantity = "format ['%1', _this getVariable ['quantity',0]]";
  512.     };
  513.  
  514.     class WeaponItem_ImprovisedSpear: MiscItemBase {
  515.         scope = 2;
  516.         displayName = "Improvised spear";
  517.         descriptionShort = "...";
  518.         model = "\dz\weapons\Infantry\Meele\Hatchet\Hatchet.p3d";
  519.         itemSize = {1, 3};
  520.         absorbency = 0.200000;
  521.     };
  522.  
  523.     class WeaponItem_ImprovisedClub: MiscItemBase {
  524.         scope = 2;
  525.         displayName = "Improvised club";
  526.         descriptionShort = "...";
  527.         model = "\dz\weapons\Infantry\Meele\Hatchet\Hatchet.p3d";
  528.         itemSize = {1, 3};
  529.         absorbency = 0.200000;
  530.     };
  531.  
  532.     class xxx_ImprovisedSilencer: MiscItemBase {
  533.         scope = 2;
  534.         displayName = "Improvised silencer";
  535.         descriptionShort = "...";
  536.         model = "\dz\weapons\Infantry\AssaultRifles\AK\AKSuppressor.p3d";
  537.         itemSize = {1, 2};
  538.     };
  539.  
  540.     class xxx_ImprovisedGrenade: MiscItemBase {
  541.         scope = 2;
  542.         displayName = "Improvised grenade";
  543.         descriptionShort = "...";
  544.         model = "\dz\items\Weapons\Improvised_spray_grenade.p3d";
  545.         itemSize = {1, 2};
  546.         rotateDropped = 1;
  547.     };
  548.  
  549.     class xxx_ImprovisedTimeGrenade: MiscItemBase {
  550.         scope = 2;
  551.         displayName = "Improvised timed grenade";
  552.         descriptionShort = "...";
  553.         model = "\dz\items\Weapons\Improvised_timed_spray_grenade.p3d";
  554.         itemSize = {1, 2};
  555.         rotateDropped = 1;
  556.         absorbency = 0.500000;
  557.     };
  558.  
  559.     class xxx_EmergencyFlare_Red: MiscItemBase {
  560.         scope = 2;
  561.         displayName = "Emergency flare (red)";
  562.         descriptionShort = "...";
  563.         model = "\dz\weapons\arma2\frag_RGD5.p3d";
  564.     };
  565.  
  566.     class xxx_ExplosiveTripwire: MiscItemBase {
  567.         scope = 2;
  568.         displayName = "Tripwire";
  569.         descriptionShort = "...";
  570.         model = "\dz\weapons\Infantry\Meele\Hatchet\Hatchet.p3d";
  571.         itemSize = {2, 1};
  572.         absorbency = 0.100000;
  573.     };
  574.  
  575.     class xxx_FlareTripwire: MiscItemBase {
  576.         scope = 2;
  577.         displayName = "Flare tripwire";
  578.         descriptionShort = "...";
  579.         model = "\dz\weapons\Infantry\Meele\Hatchet\Hatchet.p3d";
  580.     };
  581.  
  582.     class xxx_RoadFlareTripwire: MiscItemBase {
  583.         scope = 2;
  584.         displayName = "Road flare tripwire";
  585.         descriptionShort = "...";
  586.         model = "\dz\weapons\Infantry\Meele\Hatchet\Hatchet.p3d";
  587.     };
  588.  
  589.     class MiscItem_WoodenStick: MiscItemBase {
  590.         scope = 2;
  591.         displayName = "Wooden stick";
  592.         descriptionShort = "...";
  593.         model = "\dz\items\Misc\Wooden_stick.p3d";
  594.         itemSize = {1, 3};
  595.         rotateDropped = 1;
  596.         rotateAlways = 1;
  597.         absorbency = 0.200000;
  598.     };
  599.  
  600.     class MiscItem_RubberStrap: MiscItemBase {
  601.         scope = 2;
  602.         displayName = "Rubber strap";
  603.         descriptionShort = "...";
  604.         model = "\dz\items\Misc\Rubber_straps.p3d";
  605.         itemSize = {2, 1};
  606.     };
  607.  
  608.     class MiscItem_Nails: MiscItemBase {
  609.         scope = 2;
  610.         displayName = "Nails";
  611.         descriptionShort = "...";
  612.         model = "\dz\Items\Misc\WoodenPlank.p3d";
  613.         rotateDropped = 1;
  614.         rotateAlways = 1;
  615.     };
  616.  
  617.     class MiscItem_SprayCan_Tan: MiscItemBase {
  618.         scope = 2;
  619.         displayName = "Spraypaint (tan)";
  620.         descriptionShort = "...";
  621.         model = "\dz\items\Misc\SprayCanister.p3d";
  622.         itemSize = {1, 2};
  623.         rotateDropped = 1;
  624.     };
  625.  
  626.     class MiscItem_MetalPipe: MiscItemBase {
  627.         scope = 2;
  628.         displayName = "Metal pipe";
  629.         descriptionShort = "...";
  630.         model = "\dz\items\Drinks\Canteen.p3d";
  631.         itemSize = {1, 3};
  632.     };
  633.  
  634.     class MiscItem_Twine: MiscItemBase {
  635.         scope = 2;
  636.         displayName = "Twine";
  637.         descriptionShort = "...";
  638.         model = "\dz\items\Drinks\Canteen.p3d";
  639.     };
  640.  
  641.     class MiscItem_PlasticBag: MiscItemBase {
  642.         scope = 2;
  643.         displayName = "Plastic bag";
  644.         descriptionShort = "A plastic bag that one usually gets in a grocery store. Has a “Samoshka” logo on it.";
  645.         model = "\dz\items\Drinks\Canteen.p3d";
  646.     };
  647.  
  648.     class MiscItem_String: MiscItemBase {
  649.         scope = 2;
  650.         displayName = "String";
  651.         descriptionShort = "Brand new acoustic guitar B string. Strength 11.";
  652.         model = "\dz\items\Misc\String_MetalWire.p3d";
  653.     };
  654.  
  655.     class MiscItem_PurificationTablets: MiscItemBase {
  656.         scope = 2;
  657.         displayName = "Purification tablets";
  658.         model = "\dz\items\Medical\Water_purification_tablets.p3d";
  659.     };
  660.     /*extern*/ class BagBase;
  661.  
  662.     class Bag_ImprovisedPack: BagBase {
  663.         scope = 2;
  664.         displayName = "Scavenger Backpack";
  665.         model = "\dz\characters\backpacks\alice.p3d";
  666.         itemsCargoSize = {3, 2};
  667.     };
  668. };
  669.  
  670. enum {
  671.     destructengine = 2,
  672.     destructdefault = 6,
  673.     destructwreck = 7,
  674.     destructtree = 3,
  675.     destructtent = 4,
  676.     stabilizedinaxisx = 1,
  677.     stabilizedinaxisy = 2,
  678.     destructno = 0,
  679.     stabilizedinaxesboth = 3,
  680.     stabilizedinaxesnone = 0,
  681.     destructman = 5,
  682.     destructbuilding = 1
  683. }
  684.  
  685.  
  686. class CfgPatches {
  687.  
  688.     class DZ_Weapons_Shotguns {
  689.         units = {};
  690.         weapons = {};
  691.         requiredVersion = 0.100000;
  692.         requiredAddons = {"DZ_Data", "DZ_Sounds_Weapons"};
  693.     };
  694. };
  695.  
  696. class cfgRecoils {
  697.     pistolBase = {0, 0, 0, 0.080000, 0.003000, 0.020000, 0.050000, -0.003000, -0.033000, 0.050000, 0, 0};
  698.     subMachineGunBase = {0, 0, 0, 0.060000, 0.005000, 0.005000, 0.050000, 0, -0.020000, 0.060000, -0.005000, 0.005000, 0.050000, 0, 0};
  699.     assaultRifleBase = {0, 0, 0, 0.060000, 0.010000, 0.010000, 0.100000, 0, -0.020000, 0.100000, -0.010000, 0.010000, 0.050000, 0, 0};
  700.     machinegunBase = {0, 0, 0, 0.080000, 0.010000, 0.040000, 0.050000, -0.003000, -0.010000, 0.200000, 0, 0};
  701.     launcherBase = {0, 0, 0, 0.010000, 0, 0.050000, 0.025000, 0, 0};
  702.     AK74Recoil = {0, 0, 0, 0.060000, 0.010000, 0.012000, 0.100000, 0, -0.020000, 0.100000, -0.010000, 0.010000, 0.050000, 0, 0};
  703.     M249Recoil = {0, 0, 0, 0.070000, 0.002000, 0.010000, 0.035000, -0.002000, -0.020000, 0.050000, 0, 0};
  704.     M249RecoilProne = {0, 0, 0, 0.100000, 0.003000, 0.004000, 0.050000, -0.003000, -0.008000, 0.050000, 0, 0};
  705.     M4Recoil = {0, 0, 0, 0.060000, 0.010000, 0.010000, 0.100000, 0, -0.018000, 0.100000, -0.010000, 0.010000, 0.050000, 0, 0};
  706.     PKMRecoil = {0, 0, 0, 0.100000, 0.030000, 0.040000, 0.050000, -0.030000, -0.080000, 0.050000, 0, 0};
  707.     PKMRecoilProne = {0, 0, 0, 0.100000, 0.003000, 0.005000, 0.050000, -0.003000, -0.010000, 0.050000, 0, 0};
  708.     recoil_single_primary_1outof10 = {0.040000, "0.006*(  (1/7))", "0.05*.5*(  (1/7))", 0.010000, "0.009*(  (1/7))", 0, 0.045000, 0, "-0.025*.5*(  (1/7))"};
  709.     recoil_single_primary_2outof10 = {0.040000, "0.006*(  (2/7))", "0.05*.5*(  (2/7))", 0.010000, "0.009*(  (2/7))", 0, 0.045000, 0, "-0.025*.5*(  (2/7))"};
  710.     recoil_single_primary_3outof10 = {0.040000, "0.006*(  (3/7))", "0.05*.5*(  (3/7))", 0.010000, "0.009*(  (3/7))", 0, 0.045000, 0, "-0.025*.5*(  (3/7))"};
  711.     recoil_single_primary_4outof10 = {0.040000, "0.006*(  (4/7))", "0.05*.5*(  (4/7))", 0.010000, "0.009*(  (4/7))", 0, 0.045000, 0, "-0.025*.5*(  (4/7))"};
  712.     recoil_single_primary_5outof10 = {0.040000, "0.006*(  (5/7))", "0.05*.5*(  (5/7))", 0.010000, "0.009*(  (5/7))", 0, 0.045000, 0, "-0.025*.5*(  (5/7))"};
  713.     recoil_single_primary_6outof10 = {0.040000, "0.006*(  (6/7))", "0.05*.5*(  (6/7))", 0.010000, "0.009*(  (6/7))", 0, 0.045000, 0, "-0.025*.5*(  (6/7))"};
  714.     recoil_single_primary_7outof10 = {0.040000, "0.006*(  (7/7))", "0.05*.5*(  (7/7))", 0.010000, "0.009*(  (7/7))", 0, 0.045000, 0, "-0.025*.5*(  (7/7))"};
  715.     recoil_single_primary_8outof10 = {0.040000, "0.006*(  (8/7))", "0.05*.5*(  (8/7))", 0.010000, "0.009*(  (8/7))", 0, 0.045000, 0, "-0.025*.5*(  (8/7))"};
  716.     recoil_single_primary_9outof10 = {0.040000, "0.006*(  (9/7))", "0.05*.5*(  (9/7))", 0.010000, "0.009*(  (9/7))", 0, 0.045000, 0, "-0.025*.5*(  (9/7))"};
  717.     recoil_single_primary_10outof10 = {0.040000, "0.006*( (10/7))", "0.05*.5*( (10/7))", 0.010000, "0.009*( (10/7))", 0, 0.045000, 0, "-0.025*.5*( (10/7))"};
  718.     recoil_single_primary_prone_1outof10 = {0.035000, "0.004*(  (1/7))", "0.035*.5*(  (1/7))", 0.010000, "0.006*(  (1/7))", 0, 0.045000, 0, "-0.025*.25*(  (1/7))", 0.010000, 0, "-0.025*.25*(  (1/7))"};
  719.     recoil_single_primary_prone_2outof10 = {0.035000, "0.004*(  (2/7))", "0.035*.5*(  (2/7))", 0.010000, "0.006*(  (2/7))", 0, 0.045000, 0, "-0.025*.25*(  (2/7))", 0.010000, 0, "-0.025*.25*(  (2/7))"};
  720.     recoil_single_primary_prone_3outof10 = {0.035000, "0.004*(  (3/7))", "0.035*.5*(  (3/7))", 0.010000, "0.006*(  (3/7))", 0, 0.045000, 0, "-0.025*.25*(  (3/7))", 0.010000, 0, "-0.025*.25*(  (3/7))"};
  721.     recoil_single_primary_prone_4outof10 = {0.035000, "0.004*(  (4/7))", "0.035*.5*(  (4/7))", 0.010000, "0.006*(  (4/7))", 0, 0.045000, 0, "-0.025*.25*(  (4/7))", 0.010000, 0, "-0.025*.25*(  (4/7))"};
  722.     recoil_single_primary_prone_5outof10 = {0.035000, "0.004*(  (5/7))", "0.035*.5*(  (5/7))", 0.010000, "0.006*(  (5/7))", 0, 0.045000, 0, "-0.025*.25*(  (5/7))", 0.010000, 0, "-0.025*.25*(  (5/7))"};
  723.     recoil_single_primary_prone_6outof10 = {0.035000, "0.004*(  (6/7))", "0.035*.5*(  (6/7))", 0.010000, "0.006*(  (6/7))", 0, 0.045000, 0, "-0.025*.25*(  (6/7))", 0.010000, 0, "-0.025*.25*(  (6/7))"};
  724.     recoil_single_primary_prone_7outof10 = {0.035000, "0.004*(  (7/7))", "0.035*.5*(  (7/7))", 0.010000, "0.006*(  (7/7))", 0, 0.045000, 0, "-0.025*.25*(  (7/7))", 0.010000, 0, "-0.025*.25*(  (7/7))"};
  725.     recoil_single_primary_prone_8outof10 = {0.035000, "0.004*(  (8/7))", "0.035*.5*(  (8/7))", 0.010000, "0.006*(  (8/7))", 0, 0.045000, 0, "-0.025*.25*(  (8/7))", 0.010000, 0, "-0.025*.25*(  (8/7))"};
  726.     recoil_single_primary_prone_9outof10 = {0.035000, "0.004*(  (9/7))", "0.035*.5*(  (9/7))", 0.010000, "0.006*(  (9/7))", 0, 0.045000, 0, "-0.025*.25*(  (9/7))", 0.010000, 0, "-0.025*.25*(  (9/7))"};
  727.     recoil_single_primary_prone_10outof10 = {0.035000, "0.004*( (10/7))", "0.035*.5*( (10/7))", 0.010000, "0.006*( (10/7))", 0, 0.045000, 0, "-0.025*.25*( (10/7))", 0.010000, 0, "-0.025*.25*( (10/7))"};
  728.     recoil_auto_primary_1outof10 = {0, "0.006*(  (1/7))", "0.035*.5*(  (1/7))", 0.040000, "0.009*(  (1/7))", "0.015*(  (1/7))", 0.025000, 0, "0.0125*(  (1/7))"};
  729.     recoil_auto_primary_2outof10 = {0, "0.006*(  (2/7))", "0.035*.5*(  (2/7))", 0.040000, "0.009*(  (2/7))", "0.015*(  (2/7))", 0.025000, 0, "0.0125*(  (2/7))"};
  730.     recoil_auto_primary_3outof10 = {0, "0.006*(  (3/7))", "0.035*.5*(  (3/7))", 0.040000, "0.009*(  (3/7))", "0.015*(  (3/7))", 0.025000, 0, "0.0125*(  (3/7))"};
  731.     recoil_auto_primary_4outof10 = {0, "0.006*(  (4/7))", "0.035*.5*(  (4/7))", 0.040000, "0.009*(  (4/7))", "0.015*(  (4/7))", 0.025000, 0, "0.0125*(  (4/7))"};
  732.     recoil_auto_primary_5outof10 = {0, "0.006*(  (5/7))", "0.035*.5*(  (5/7))", 0.040000, "0.009*(  (5/7))", "0.015*(  (5/7))", 0.025000, 0, "0.0125*(  (5/7))"};
  733.     recoil_auto_primary_6outof10 = {0, "0.006*(  (6/7))", "0.035*.5*(  (6/7))", 0.040000, "0.009*(  (6/7))", "0.015*(  (6/7))", 0.025000, 0, "0.0125*(  (6/7))"};
  734.     recoil_auto_primary_7outof10 = {0, "0.006*(  (7/7))", "0.035*.5*(  (7/7))", 0.040000, "0.009*(  (7/7))", "0.015*(  (7/7))", 0.025000, 0, "0.0125*(  (7/7))"};
  735.     recoil_auto_primary_8outof10 = {0, "0.006*(  (8/7))", "0.035*.5*(  (8/7))", 0.040000, "0.009*(  (8/7))", "0.015*(  (8/7))", 0.025000, 0, "0.0125*(  (8/7))"};
  736.     recoil_auto_primary_9outof10 = {0, "0.006*(  (9/7))", "0.035*.5*(  (9/7))", 0.040000, "0.009*(  (9/7))", "0.015*(  (9/7))", 0.025000, 0, "0.0125*(  (9/7))"};
  737.     recoil_auto_primary_10outof10 = {0, "0.006*( (10/7))", "0.035*.5*( (10/7))", 0.040000, "0.009*( (10/7))", "0.015*( (10/7))", 0.025000, 0, "0.0125*( (10/7))"};
  738.     recoil_auto_primary_prone_1outof10 = {0, "0.004*(  (1/7))", "0.035*.25*(  (1/7))", 0.035000, "0.006*(  (1/7))", "0.035*(  (1/7))", 0.010000, "0.006*(  (1/7))", 0, 0.012000, 0, "-0.0125*(  (1/7))", 0.010000, 0, "-0.0025*(  (1/7))"};
  739.     recoil_auto_primary_prone_2outof10 = {0, "0.004*(  (2/7))", "0.035*.25*(  (2/7))", 0.035000, "0.006*(  (2/7))", "0.035*(  (2/7))", 0.010000, "0.006*(  (2/7))", 0, 0.012000, 0, "-0.0125*(  (2/7))", 0.010000, 0, "-0.0025*(  (2/7))"};
  740.     recoil_auto_primary_prone_3outof10 = {0, "0.004*(  (3/7))", "0.035*.25*(  (3/7))", 0.035000, "0.006*(  (3/7))", "0.035*(  (3/7))", 0.010000, "0.006*(  (3/7))", 0, 0.012000, 0, "-0.0125*(  (3/7))", 0.010000, 0, "-0.0025*(  (3/7))"};
  741.     recoil_auto_primary_prone_4outof10 = {0, "0.004*(  (4/7))", "0.035*.25*(  (4/7))", 0.035000, "0.006*(  (4/7))", "0.035*(  (4/7))", 0.010000, "0.006*(  (4/7))", 0, 0.012000, 0, "-0.0125*(  (4/7))", 0.010000, 0, "-0.0025*(  (4/7))"};
  742.     recoil_auto_primary_prone_5outof10 = {0, "0.004*(  (5/7))", "0.035*.25*(  (5/7))", 0.035000, "0.006*(  (5/7))", "0.035*(  (5/7))", 0.010000, "0.006*(  (5/7))", 0, 0.012000, 0, "-0.0125*(  (5/7))", 0.010000, 0, "-0.0025*(  (5/7))"};
  743.     recoil_auto_primary_prone_6outof10 = {0, "0.004*(  (6/7))", "0.035*.25*(  (6/7))", 0.035000, "0.006*(  (6/7))", "0.035*(  (6/7))", 0.010000, "0.006*(  (6/7))", 0, 0.012000, 0, "-0.0125*(  (6/7))", 0.010000, 0, "-0.0025*(  (6/7))"};
  744.     recoil_auto_primary_prone_7outof10 = {0, "0.004*(  (7/7))", "0.035*.25*(  (7/7))", 0.035000, "0.006*(  (7/7))", "0.035*(  (7/7))", 0.010000, "0.006*(  (7/7))", 0, 0.012000, 0, "-0.0125*(  (7/7))", 0.010000, 0, "-0.0025*(  (7/7))"};
  745.     recoil_auto_primary_prone_8outof10 = {0, "0.004*(  (8/7))", "0.035*.25*(  (8/7))", 0.035000, "0.006*(  (8/7))", "0.035*(  (8/7))", 0.010000, "0.006*(  (8/7))", 0, 0.012000, 0, "-0.0125*(  (8/7))", 0.010000, 0, "-0.0025*(  (8/7))"};
  746.     recoil_auto_primary_prone_9outof10 = {0, "0.004*(  (9/7))", "0.035*.25*(  (9/7))", 0.035000, "0.006*(  (9/7))", "0.035*(  (9/7))", 0.010000, "0.006*(  (9/7))", 0, 0.012000, 0, "-0.0125*(  (9/7))", 0.010000, 0, "-0.0025*(  (9/7))"};
  747.     recoil_auto_primary_prone_10outof10 = {0, "0.004*( (10/7))", "0.035*.25*( (10/7))", 0.035000, "0.006*( (10/7))", "0.035*( (10/7))", 0.010000, "0.006*( (10/7))", 0, 0.012000, 0, "-0.0125*( (10/7))", 0.010000, 0, "-0.0025*( (10/7))"};
  748.     recoil_auto_machinegun_1outof10 = {0, "0.006*.5*(  (1/7))", "0.0005*2*(  (1/7))", 0.030000, "0.009*.5*(  (1/7))", "0.001*2*(  (1/7))", 0.040000, 0, "0.01*2*(  (1/7))"};
  749.     recoil_auto_machinegun_2outof10 = {0, "0.006*.5*(  (2/7))", "0.0005*2*(  (2/7))", 0.030000, "0.009*.5*(  (2/7))", "0.001*2*(  (2/7))", 0.040000, 0, "0.01*2*(  (2/7))"};
  750.     recoil_auto_machinegun_3outof10 = {0, "0.006*.5*(  (3/7))", "0.0005*2*(  (3/7))", 0.030000, "0.009*.5*(  (3/7))", "0.001*2*(  (3/7))", 0.040000, 0, "0.01*2*(  (3/7))"};
  751.     recoil_auto_machinegun_4outof10 = {0, "0.006*.5*(  (4/7))", "0.0005*2*(  (4/7))", 0.030000, "0.009*.5*(  (4/7))", "0.001*2*(  (4/7))", 0.040000, 0, "0.01*2*(  (4/7))"};
  752.     recoil_auto_machinegun_5outof10 = {0, "0.006*.5*(  (5/7))", "0.0005*2*(  (5/7))", 0.030000, "0.009*.5*(  (5/7))", "0.001*2*(  (5/7))", 0.040000, 0, "0.01*2*(  (5/7))"};
  753.     recoil_auto_machinegun_6outof10 = {0, "0.006*.5*(  (6/7))", "0.0005*2*(  (6/7))", 0.030000, "0.009*.5*(  (6/7))", "0.001*2*(  (6/7))", 0.040000, 0, "0.01*2*(  (6/7))"};
  754.     recoil_auto_machinegun_7outof10 = {0, "0.006*.5*(  (7/7))", "0.0005*2*(  (7/7))", 0.030000, "0.009*.5*(  (7/7))", "0.001*2*(  (7/7))", 0.040000, 0, "0.01*2*(  (7/7))"};
  755.     recoil_auto_machinegun_8outof10 = {0, "0.006*.5*(  (8/7))", "0.0005*2*(  (8/7))", 0.030000, "0.009*.5*(  (8/7))", "0.001*2*(  (8/7))", 0.040000, 0, "0.01*2*(  (8/7))"};
  756.     recoil_auto_machinegun_9outof10 = {0, "0.006*.5*(  (9/7))", "0.0005*2*(  (9/7))", 0.030000, "0.009*.5*(  (9/7))", "0.001*2*(  (9/7))", 0.040000, 0, "0.01*2*(  (9/7))"};
  757.     recoil_auto_machinegun_10outof10 = {0, "0.006*.5*( (10/7))", "0.0005*2*( (10/7))", 0.030000, "0.009*.5*( (10/7))", "0.001*2*( (10/7))", 0.040000, 0, "0.01*2*( (10/7))"};
  758.     recoil_auto_machinegun_prone_1outof10 = {0, "0.004*.5*(  (1/7))", "0.0035*.25*(  (1/7))", 0.030000, "0.006*.5*(  (1/7))", "0.007*(  (1/7))", 0.010000, "0.006*.5*(  (1/7))", 0, 0.084000, 0, "-0.0025*(  (1/7))", 0.084000, 0, "-0.0025*(  (1/7))"};
  759.     recoil_auto_machinegun_prone_2outof10 = {0, "0.004*.5*(  (2/7))", "0.0035*.25*(  (2/7))", 0.030000, "0.006*.5*(  (2/7))", "0.007*(  (2/7))", 0.010000, "0.006*.5*(  (2/7))", 0, 0.084000, 0, "-0.0025*(  (2/7))", 0.084000, 0, "-0.0025*(  (2/7))"};
  760.     recoil_auto_machinegun_prone_3outof10 = {0, "0.004*.5*(  (3/7))", "0.0035*.25*(  (3/7))", 0.030000, "0.006*.5*(  (3/7))", "0.007*(  (3/7))", 0.010000, "0.006*.5*(  (3/7))", 0, 0.084000, 0, "-0.0025*(  (3/7))", 0.084000, 0, "-0.0025*(  (3/7))"};
  761.     recoil_auto_machinegun_prone_4outof10 = {0, "0.004*.5*(  (4/7))", "0.0035*.25*(  (4/7))", 0.030000, "0.006*.5*(  (4/7))", "0.007*(  (4/7))", 0.010000, "0.006*.5*(  (4/7))", 0, 0.084000, 0, "-0.0025*(  (4/7))", 0.084000, 0, "-0.0025*(  (4/7))"};
  762.     recoil_auto_machinegun_prone_5outof10 = {0, "0.004*.5*(  (5/7))", "0.0035*.25*(  (5/7))", 0.030000, "0.006*.5*(  (5/7))", "0.007*(  (5/7))", 0.010000, "0.006*.5*(  (5/7))", 0, 0.084000, 0, "-0.0025*(  (5/7))", 0.084000, 0, "-0.0025*(  (5/7))"};
  763.     recoil_auto_machinegun_prone_6outof10 = {0, "0.004*.5*(  (6/7))", "0.0035*.25*(  (6/7))", 0.030000, "0.006*.5*(  (6/7))", "0.007*(  (6/7))", 0.010000, "0.006*.5*(  (6/7))", 0, 0.084000, 0, "-0.0025*(  (6/7))", 0.084000, 0, "-0.0025*(  (6/7))"};
  764.     recoil_auto_machinegun_prone_7outof10 = {0, "0.004*.5*(  (7/7))", "0.0035*.25*(  (7/7))", 0.030000, "0.006*.5*(  (7/7))", "0.007*(  (7/7))", 0.010000, "0.006*.5*(  (7/7))", 0, 0.084000, 0, "-0.0025*(  (7/7))", 0.084000, 0, "-0.0025*(  (7/7))"};
  765.     recoil_auto_machinegun_prone_8outof10 = {0, "0.004*.5*(  (8/7))", "0.0035*.25*(  (8/7))", 0.030000, "0.006*.5*(  (8/7))", "0.007*(  (8/7))", 0.010000, "0.006*.5*(  (8/7))", 0, 0.084000, 0, "-0.0025*(  (8/7))", 0.084000, 0, "-0.0025*(  (8/7))"};
  766.     recoil_auto_machinegun_prone_9outof10 = {0, "0.004*.5*(  (9/7))", "0.0035*.25*(  (9/7))", 0.030000, "0.006*.5*(  (9/7))", "0.007*(  (9/7))", 0.010000, "0.006*.5*(  (9/7))", 0, 0.084000, 0, "-0.0025*(  (9/7))", 0.084000, 0, "-0.0025*(  (9/7))"};
  767.     recoil_auto_machinegun_prone_10outof10 = {0, "0.004*.5*( (10/7))", "0.0035*.25*( (10/7))", 0.030000, "0.006*.5*( (10/7))", "0.007*( (10/7))", 0.010000, "0.006*.5*( (10/7))", 0, 0.084000, 0, "-0.0025*( (10/7))", 0.084000, 0, "-0.0025*( (10/7))"};
  768.     recoil_single_pistol_1outof3 = {0.040000, "0.006*(  (3/7))", "0.05*.5*(  (3/7))", 0.010000, "0.009*(  (3/7))", 0, 0.045000, 0, "-0.025*.5*(  (3/7))"};
  769.     recoil_single_pistol_2outof3 = {0.040000, "0.006*(  (5/7))", "0.05*.5*(  (5/7))", 0.010000, "0.009*(  (5/7))", 0, 0.045000, 0, "-0.025*.5*(  (5/7))"};
  770.     recoil_single_pistol_3outof3 = {0.040000, "0.006*(  (7/7))", "0.05*.5*(  (7/7))", 0.010000, "0.009*(  (7/7))", 0, 0.045000, 0, "-0.025*.5*(  (7/7))"};
  771.     recoil_single_pistol_prone_1outof3 = {0.035000, "0.004*(  (4/7))", "0.035*.5*(  (4/7))", 0.010000, "0.006*(  (4/7))", 0, 0.045000, 0, "-0.025*.25*(  (4/7))", 0.010000, 0, "-0.025*.25*(  (4/7))"};
  772.     recoil_single_pistol_prone_2outof3 = {0.035000, "0.004*(  (6/7))", "0.035*.5*(  (6/7))", 0.010000, "0.006*(  (6/7))", 0, 0.045000, 0, "-0.025*.25*(  (6/7))", 0.010000, 0, "-0.025*.25*(  (6/7))"};
  773.     recoil_single_pistol_prone_3outof3 = {0.035000, "0.004*(  (8/7))", "0.035*.5*(  (8/7))", 0.010000, "0.006*(  (8/7))", 0, 0.045000, 0, "-0.025*.25*(  (8/7))", 0.010000, 0, "-0.025*.25*(  (8/7))"};
  774.     recoil_recoiless_weapon = {0.500000, 0, 0.040000};
  775.     recoil_empty = {0, 0, 0};
  776. };
  777. /*extern*/ class DefaultWeapon;
  778. /*extern*/ class Mode_SemiAuto;
  779.  
  780. class CfgWeapons {
  781.     /*extern*/ class RifleCore;
  782.  
  783.     class ShotgunBase: RifleCore {
  784.         rotateDropped = 1;
  785.         rotateAlways = 1;
  786.         rotateY = 1;
  787.         bullet1 = {"", 0.100000, 1, 15};
  788.         bullet2 = {"", 0.100000, 1, 15};
  789.         bullet3 = {"", 0.177828, 1, 15};
  790.         bullet4 = {"", 0.177828, 1, 15};
  791.         bullet5 = {"", 0.100000, 1, 15};
  792.         bullet6 = {"", 0.100000, 1, 15};
  793.         bullet7 = {"", 0.100000, 1, 15};
  794.         bullet8 = {"", 0.100000, 1, 15};
  795.         bullet9 = {"", 0.010000, 1, 15};
  796.         bullet10 = {"", 0.010000, 1, 15};
  797.         bullet11 = {"", 0.010000, 1, 15};
  798.         bullet12 = {"", 0.010000, 1, 15};
  799.         soundBullet = {"bullet1", 0.083000, "bullet2", 0.083000, "bullet3", 0.083000, "bullet4", 0.083000, "bullet5", 0.083000, "bullet6", 0.083000, "bullet7", 0.083000, "bullet8", 0.083000, "bullet9", 0.083000, "bullet10", 0.083000, "bullet11", 0.083000, "bullet12", 0.083000};
  800.         drySound = {"", 0.031623, 1, 10};
  801.         reloadMagazineSound = {"", 0.316228, 1, 20};
  802.         scope = 2;
  803.         model = "";
  804.         cursor = "";
  805.         cursorAim = "";
  806.         reloadAction = "ReloadShotgunIZH43";
  807.         attachments = {};
  808.         chamberedRound = "ShotgunBase";
  809.         magazines = {"B_12Gauge_Pellets_Double", "B_12Gauge_Slug_Double"};
  810.         dexterity = 1.600000;
  811.         opticsZoomMin = 0.375000;
  812.         opticsZoomMax = 1.100000;
  813.         opticsZoomInit = 0.750000;
  814.         magazineSlot = "magazine";
  815.         distanceZoomMin = 50;
  816.         distanceZoomMax = 50;
  817.         displayname = "Shotgun";
  818.         modes = {"Single"};
  819.         dispersion = 3;
  820.         firespreadangle = 2;
  821.  
  822.         class Single: Mode_SemiAuto {
  823.             fireSpreadAngle = 0.800000;
  824.             soundContinuous = 0;
  825.             reloadTime = 0.500000;
  826.             minRange = 0;
  827.             minRangeProbab = 0.500000;
  828.             midRange = 60;
  829.             midRangeProbab = 0.200000;
  830.             maxRange = 100;
  831.             maxRangeProbab = 0.030000;
  832.             recoil = "recoil_single_m4";
  833.             recoilProne = "recoil_single_prone_m4";
  834.             begin1 = {"", 1.778279, 1, 1200};
  835.             begin2 = {"", 1.778279, 1, 1200};
  836.             soundBegin = {"begin1", 0.500000, "begin2", 0.500000};
  837.             closure1 = {"", 1.778279, 1, 300};
  838.             closure2 = {"", 1.778279, 1, 300};
  839.             soundClosure = {"closure1", 0.500000, "closure2", 0.500000};
  840.             magazineSlot = "magazine";
  841.         };
  842.     };
  843.  
  844.     class ShotgunIzh43: ShotgunBase {
  845.         scope = 2;
  846.         displayName = "Izh43 Shotgun";
  847.         descriptionShort = "";
  848.         model = "\dz\weapons\shotguns\izh43.p3d";
  849.         handAnim = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\weapons\izh43.rtm"};
  850.         itemSize = {7, 3};
  851.         modelOptics = "-";
  852.         distanceZoomMin = 100;
  853.         distanceZoomMax = 100;
  854.  
  855.         class Damage {
  856.             tex = {};
  857.             mat = {"DZ\weapons\shotguns\data\izh43.rvmat", "DZ\weapons\shotguns\data\izh43_damage.rvmat", "DZ\weapons\shotguns\data\izh43_destruct.rvmat"};
  858.         };
  859.     };
  860.  
  861.     class ShotgunIzh43_Sawedoff: ShotgunIzh43 {
  862.         displayName = "Sawed-off Izh43 Shotgun";
  863.         descriptionShort = "";
  864.         model = "\dz\weapons\shotguns\izh43_sawedoff.p3d";
  865.         handAnim = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\weapons\izh43.rtm"};
  866.         itemSize = {4, 2};
  867.         modelOptics = "-";
  868.     };
  869. };
  870.  
  871. enum {
  872.     destructengine = 2,
  873.     destructdefault = 6,
  874.     destructwreck = 7,
  875.     destructtree = 3,
  876.     destructtent = 4,
  877.     stabilizedinaxisx = 1,
  878.     stabilizedinaxisy = 2,
  879.     destructno = 0,
  880.     stabilizedinaxesboth = 3,
  881.     stabilizedinaxesnone = 0,
  882.     destructman = 5,
  883.     destructbuilding = 1
  884. }
  885.  
  886.  
  887. class CfgPatches {
  888.  
  889.     class DZ_Weapons_Projectiles {
  890.         units = {};
  891.         weapons = {};
  892.         requiredVersion = 0.100000;
  893.         requiredAddons = {};
  894.     };
  895. };
  896.  
  897. class CfgAmmo {
  898.     /*extern*/ class DefaultAmmo;
  899.  
  900.     class FuelExplosion: DefaultAmmo {
  901.         hit = 100;
  902.         indirectHit = 80;
  903.         indirectHitRange = 2.500000;
  904.         model = "";
  905.         simulation = "";
  906.         cost = 1;
  907.         soundHit = {"DZ\sounds\arma2\Weapons\explosions\explosion_small_11", 6.309574, 1, 1600};
  908.         soundFly = {"", 1, 1};
  909.         soundEngine = {"", 1, 4};
  910.         explosionEffects = "VehicleExplosionEffects";
  911.     };
  912.     /*extern*/ class TimeBombCore;
  913.     /*extern*/ class BulletCore;
  914.  
  915.     class BulletBase: BulletCore {
  916.         hit = 8;
  917.         indirectHit = 0;
  918.         indirectHitRange = 0;
  919.         hitShockHead = 20000;
  920.         hitShock = 500;
  921.         hitBlood = -500;
  922.         hitHealth = -200;
  923.         bleedChance = 2;
  924.         model = "";
  925.         soundFly = {"", 0.000000, 1};
  926.         soundDefault1 = {"dz\sounds\weapons\hits\concrete_1", 1.122018, 1, 60};
  927.         soundDefault2 = {"dz\sounds\weapons\hits\concrete_2", 1.122018, 1, 60};
  928.         soundDefault3 = {"dz\sounds\weapons\hits\concrete_3", 1.122018, 1, 60};
  929.         soundDefault4 = {"dz\sounds\weapons\hits\concrete_4", 1.122018, 1, 60};
  930.         soundDefault5 = {"dz\sounds\weapons\hits\concrete_5", 1.122018, 1, 60};
  931.         soundDefault6 = {"dz\sounds\weapons\hits\concrete_6", 1.122018, 1, 60};
  932.         soundDefault7 = {"dz\sounds\weapons\hits\concrete_7", 1.122018, 1, 60};
  933.         soundDefault8 = {"dz\sounds\weapons\hits\concrete_8", 1.122018, 1, 60};
  934.         soundGroundSoft1 = {"dz\sounds\weapons\hits\soft_ground_1", 1.258925, 1, 60};
  935.         soundGroundSoft2 = {"dz\sounds\weapons\hits\soft_ground_2", 1.258925, 1, 60};
  936.         soundGroundSoft3 = {"dz\sounds\weapons\hits\soft_ground_3", 1.258925, 1, 60};
  937.         soundGroundSoft4 = {"dz\sounds\weapons\hits\soft_ground_4", 1.258925, 1, 60};
  938.         soundGroundSoft5 = {"dz\sounds\weapons\hits\soft_ground_5", 1.258925, 1, 60};
  939.         soundGroundSoft6 = {"dz\sounds\weapons\hits\soft_ground_6", 1.258925, 1, 60};
  940.         soundGroundSoft7 = {"dz\sounds\weapons\hits\soft_ground_7", 1.258925, 1, 60};
  941.         soundGroundSoft8 = {"dz\sounds\weapons\hits\soft_ground_8", 1.258925, 1, 60};
  942.         soundGroundHard1 = {"dz\sounds\weapons\hits\hard_ground_1", 1.412538, 1, 80};
  943.         soundGroundHard2 = {"dz\sounds\weapons\hits\hard_ground_2", 1.412538, 1, 80};
  944.         soundGroundHard3 = {"dz\sounds\weapons\hits\hard_ground_3", 1.412538, 1, 80};
  945.         soundGroundHard4 = {"dz\sounds\weapons\hits\hard_ground_4", 1.412538, 1, 80};
  946.         soundGroundHard5 = {"dz\sounds\weapons\hits\hard_ground_5", 1.412538, 1, 80};
  947.         soundGroundHard6 = {"dz\sounds\weapons\hits\hard_ground_6", 1.412538, 1, 80};
  948.         soundGroundHard7 = {"dz\sounds\weapons\hits\hard_ground_7", 1.412538, 1, 80};
  949.         soundGroundHard8 = {"dz\sounds\weapons\hits\hard_ground_8", 1.412538, 1, 80};
  950.         soundMetal1 = {"dz\sounds\weapons\hits\metal_1", 1.995262, 1, 150};
  951.         soundMetal2 = {"dz\sounds\weapons\hits\metal_2", 1.995262, 1, 150};
  952.         soundMetal3 = {"dz\sounds\weapons\hits\metal_3", 1.995262, 1, 150};
  953.         soundMetal4 = {"dz\sounds\weapons\hits\metal_4", 1.995262, 1, 150};
  954.         soundMetal5 = {"dz\sounds\weapons\hits\metal_5", 1.995262, 1, 150};
  955.         soundMetal6 = {"dz\sounds\weapons\hits\metal_6", 1.995262, 1, 150};
  956.         soundMetal7 = {"dz\sounds\weapons\hits\metal_7", 1.995262, 1, 150};
  957.         soundMetal8 = {"dz\sounds\weapons\hits\metal_8", 1.995262, 1, 150};
  958.         soundGlass1 = {"dz\sounds\weapons\hits\glass_1", 1.412538, 1, 100};
  959.         soundGlass2 = {"dz\sounds\weapons\hits\glass_2", 1.412538, 1, 100};
  960.         soundGlass3 = {"dz\sounds\weapons\hits\glass_3", 1.412538, 1, 100};
  961.         soundGlass4 = {"dz\sounds\weapons\hits\glass_4", 1.412538, 1, 100};
  962.         soundGlass5 = {"dz\sounds\weapons\hits\glass_5", 1.412538, 1, 100};
  963.         soundGlass6 = {"dz\sounds\weapons\hits\glass_6", 1.412538, 1, 100};
  964.         soundGlass7 = {"dz\sounds\weapons\hits\glass_7", 1.412538, 1, 100};
  965.         soundGlass8 = {"dz\sounds\weapons\hits\glass_8", 1.412538, 1, 100};
  966.         soundGlassArmored1 = {"dz\sounds\weapons\hits\glass_arm_1", 1.258925, 1, 60};
  967.         soundGlassArmored2 = {"dz\sounds\weapons\hits\glass_arm_2", 1.258925, 1, 60};
  968.         soundGlassArmored3 = {"dz\sounds\weapons\hits\glass_arm_3", 1.258925, 1, 60};
  969.         soundGlassArmored4 = {"dz\sounds\weapons\hits\glass_arm_4", 1.258925, 1, 60};
  970.         soundGlassArmored5 = {"dz\sounds\weapons\hits\glass_arm_5", 1.258925, 1, 60};
  971.         soundGlassArmored6 = {"dz\sounds\weapons\hits\glass_arm_6", 1.258925, 1, 60};
  972.         soundGlassArmored7 = {"dz\sounds\weapons\hits\glass_arm_7", 1.258925, 1, 60};
  973.         soundGlassArmored8 = {"dz\sounds\weapons\hits\glass_arm_8", 1.258925, 1, 60};
  974.         soundVehiclePlate1 = {"dz\sounds\weapons\hits\metal_plate_1", 1.995262, 1, 150};
  975.         soundVehiclePlate2 = {"dz\sounds\weapons\hits\metal_plate_2", 1.995262, 1, 150};
  976.         soundVehiclePlate3 = {"dz\sounds\weapons\hits\metal_plate_3", 1.995262, 1, 150};
  977.         soundVehiclePlate4 = {"dz\sounds\weapons\hits\metal_plate_4", 1.995262, 1, 150};
  978.         soundVehiclePlate5 = {"dz\sounds\weapons\hits\metal_plate_5", 1.995262, 1, 150};
  979.         soundVehiclePlate6 = {"dz\sounds\weapons\hits\metal_plate_6", 1.995262, 1, 150};
  980.         soundVehiclePlate7 = {"dz\sounds\weapons\hits\metal_plate_7", 1.995262, 1, 150};
  981.         soundVehiclePlate8 = {"dz\sounds\weapons\hits\metal_plate_8", 1.995262, 1, 150};
  982.         soundWood1 = {"dz\sounds\weapons\hits\wood_1", 1.412538, 1, 80};
  983.         soundWood2 = {"dz\sounds\weapons\hits\wood_2", 1.412538, 1, 80};
  984.         soundWood3 = {"dz\sounds\weapons\hits\wood_3", 1.412538, 1, 80};
  985.         soundWood4 = {"dz\sounds\weapons\hits\wood_4", 1.412538, 1, 80};
  986.         soundWood5 = {"dz\sounds\weapons\hits\wood_5", 1.412538, 1, 80};
  987.         soundWood6 = {"dz\sounds\weapons\hits\wood_6", 1.412538, 1, 80};
  988.         soundWood7 = {"dz\sounds\weapons\hits\wood_7", 1.412538, 1, 80};
  989.         soundWood8 = {"dz\sounds\weapons\hits\wood_8", 1.412538, 1, 80};
  990.         soundHitBody1 = {"dz\sounds\weapons\hits\body_1", 1.584893, 1, 10};
  991.         soundHitBody2 = {"dz\sounds\weapons\hits\body_2", 1.584893, 1, 10};
  992.         soundHitBody3 = {"dz\sounds\weapons\hits\body_3", 1.584893, 1, 10};
  993.         soundHitBody4 = {"dz\sounds\weapons\hits\body_4", 1.584893, 1, 10};
  994.         soundHitBody5 = {"dz\sounds\weapons\hits\body_5", 1.584893, 1, 10};
  995.         soundHitBody6 = {"dz\sounds\weapons\hits\body_6", 1.584893, 1, 10};
  996.         soundHitBody7 = {"dz\sounds\weapons\hits\body_7", 1.584893, 1, 10};
  997.         soundHitBody8 = {"dz\sounds\weapons\hits\body_8", 1.584893, 1, 10};
  998.         soundHitBuilding1 = {"dz\sounds\weapons\hits\building_1", 1.000000, 1, 60};
  999.         soundHitBuilding2 = {"dz\sounds\weapons\hits\building_2", 1.000000, 1, 60};
  1000.         soundHitBuilding3 = {"dz\sounds\weapons\hits\building_3", 1.000000, 1, 60};
  1001.         soundHitBuilding4 = {"dz\sounds\weapons\hits\building_4", 1.000000, 1, 60};
  1002.         soundHitBuilding5 = {"dz\sounds\weapons\hits\building_5", 1.000000, 1, 60};
  1003.         soundHitBuilding6 = {"dz\sounds\weapons\hits\building_6", 1.000000, 1, 60};
  1004.         soundHitBuilding7 = {"dz\sounds\weapons\hits\building_7", 1.000000, 1, 60};
  1005.         soundHitBuilding8 = {"dz\sounds\weapons\hits\building_8", 1.000000, 1, 60};
  1006.         soundHitFoliage1 = {"dz\sounds\weapons\hits\foliage_1", 0.707946, 1, 20};
  1007.         soundHitFoliage2 = {"dz\sounds\weapons\hits\foliage_2", 0.707946, 1, 20};
  1008.         soundHitFoliage3 = {"dz\sounds\weapons\hits\foliage_3", 0.707946, 1, 20};
  1009.         soundHitFoliage4 = {"dz\sounds\weapons\hits\foliage_4", 0.707946, 1, 20};
  1010.         soundHitFoliage5 = {"dz\sounds\weapons\hits\foliage_5", 0.707946, 1, 20};
  1011.         soundHitFoliage6 = {"dz\sounds\weapons\hits\foliage_6", 0.707946, 1, 20};
  1012.         soundHitFoliage7 = {"dz\sounds\weapons\hits\foliage_7", 0.707946, 1, 20};
  1013.         soundHitFoliage8 = {"dz\sounds\weapons\hits\foliage_8", 0.707946, 1, 20};
  1014.         soundPlastic1 = {"dz\sounds\weapons\hits\plastic_1", 1.000000, 1, 70};
  1015.         soundPlastic2 = {"dz\sounds\weapons\hits\plastic_2", 1.000000, 1, 70};
  1016.         soundPlastic3 = {"dz\sounds\weapons\hits\plastic_3", 1.000000, 1, 70};
  1017.         soundPlastic4 = {"dz\sounds\weapons\hits\plastic_4", 1.000000, 1, 70};
  1018.         soundPlastic5 = {"dz\sounds\weapons\hits\plastic_5", 1.000000, 1, 70};
  1019.         soundPlastic6 = {"dz\sounds\weapons\hits\plastic_6", 1.000000, 1, 70};
  1020.         soundPlastic7 = {"dz\sounds\weapons\hits\plastic_7", 1.000000, 1, 70};
  1021.         soundPlastic8 = {"dz\sounds\weapons\hits\plastic_8", 1.000000, 1, 70};
  1022.         soundConcrete1 = {"dz\sounds\weapons\hits\concrete_1", 1.000000, 1, 70};
  1023.         soundConcrete2 = {"dz\sounds\weapons\hits\concrete_2", 1.000000, 1, 70};
  1024.         soundConcrete3 = {"dz\sounds\weapons\hits\concrete_3", 1.000000, 1, 70};
  1025.         soundConcrete4 = {"dz\sounds\weapons\hits\concrete_4", 1.000000, 1, 70};
  1026.         soundConcrete5 = {"dz\sounds\weapons\hits\concrete_5", 1.000000, 1, 70};
  1027.         soundConcrete6 = {"dz\sounds\weapons\hits\concrete_6", 1.000000, 1, 70};
  1028.         soundConcrete7 = {"dz\sounds\weapons\hits\concrete_7", 1.000000, 1, 70};
  1029.         soundConcrete8 = {"dz\sounds\weapons\hits\concrete_8", 1.000000, 1, 70};
  1030.         soundRubber1 = {"dz\sounds\weapons\hits\tyre_1", 0.891251, 1, 50};
  1031.         soundRubber2 = {"dz\sounds\weapons\hits\tyre_2", 0.891251, 1, 50};
  1032.         soundRubber3 = {"dz\sounds\weapons\hits\tyre_3", 0.891251, 1, 50};
  1033.         soundRubber4 = {"dz\sounds\weapons\hits\tyre_4", 0.891251, 1, 50};
  1034.         soundRubber5 = {"dz\sounds\weapons\hits\tyre_5", 0.891251, 1, 50};
  1035.         soundRubber6 = {"dz\sounds\weapons\hits\tyre_6", 0.891251, 1, 50};
  1036.         soundRubber7 = {"dz\sounds\weapons\hits\tyre_7", 0.891251, 1, 50};
  1037.         soundRubber8 = {"dz\sounds\weapons\hits\tyre_8", 0.891251, 1, 50};
  1038.         soundWater1 = {"dz\sounds\weapons\hits\water_01", 1.000000, 1, 40};
  1039.         soundWater2 = {"dz\sounds\weapons\hits\water_02", 1.000000, 1, 40};
  1040.         soundWater3 = {"dz\sounds\weapons\hits\water_03", 1.000000, 1, 40};
  1041.         soundWater4 = {"dz\sounds\weapons\hits\water_04", 1.000000, 1, 40};
  1042.         soundWater5 = {"dz\sounds\weapons\hits\water_05", 1.000000, 1, 40};
  1043.         soundWater6 = {"dz\sounds\weapons\hits\water_06", 1.000000, 1, 40};
  1044.         soundWater7 = {"dz\sounds\weapons\hits\water_07", 1.000000, 1, 40};
  1045.         soundWater8 = {"dz\sounds\weapons\hits\water_08", 1.000000, 1, 40};
  1046.         hitGroundSoft = {"soundGroundSoft1", 0.200000, "soundGroundSoft2", 0.200000, "soundGroundSoft3", 0.100000, "soundGroundSoft4", 0.100000, "soundGroundSoft5", 0.100000, "soundGroundSoft6", 0.100000, "soundGroundSoft7", 0.100000, "soundGroundSoft8", 0.100000};
  1047.         hitGroundHard = {"soundGroundHard1", 0.200000, "soundGroundHard2", 0.200000, "soundGroundHard3", 0.100000, "soundGroundHard4", 0.100000, "soundGroundHard5", 0.100000, "soundGroundHard6", 0.100000, "soundGroundHard7", 0.100000, "soundGroundHard8", 0.100000};
  1048.         hitMan = {"soundHitBody1", 0.125000, "soundHitBody2", 0.125000, "soundHitBody3", 0.125000, "soundHitBody4", 0.125000, "soundHitBody5", 0.125000, "soundHitBody6", 0.125000, "soundHitBody7", 0.125000, "soundHitBody8", 0.125000};
  1049.         hitArmor = {"soundVehiclePlate1", 0.125000, "soundVehiclePlate2", 0.125000, "soundVehiclePlate3", 0.125000, "soundVehiclePlate4", 0.125000, "soundVehiclePlate5", 0.125000, "soundVehiclePlate6", 0.125000, "soundVehiclePlate7", 0.125000, "soundVehiclePlate8", 0.125000};
  1050.         hitBuilding = {"soundHitBuilding1", 0.200000, "soundHitBuilding2", 0.200000, "soundHitBuilding3", 0.100000, "soundHitBuilding4", 0.100000, "soundHitBuilding5", 0.100000, "soundHitBuilding6", 0.100000, "soundHitBuilding7", 0.100000, "soundHitBuilding8", 0.100000};
  1051.         hitFoliage = {"soundHitFoliage1", 0.125000, "soundHitFoliage2", 0.125000, "soundHitFoliage3", 0.125000, "soundHitFoliage4", 0.125000, "soundHitFoliage5", 0.125000, "soundHitFoliage6", 0.125000, "soundHitFoliage7", 0.125000, "soundHitFoliage8", 0.125000};
  1052.         hitWood = {"soundWood1", 0.125000, "soundWood2", 0.125000, "soundWood3", 0.125000, "soundWood4", 0.125000, "soundWood5", 0.125000, "soundWood6", 0.125000, "soundWood7", 0.125000, "soundWood8", 0.125000};
  1053.         hitGlass = {"soundGlass1", 0.125000, "soundGlass2", 0.125000, "soundGlass3", 0.125000, "soundGlass4", 0.125000, "soundGlass5", 0.125000, "soundGlass6", 0.125000, "soundGlass7", 0.125000, "soundGlass8", 0.125000};
  1054.         hitGlassArmored = {"soundGlassArmored1", 0.125000, "soundGlassArmored2", 0.125000, "soundGlassArmored3", 0.125000, "soundGlassArmored4", 0.125000, "soundGlassArmored5", 0.125000, "soundGlassArmored6", 0.125000, "soundGlassArmored7", 0.125000, "soundGlassArmored8", 0.125000};
  1055.         hitConcrete = {"soundConcrete1", 0.125000, "soundConcrete2", 0.125000, "soundConcrete3", 0.125000, "soundConcrete4", 0.125000, "soundConcrete5", 0.125000, "soundConcrete6", 0.125000, "soundConcrete7", 0.125000, "soundConcrete8", 0.125000};
  1056.         hitRubber = {"soundRubber1", 0.125000, "soundRubber2", 0.125000, "soundRubber3", 0.125000, "soundRubber4", 0.125000, "soundRubber5", 0.125000, "soundRubber6", 0.125000, "soundRubber7", 0.125000, "soundRubber8", 0.125000};
  1057.         hitPlastic = {"soundPlastic1", 0.125000, "soundPlastic2", 0.125000, "soundPlastic3", 0.125000, "soundPlastic4", 0.125000, "soundPlastic5", 0.125000, "soundPlastic6", 0.125000, "soundPlastic7", 0.125000, "soundPlastic8", 0.125000};
  1058.         hitDefault = {"soundDefault1", 0.200000, "soundDefault2", 0.200000, "soundDefault3", 0.100000, "soundDefault4", 0.100000, "soundDefault5", 0.100000, "soundDefault6", 0.100000, "soundDefault7", 0.100000, "soundDefault8", 0.100000};
  1059.         hitMetal = {"soundMetal1", 0.125000, "soundMetal2", 0.125000, "soundMetal3", 0.125000, "soundMetal4", 0.125000, "soundMetal5", 0.125000, "soundMetal6", 0.125000, "soundMetal7", 0.125000, "soundMetal8", 0.125000};
  1060.         hitMetalplate = {"soundVehiclePlate1", 0.125000, "soundVehiclePlate2", 0.125000, "soundVehiclePlate3", 0.125000, "soundVehiclePlate4", 0.125000, "soundVehiclePlate5", 0.125000, "soundVehiclePlate6", 0.125000, "soundVehiclePlate7", 0.125000, "soundVehiclePlate8", 0.125000};
  1061.         hitWater = {"soundWater1", 0.125000, "soundWater2", 0.125000, "soundWater3", 0.125000, "soundWater4", 0.125000, "soundWater5", 0.125000, "soundWater6", 0.125000, "soundWater7", 0.125000, "soundWater8", 0.125000};
  1062.         bulletFly1 = {"dz\sounds\weapons\effects\bullet_by_1", 1.000000, 1, 50};
  1063.         bulletFly2 = {"dz\sounds\weapons\effects\bullet_by_2", 1.000000, 1, 50};
  1064.         bulletFly3 = {"dz\sounds\weapons\effects\bullet_by_3", 1.000000, 1, 50};
  1065.         bulletFly4 = {"dz\sounds\weapons\effects\bullet_by_4", 1.000000, 1, 50};
  1066.         bulletFly5 = {"dz\sounds\weapons\effects\bullet_by_5", 1.000000, 1, 50};
  1067.         bulletFly6 = {"dz\sounds\weapons\effects\bullet_by_6", 1.000000, 1, 50};
  1068.         bulletFly7 = {"dz\sounds\weapons\effects\bullet_by_7", 1.000000, 1, 50};
  1069.         bulletFly8 = {"dz\sounds\weapons\effects\bullet_by_8", 1.000000, 1, 50};
  1070.         bulletFly = {"bulletFly1", 0.125000, "bulletFly2", 0.125000, "bulletFly3", 0.125000, "bulletFly4", 0.125000, "bulletFly5", 0.125000, "bulletFly6", 0.125000, "bulletFly7", 0.125000, "bulletFly8", 0.125000};
  1071.         supersonicCrackNear = {"dz\sounds\weapons\effects\bullet_crack_mid", 1, 1, 150};
  1072.         supersonicCrackFar = {"dz\sounds\weapons\effects\bullet_crack_far", 1, 1, 250};
  1073.         cartridge = "FxCartridge_556";
  1074.         cost = 0.700000;
  1075.         timeToLive = 6;
  1076.         deflecting = 10;
  1077.         tracerStartTime = -1;
  1078.  
  1079.         class HitEffects {
  1080.             Hit_Foliage = "ImpactLeaves";
  1081.             Hit_Glass = "ImpactGlass";
  1082.             Hit_Glass_Thin = "ImpactGlassThin";
  1083.             Hit_Wood = "ImpactWood";
  1084.             Hit_Metal = "ImpactMetal";
  1085.             Hit_Plaster = "ImpactPlaster";
  1086.             Hit_Rubber = "ImpactRubber";
  1087.             Hit_Concrete = "ImpactConcrete";
  1088.             Hit_Blood = "ImpactBlood";
  1089.         };
  1090.         muzzleEffect = "BIS_Effects_Rifle";
  1091.     };
  1092.     /*extern*/ class ShotgunCore;
  1093.  
  1094.     class ShotgunBase: ShotgunCore {
  1095.         waterEffectOffset = -0.800000;
  1096.  
  1097.         class HitEffects {
  1098.             Hit_Foliage = "ImpactLeaves";
  1099.             Hit_Glass = "ImpactGlass";
  1100.             Hit_Glass_Thin = "ImpactGlassThin";
  1101.             Hit_Wood = "ImpactWood";
  1102.             Hit_Metal = "ImpactMetal";
  1103.             Hit_Plaster = "ImpactPlaster";
  1104.             Hit_Rubber = "ImpactRubber";
  1105.             Hit_Concrete = "ImpactConcrete";
  1106.             Hit_Blood = "ImpactBlood";
  1107.         };
  1108.     };
  1109.  
  1110.     class B_12Gauge_Pellets: ShotgunBase {
  1111.         hit = 8;
  1112.         indirectHit = 0;
  1113.         indirectHitRange = 0;
  1114.         cartridge = "FxCartridge_12Pellet";
  1115.         cost = 5;
  1116.         typicalSpeed = 900;
  1117.         visibleFire = 18;
  1118.         audibleFire = 18;
  1119.         airFriction = -0.005000;
  1120.         caliber = 0.500000;
  1121.     };
  1122.  
  1123.     class B_12Gauge_Slug: BulletBase {
  1124.         hit = 11;
  1125.         indirectHit = 0;
  1126.         indirectHitRange = 0;
  1127.         cartridge = "FxCartridge_12Slug";
  1128.         cost = 5;
  1129.         typicalSpeed = 400;
  1130.         visibleFire = 18;
  1131.         audibleFire = 18;
  1132.         airFriction = -0.005000;
  1133.         caliber = 0.500000;
  1134.     };
  1135.  
  1136.     class B_556x45_Ball: BulletBase {
  1137.         hit = 8;
  1138.         indirectHit = 0;
  1139.         indirectHitRange = 0;
  1140.         cost = 1;
  1141.         airFriction = -0.001425;
  1142.         caliber = 0.500000;
  1143.         audibleFire = 16;
  1144.         visibleFire = 16;
  1145.         visibleFireTime = 3;
  1146.         deflecting = 10;
  1147.         model = "\dz\weapons\projectiles\tracer_red.p3d";
  1148.         tracerScale = 1;
  1149.         tracerStartTime = 0.050000;
  1150.         tracerEndTime = 1;
  1151.         nvgOnly = 1;
  1152.     };
  1153.  
  1154.     class B_762x51_Ball: BulletBase {
  1155.         hit = 12;
  1156.         indirectHit = 0;
  1157.         indirectHitRange = 0;
  1158.         cartridge = "FxCartridge_762";
  1159.         visibleFire = 22;
  1160.         audibleFire = 18;
  1161.         visibleFireTime = 3;
  1162.         cost = 1.200000;
  1163.         airLock = 1;
  1164.         model = "\dz\weapons\projectiles\tracer_red.p3d";
  1165.         tracerScale = 1.200000;
  1166.         tracerStartTime = 0.075000;
  1167.         tracerEndTime = 1;
  1168.         caliber = 1;
  1169.         airFriction = -0.000932;
  1170.     };
  1171.  
  1172.     class B_45ACP_Ball: BulletBase {
  1173.         hit = 9;
  1174.         indirectHit = 0;
  1175.         indirectHitRange = 0;
  1176.         cartridge = "FxCartridge_9mm";
  1177.         model = "\dz\weapons\projectiles\tracer_red.p3d";
  1178.         tracerScale = 1;
  1179.         deflecting = 45;
  1180.         visibleFire = 5;
  1181.         audibleFire = 9;
  1182.         typicalSpeed = 280;
  1183.         airFriction = -0.001800;
  1184.     };
  1185.  
  1186.     class B_357: BulletBase {
  1187.         hit = 9;
  1188.         indirectHit = 0;
  1189.         indirectHitRange = 0;
  1190.         cartridge = "";
  1191.         model = "\dz\weapons\projectiles\tracer_red.p3d";
  1192.         tracerScale = 1;
  1193.         deflecting = 45;
  1194.         visibleFire = 20;
  1195.         audibleFire = 13;
  1196.         typicalSpeed = 280;
  1197.         airFriction = -0.001800;
  1198.     };
  1199.  
  1200.     class B_556x45_EXP: BulletBase {
  1201.         hit = 0;
  1202.         indirectHit = 8;
  1203.         indirectHitRange = 3;
  1204.         cost = 1;
  1205.         airFriction = -0.001425;
  1206.         caliber = 0.500000;
  1207.         model = "\dz\weapons\projectiles\tracer_red.p3d";
  1208.         tracerScale = 1;
  1209.         tracerStartTime = 0.050000;
  1210.         tracerEndTime = 1;
  1211.         nvgOnly = 1;
  1212.     };
  1213. };
  1214.  
  1215. class CfgVehicles {
  1216.     /*extern*/ class All;
  1217.     /*extern*/ class Strategic;
  1218.     /*extern*/ class ThingEffect;
  1219.  
  1220.     class FxCartridge: ThingEffect {
  1221.         model = "\dz\weapons\projectiles\nabojnice_556.p3d";
  1222.         displayName = "$STR_DN_FX_CARTRIDGE";
  1223.         submerged = 0;
  1224.         submergeSpeed = 0;
  1225.         timeToLive = 5;
  1226.         disappearAtContact = 1;
  1227.         airRotation = 1.500000;
  1228.     };
  1229.  
  1230.     class FxCartridge_Small: ThingEffect {
  1231.         model = "\dz\weapons\projectiles\nabojnice_small.p3d";
  1232.         displayName = "$STR_DN_FX_CARTRIDGE";
  1233.         submerged = 0;
  1234.         submergeSpeed = 0;
  1235.         timeToLive = 5;
  1236.         disappearAtContact = 1;
  1237.         airRotation = 1.500000;
  1238.     };
  1239.  
  1240.     class FxCartridge_9mm: FxCartridge_Small {
  1241.     };
  1242.  
  1243.     class FxCartridge_556: FxCartridge {
  1244.     };
  1245.  
  1246.     class FxCartridge_762: FxCartridge {
  1247.         model = "\dz\weapons\projectiles\nabojnice_762.p3d";
  1248.     };
  1249.  
  1250.     class FxCartridge_12Pellet: FxCartridge {
  1251.         model = "\dz\weapons\projectiles\shotgunshell_pellets.p3d";
  1252.     };
  1253.  
  1254.     class FxCartridge_12Slug: FxCartridge {
  1255.         model = "\dz\weapons\projectiles\shotgunshell_slug.p3d";
  1256.     };
  1257. };
  1258.  
  1259. enum {
  1260.     destructengine = 2,
  1261.     destructdefault = 6,
  1262.     destructwreck = 7,
  1263.     destructtree = 3,
  1264.     destructtent = 4,
  1265.     stabilizedinaxisx = 1,
  1266.     stabilizedinaxisy = 2,
  1267.     destructno = 0,
  1268.     stabilizedinaxesboth = 3,
  1269.     stabilizedinaxesnone = 0,
  1270.     destructman = 5,
  1271.     destructbuilding = 1
  1272. }
  1273.  
  1274. class cfgRecoils {
  1275.     pistolBase = {0, 0, 0, 0.080000, 0.003000, 0.020000, 0.050000, -0.003000, -0.033000, 0.050000, 0, 0};
  1276.     subMachineGunBase = {0, 0, 0, 0.060000, 0.005000, 0.005000, 0.050000, 0, -0.020000, 0.060000, -0.005000, 0.005000, 0.050000, 0, 0};
  1277.     assaultRifleBase = {0, 0, 0, 0.060000, 0.010000, 0.010000, 0.100000, 0, -0.020000, 0.100000, -0.010000, 0.010000, 0.050000, 0, 0};
  1278.     machinegunBase = {0, 0, 0, 0.080000, 0.010000, 0.040000, 0.050000, -0.003000, -0.010000, 0.200000, 0, 0};
  1279.     launcherBase = {0, 0, 0, 0.010000, 0, 0.050000, 0.025000, 0, 0};
  1280.     AK74Recoil = {0, 0, 0, 0.060000, 0.010000, 0.012000, 0.100000, 0, -0.020000, 0.100000, -0.010000, 0.010000, 0.050000, 0, 0};
  1281.     M249Recoil = {0, 0, 0, 0.070000, 0.002000, 0.010000, 0.035000, -0.002000, -0.020000, 0.050000, 0, 0};
  1282.     M249RecoilProne = {0, 0, 0, 0.100000, 0.003000, 0.004000, 0.050000, -0.003000, -0.008000, 0.050000, 0, 0};
  1283.     M4Recoil = {0, 0, 0, 0.060000, 0.010000, 0.010000, 0.100000, 0, -0.018000, 0.100000, -0.010000, 0.010000, 0.050000, 0, 0};
  1284.     PKMRecoil = {0, 0, 0, 0.100000, 0.030000, 0.040000, 0.050000, -0.030000, -0.080000, 0.050000, 0, 0};
  1285.     PKMRecoilProne = {0, 0, 0, 0.100000, 0.003000, 0.005000, 0.050000, -0.003000, -0.010000, 0.050000, 0, 0};
  1286. }
  1287.  
  1288.  
  1289.  
  1290. class CfgPatches {
  1291.  
  1292.     class DZ_Weapons_Firearms_SKS {
  1293.         units = {};
  1294.         weapons = {};
  1295.         requiredVersion = 0.100000;
  1296.         requiredAddons = {"DZ_Data", "DZ_Weapons_Firearms"};
  1297.     };
  1298. };
  1299. /*extern*/ class Mode_Safe;
  1300. /*extern*/ class Mode_SemiAuto;
  1301. /*extern*/ class Mode_Burst;
  1302. /*extern*/ class Mode_FullAuto;
  1303.  
  1304. class cfgWeapons {
  1305.     /*extern*/ class Rifle;
  1306.  
  1307.     class SKSBase: Rifle {
  1308.         absorbency = 0.100000;
  1309.         scope = 0;
  1310.         displayName = "SKS";
  1311.         descriptionShort = ".";
  1312.         model = "\dz\weapons\firearms\SKS\SKS.p3d";
  1313.         itemSize = {7, 3};
  1314.         modelOptics = "-";
  1315.         distanceZoomMin = 100;
  1316.         distanceZoomMax = 100;
  1317.         value = 0;
  1318.         dexterity = 1.800000;
  1319.         optics = 1;
  1320.         opticsFlare = 0;
  1321.         chamberedRound = "B_762x51_Ball";
  1322.         magazines = {"CLIP_762_5Rnd", "B_762x51_Ball_Single"};
  1323.         modes = {"Single"};
  1324.         drySound = {"dz\sounds\weapons\firearms\mosin9130\mosin_dry", 0.005623, 1};
  1325.         reloadMagazineSound = {"dz\sounds\weapons\firearms\mosin9130\mosin_reloading", 0.056234, 1, 20};
  1326.         reloadSound = {"dz\sounds\weapons\firearms\mosin9130\mosin_reloading", 0.056234, 1, 20};
  1327.         handAnim = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\weapons\SKS.rtm"};
  1328.         baseAttachments = {};
  1329.  
  1330.         class Single: Mode_SemiAuto {
  1331.             begin1 = {"dz\sounds\weapons\firearms\mosin9130\mosin_close_0", 1.778279, 1, 1000};
  1332.             begin2 = {"dz\sounds\weapons\firearms\mosin9130\mosin_close_1", 1.778279, 1, 1000};
  1333.             begin3 = {"dz\sounds\weapons\firearms\mosin9130\mosin_close_2", 1.778279, 1, 1000};
  1334.             soundBegin = {"begin1", 0.333330, "begin2", 0.333330, "begin2", 0.333330};
  1335.             reloadTime = 2;
  1336.             recoil = "recoil_single_primary_8outof10";
  1337.             recoilProne = "recoil_single_primary_prone_8outof10";
  1338.             dispersion = 0.002500;
  1339.             magazineSlot = "magazine";
  1340.             ejectType = 2;
  1341.         };
  1342.         ejectType = 2;
  1343.         cursor = "";
  1344.         cursorAim = "";
  1345.         reloadAction = "ReloadMosinFull";
  1346.         attachments = {"weaponMuzzleMosin", "weaponBayonetMosin", "weaponOpticsMosin", "weaponBipod"};
  1347.         hiddenSelections = {"camo"};
  1348.         hiddenSelectionsTextures = {"dz\weapons\firearms\SKS\data\sks_co.paa"};
  1349.         hiddenSelectionsMaterials = {"dz\weapons\firearms\SKS\data\sks.rvmat"};
  1350.     };
  1351.  
  1352.     class SKS: SKSBase {
  1353.         scope = 2;
  1354.  
  1355.         class Damage {
  1356.             tex = {};
  1357.             mat = {"DZ\weapons\firearms\SKS\Data\sks.rvmat", "DZ\weapons\firearms\SKS\Data\sks_damage.rvmat", "DZ\weapons\firearms\SKS\Data\sks_destruct.rvmat"};
  1358.         };
  1359.     };
  1360. };
  1361.  
  1362. enum {
  1363.     destructengine = 2,
  1364.     destructdefault = 6,
  1365.     destructwreck = 7,
  1366.     destructtree = 3,
  1367.     destructtent = 4,
  1368.     stabilizedinaxisx = 1,
  1369.     stabilizedinaxisy = 2,
  1370.     destructno = 0,
  1371.     stabilizedinaxesboth = 3,
  1372.     stabilizedinaxesnone = 0,
  1373.     destructman = 5,
  1374.     destructbuilding = 1
  1375. }
  1376.  
  1377.  
  1378. class CfgPatches {
  1379.  
  1380.     class DZ_Weapons_Ammunition {
  1381.         units = {};
  1382.         weapons = {};
  1383.         requiredVersion = 0.100000;
  1384.         requiredAddons = {"DZ_Weapons_Magazines"};
  1385.     };
  1386. };
  1387.  
  1388. class CfgRecipes {
  1389.  
  1390.     class CombineAmmo {
  1391.         name = "Combine %tool1";
  1392.         tools = {"AmmunitionItemBase", "AmmunitionItemBase"};
  1393.         condition = "quantity _tool2 < maxQuantity _tool2";
  1394.         action = "call player_combineQuantity;";
  1395.     };
  1396.  
  1397.     class SplitAmmo {
  1398.         name = "Split %tool1";
  1399.         tools = {"AmmunitionItemBase"};
  1400.         condition = "true";
  1401.         action = "call player_splitQuantity;";
  1402.     };
  1403.  
  1404.     class ChamberRound {
  1405.         name = "Chamber %tool2";
  1406.         tools = {"AmmunitionItemBase", "Rifle"};
  1407.         condition = "true";
  1408.         action = "'single' call player_chamberRound;";
  1409.     };
  1410.  
  1411.     class LoadMagazineless {
  1412.         name = "Load %tool2";
  1413.         tools = {"AmmunitionItemBase", "ShotgunBase"};
  1414.         condition = "true";
  1415.         action = "'double' call player_chamberRound;";
  1416.     };
  1417. };
  1418. /*extern*/ class ActionOnSelf;
  1419.  
  1420. class CfgMagazines {
  1421.     /*extern*/ class MagazineBase;
  1422.  
  1423.     class ChamberedRound: MagazineBase {
  1424.         spawnDamageMax = 0;
  1425.         destroyOnEmpty = 1;
  1426.         conditionDetach = "false";
  1427.         quantity = "";
  1428.         inventorySlot = "magazine";
  1429.         magazineSlot = "magazine";
  1430.  
  1431.         class UserActions {
  1432.  
  1433.             class Eject {
  1434.                 displayNameDefault = "Eject";
  1435.                 displayName = "Eject";
  1436.                 position = "action";
  1437.                 onlyForPlayer = 1;
  1438.                 radius = 2;
  1439.                 condition = "true";
  1440.                 statement = "[this,_person] spawn player_stripMagazine;";
  1441.             };
  1442.         };
  1443.     };
  1444.  
  1445.     class B_556x45_Ball_Single: ChamberedRound {
  1446.         scope = 2;
  1447.         displayName = "5.56mm Round";
  1448.         descriptionShort = "A single 5.56mm round.";
  1449.         model = "\DZ\weapons\ammunition\556_SingleRound.p3d";
  1450.         itemSize = {1, 1};
  1451.         ammo = "B_556x45_Ball";
  1452.         ammoItem = "Ammo_556";
  1453.         count = 1;
  1454.         initSpeed = 930;
  1455.         tracersEvery = 0;
  1456.     };
  1457.  
  1458.     class B_762x51_Ball_Single: ChamberedRound {
  1459.         scope = 2;
  1460.         displayName = "7.62mm Round";
  1461.         descriptionShort = "A single 7.62mm round.";
  1462.         model = "\DZ\weapons\ammunition\762_SingleRound.p3d";
  1463.         itemSize = {1, 1};
  1464.         ammo = "B_762x51_Ball";
  1465.         ammoItem = "Ammo_762";
  1466.         count = 1;
  1467.         initSpeed = 930;
  1468.         tracersEvery = 0;
  1469.     };
  1470.  
  1471.     class B_762x51_Ball_Five: ChamberedRound {
  1472.         scope = 2;
  1473.         displayName = "7.62mm Round";
  1474.         descriptionShort = "7.62mm rounds";
  1475.         model = "\DZ\weapons\ammunition\762_LooseRounds.p3d";
  1476.         itemSize = {1, 1};
  1477.         ammo = "B_762x51_Ball";
  1478.         ammoItem = "Ammo_762";
  1479.         count = 5;
  1480.         initSpeed = 930;
  1481.         tracersEvery = 0;
  1482.         quantity = "magazineAmmo _this";
  1483.     };
  1484.  
  1485.     class DoubleBarrelledRound: MagazineBase {
  1486.         destroyOnEmpty = 1;
  1487.         conditionDetach = "false";
  1488.         quantity = "str(magazineAmmo _this)";
  1489.         inventorySlot = "magazine";
  1490.         magazineSlot = "magazine";
  1491.         count = 2;
  1492.         tracersEvery = 0;
  1493.         itemSize = {1, 1};
  1494.     };
  1495.  
  1496.     class B_12Gauge_Pellets_Double: DoubleBarrelledRound {
  1497.         scope = 2;
  1498.         displayName = "12 Gauge Buckshot";
  1499.         descriptionShort = "A single 12 Gauge Buckshot.";
  1500.         model = "\DZ\weapons\ammunition\12ga_00buck.p3d";
  1501.         ammo = "B_12Gauge_Pellets";
  1502.         inventorySlot = "magazine";
  1503.         ammoItem = "Ammo_12ga_Pellets";
  1504.     };
  1505.  
  1506.     class B_12Gauge_Slug_Double: DoubleBarrelledRound {
  1507.         scope = 2;
  1508.         displayName = "12 Gauge Slug";
  1509.         descriptionShort = "A single 12 Gauge Slu.";
  1510.         model = "\DZ\weapons\ammunition\12ga_rifled_slug.p3d";
  1511.         inventorySlot = "magazine";
  1512.         ammo = "B_12Gauge_Slug";
  1513.         ammoItem = "Ammo_12ga_Slug";
  1514.     };
  1515.  
  1516.     class B_357_Single: ChamberedRound {
  1517.         scope = 2;
  1518.         displayName = ".357 Round";
  1519.         descriptionShort = "A single .357 round.";
  1520.         model = "\DZ\weapons\ammunition\357_SingleRound.p3d";
  1521.         itemSize = {1, 1};
  1522.         ammo = "B_357";
  1523.         ammoItem = "Ammo_357";
  1524.         count = 1;
  1525.         initSpeed = 930;
  1526.         tracersEvery = 0;
  1527.     };
  1528.  
  1529.     class B_357_Six: ChamberedRound {
  1530.         scope = 2;
  1531.         displayName = ".357 Rounds";
  1532.         descriptionShort = ".357 Rounds";
  1533.         model = "\DZ\weapons\ammunition\357_LooseRounds.p3d";
  1534.         itemSize = {1, 1};
  1535.         ammo = "B_357";
  1536.         ammoItem = "Ammo_357";
  1537.         count = 6;
  1538.         initSpeed = 930;
  1539.         tracersEvery = 0;
  1540.         quantity = "magazineAmmo _this";
  1541.     };
  1542. };
  1543.  
  1544. class CfgVehicles {
  1545.     /*extern*/ class InventoryBase;
  1546.  
  1547.     class AmmunitionItemBase: InventoryBase {
  1548.         spawnDamageMax = 0;
  1549.         storeVariables = {"quantity"};
  1550.         quantity = "format ['%1', quantity _this]";
  1551.         synchronizedVariables = {"quantity", 1};
  1552.         chamberedRound = "";
  1553.     };
  1554.  
  1555.     class Ammo_45FMJ: AmmunitionItemBase {
  1556.         scope = 2;
  1557.         displayName = ".45ACP Rounds";
  1558.         model = "\dz\weapons\ammunition\45acp_LooseRounds.p3d";
  1559.         descriptionShort = "A pistol cartridge designed by John Browning in 1904, for use in his prototype Colt semi-automatic .45 pistol and eventually the M1911 pistol adopted by the United States Army.";
  1560.         itemSize = {1, 1};
  1561.         stackedMax = 40;
  1562.         chamberedRound = "";
  1563.     };
  1564.  
  1565.     class Ammo_556: AmmunitionItemBase {
  1566.         scope = 2;
  1567.         displayName = "5.56mm Rounds";
  1568.         model = "\dz\weapons\ammunition\556_LooseRounds.p3d";
  1569.         descriptionShort = "A rifle cartridge developed in the United States and originally used in the M16 rifle. It is derived from the .223 Remington cartridge.";
  1570.         itemSize = {1, 1};
  1571.         stackedMax = 30;
  1572.         chamberedRound = "B_556x45_Ball";
  1573.     };
  1574.  
  1575.     class Ammo_762: AmmunitionItemBase {
  1576.         scope = 2;
  1577.         displayName = "7.62mm Rounds";
  1578.         model = "\dz\weapons\ammunition\762_LooseRounds.p3d";
  1579.         descriptionShort = "High powered cartridge used in various firearms of Soviet origin";
  1580.         itemSize = {1, 1};
  1581.         stackedMax = 20;
  1582.         chamberedRound = "B_762x51_Ball";
  1583.     };
  1584.  
  1585.     class Ammo_12ga_Pellets: AmmunitionItemBase {
  1586.         scope = 2;
  1587.         displayName = "12 Gauge Buckshot";
  1588.         model = "\dz\weapons\ammunition\12ga_00buck.p3d";
  1589.         descriptionShort = "12 gauge, 00 buck shell that holds 9 pellets. The most commonly produced buckshot shell.";
  1590.         itemSize = {1, 1};
  1591.         stackedMax = 15;
  1592.         chamberedRound = "B_12Gauge_Pellets";
  1593.     };
  1594.  
  1595.     class Ammo_12ga_Slug: AmmunitionItemBase {
  1596.         scope = 2;
  1597.         displayName = "12 Gauge Slug";
  1598.         model = "\dz\weapons\ammunition\12ga_rifled_slug.p3d";
  1599.         descriptionShort = "A heavy lead projectile without a plastic tip, intended for use in a shotgun and often used for hunting large game.";
  1600.         itemSize = {1, 1};
  1601.         stackedMax = 15;
  1602.         chamberedRound = "B_12Gauge_Slug";
  1603.     };
  1604.  
  1605.     class Ammo_357: AmmunitionItemBase {
  1606.         scope = 2;
  1607.         displayName = ".357 Round";
  1608.         model = "\dz\weapons\ammunition\357_LooseRounds.p3d";
  1609.         descriptionShort = "A common revolver cartridge favourited for its stopping power.";
  1610.         itemSize = {1, 1};
  1611.         stackedMax = 30;
  1612.         chamberedRound = "B_357";
  1613.     };
  1614.  
  1615.     class Ammo_556_20Rnd: AmmunitionItemBase {
  1616.         scope = 2;
  1617.         displayName = "5.56mm 20 Rounds";
  1618.         model = "\dz\weapons\ammunition\556_20RoundBox.p3d";
  1619.         descriptionShort = "A cardbox box with 'Contains 20 5.56 rifle cartridges' written on it. Presumably contains 20 rounds in a disposable cardboard wrapper.";
  1620.         quantity = "";
  1621.  
  1622.         class Resources {
  1623.  
  1624.             class Ammo_556 {
  1625.                 value = 20;
  1626.                 variable = "quantity";
  1627.             };
  1628.         };
  1629.  
  1630.         class UserActions {
  1631.  
  1632.             class StripMagazine {
  1633.                 displayNameDefault = "Empty Ammo";
  1634.                 displayName = "Empty";
  1635.                 position = "action";
  1636.                 onlyForPlayer = 1;
  1637.                 radius = 2;
  1638.                 condition = "true";
  1639.                 statement = "[this,_person] spawn player_stripMagazine;";
  1640.             };
  1641.         };
  1642.     };
  1643.  
  1644.     class Ammo_762_20Rnd: AmmunitionItemBase {
  1645.         scope = 2;
  1646.         displayName = "7.62mm 20 Rounds";
  1647.         model = "\dz\weapons\ammunition\556_20RoundBox.p3d";
  1648.         descriptionShort = "A cardbox box with 'Contains 20 7.62 rifle cartridges' written on it. Presumably contains 20 rounds in a disposable cardboard wrapper.";
  1649.         quantity = "";
  1650.  
  1651.         class Resources {
  1652.  
  1653.             class Ammo_762 {
  1654.                 value = 20;
  1655.                 variable = "quantity";
  1656.             };
  1657.         };
  1658.  
  1659.         class UserActions {
  1660.  
  1661.             class StripMagazine {
  1662.                 displayNameDefault = "Empty Ammo";
  1663.                 displayName = "Empty";
  1664.                 position = "action";
  1665.                 onlyForPlayer = 1;
  1666.                 radius = 2;
  1667.                 condition = "true";
  1668.                 statement = "[this,_person] spawn player_stripMagazine;";
  1669.             };
  1670.         };
  1671.     };
  1672. };
  1673.  
  1674. enum {
  1675.     destructengine = 2,
  1676.     destructdefault = 6,
  1677.     destructwreck = 7,
  1678.     destructtree = 3,
  1679.     destructtent = 4,
  1680.     stabilizedinaxisx = 1,
  1681.     stabilizedinaxisy = 2,
  1682.     destructno = 0,
  1683.     stabilizedinaxesboth = 3,
  1684.     stabilizedinaxesnone = 0,
  1685.     destructman = 5,
  1686.     destructbuilding = 1
  1687. }
Advertisement
Add Comment
Please, Sign In to add comment