Adding M240's to biplanes

This has only been tested on 1.8.0.3 and on a Dayz.st server
All edits will be in the Server PBO

Go to server_monitor and find the code

if (_x == "Crossbow") then { _x = "Crossbow_DZ" }; // Convert Crossbow to Crossbow_DZ
if (_x == "BoltSteel") then { _x = "WoodenArrow" }; // Convert BoltSteel to WoodenArrow
// Convert to DayZ Weapons
if (_x == "DMR") then { _x = "DMR_DZ" };
//if (_x == "M14_EP1") then { _x = "M14_DZ" };
if (_x == "SVD") then { _x = "SVD_DZ" };
if (_x == "SVD_CAMO") then { _x = "SVD_CAMO_DZ" };
if (isClass(configFile >> (_config select _i) >> _x) &&
getNumber(configFile >> (_config select _i) >> _x >> "stopThis") != 1) then {
if (_forEachIndex < count _magItemQtys) then {
switch (_i) do {
case 0: { _object addWeaponCargoGlobal [_x,(_magItemQtys select _forEachIndex)]; };
case 1: { _object addMagazineCargoGlobal [_x,(_magItemQtys select _forEachIndex)]; };
case 2: { _object addBackpackCargoGlobal [_x,(_magItemQtys select _forEachIndex)]; };
};
};
};
} forEach _magItemTypes;
} forEach _cargo;
};


Under that add

if (_object isKindOf "AN2_DZ") then {

_object addWeapon "M240_veh";
_object addMagazine "100Rnd_762x51_M240";
_object addMagazine "100Rnd_762x51_M240";
_object addMagazine "100Rnd_762x51_M240";
_object addMagazine "100Rnd_762x51_M240";
_object addMagazine "100Rnd_762x51_M240";
_object addMagazine "100Rnd_762x51_M240";
};


Then you are done!

(optional) of you want to add mags just add one extra _object addMagazine "100Rnd_762x51_M240"; and to remove a mag obvis just delete one....
 
Back
Top