BiPlane With M240? Oh Yes....

I added it at line 238
http://pastebin.com/mRAkHpAV
Chernarus 1.8.0.3
unable to join server
Here is where the arma2oaserver.RPT differs from a working stock install.
(Trying to join a second time just added more Client: Remote object... lines.)
20:49:27 Warning Message: Script z\addons\dayz_server\init\server_functions.sqf not found
20:49:27 "Res3tting B!S effects..."
20:49:27 Warning Message: Script z\addons\dayz_server\system\server_monitor.sqf not found
20:51:05 Client: Remote object 2:4 not found
20:51:05 Client: Remote object 2:5 not found
20:51:05 Client: Remote object 2:6 not found
 
Last edited:
I wish I was more knowledgeable about reading the RPT's but Im truly not. I'll take a look at this server_monitor and maybe we can come up with an idea. If you want I can link you to my server_monitor and run a comparison on notepad++
In the past Ive been hesitant to help because I don't want to give bad advice but since this is a test server we can just "throw shit at the wall and see what sticks."

Edit ok so taking a look... you added it around line 238.. I would try cutting that and pasting it around line 233 so it comes before
Code:
if (_object isKindOf "TrapItems") then {

like this....
Code:
                        [_object,_selection,_dam] call fnc_veh_setFixServer;
                    } forEach _hitpoints;
                    _object setvelocity [0,0,1];
                    _object setFuel _fuel;
                    _object call fnc_veh_ResetEH;
                } else {
                    if (!(_type in SafeObjects )) then {
                        _damage = 1;
                        diag_log format["OBJ: %1 - %2 REMOVED", _object,_damage];
                    };
                };
                           
                if (_object isKindOf "AN2_DZ") then {
                _object addWeapon "M240_veh";
                _object addMagazine "100Rnd_762x51_M240";
                _object addMagazine "100Rnd_762x51_M240";
                };
               
                if (_object isKindOf "TrapItems") then {
                    _object setVariable ["armed", _inventory select 0, false];
                };

On my server_monitor.. I tell the biplane to spawn with a weapon right after this
Code:
                    } forEach _hitpoints;
                } forEach [false, true]; // we set non explosive part first, then explosive parts
                _entity setvelocity [0,0,1];
                _entity setFuel _fuel;
                _entity call fnc_veh_ResetEH;
            };
 
Last edited:
Thanks for the help DangerRuss. I finally got it working by moving lines 237 to 243 in the file I posted above up to line 215.

- Repeating the _object addMagazine "100Rnd_762x51_M240"; line 20 times gave me 20 magazines that reload automatically in about 5 seconds.

- I was then able to get it working on the MH6J and AH6X_DZ at the same time as the AN2_DZ, by repeating those 7 lines twice and changing the aircraft names. The UH1H_DZ did not work.

- The 1200 round clip also worked by replacing all of the "100Rnd_762x51_M240" with "1200Rnd_762x51_M240".

- I was able to install the GAU12 and PKT_2 guns on the plane at the same time and switch between them using the F key. I got this to work using DangerRuss’s post on page 4, but To get it to work, on every line I had to replace _entity with _object . Would you know why _entity worked for you DangerRuss?

DayZ Chernarus 1.8.0.3 on a DayZ.ST Server.
 
My guess its just following the language that is being used in your version. If you notice in your version you see most lines beginning with _object so you always want those sorts of things to "match." Sorry i cant be more technical. Also if i may make a suggestion, those gau12s are very powerful, i felt overpowered. I found a working "50 caliber" and went with that instead.
 
Where it goes depends on exactly what DayZ version, and map you are running, Also who your provider is and what other additions you have made to your server_monitor.sqf. The short answer for where it goes is found at line 1 of the very first post of this thread.
Post the above information here, and a copy of your server_monitor.sqf on http://pastebin.com and I'll try and help.
 
currently im running a epoch version of chernarus version 1.0.4.2 with the latest version of dayz... it is also run on a dedicated box

server_monitor.sqf follows http://pastebin.com/k0zUFfGt

only things that are run are WAI and DZAI

antihack is infistar.

this is an unedited version of it without the code.
 
Here you go. I've included your original files 5 lines above and below to help you place it. This includes 3 belts of ammo. Just keep repeating the "_object addMagazine" line to add more.
Code:
                        _countr = _countr + 1;

                    } forEach _objWpnTypes;
                };
            }; 
         
            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";
            };
            if (_object isKindOf "AllVehicles") then {
                {
                    _selection = _x select 0;
                    _dam = _x select 1;
                    if (_selection in dayZ_explosiveParts and _dam > 0.8) then {_dam = 0.8};
If it doesn’t work post your complete new "server_monitor.sqf" on http://pastebin.com and we can try again.
 
Post your server IP so we can check out your results.
I've got 33 planes with guns respawning at the airfields every restart on my DayZ 1.8.0.3 Free Candy server.
Search Free Candy or go to:

192.31.185.222:3306
 
Just noticed you are using infistar anti-hack. This mod only works on planes that are spawned in at restart. Planes added with the AH will not have guns. Also this adds them to the green AN2_DZ planes only if you want them on the other planes or little birds you just have to repeat the whole addition with the different aircraft names.
 
ok so if i buy the an2 or cessna i get the plane when it from is bought no guns or anything when i get in.....

anyway to get them when they are bought from a vendor to automatically spawn in the m240s?

it does work if the server restarts and then spawns the planes in they have the guns on them im just looking to get it to spawn when players buy them.
 
Last edited:
Getting the guns to work right after being bought from the trader is above my knowledge . Maybe someone else reading this could help.
 
Getting the guns to work right after being bought from the trader is above my knowledge . Maybe someone else reading this could help.
I don't think they do. I don't run epoch, but Im pretty sure they need to go through a server restart to have the guns.
 
ive gotten it to work on a epoch version. ill post on how i did it later when i get some free time!

also what would the m124 be named to add these to a vehicle i added the name m124 and nothing was added :/
 
This is what I am running on a just for fun server to add multiple guns to the green Bi-plane and both littlebirds. You switch guns by hitting F. The GAU12 is ridiculously over powered and the as50 does not have a site. I Swapped in the names for the AS50 and it ammo and it worked. I suspect it will work with other guns the same. Just make sure you have the matching ammo for it.
Code:
            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 addWeapon "PKT_2";
                _object addMagazine "100Rnd_762x54_PK";
                _object addMagazine "100Rnd_762x54_PK";
                _object addMagazine "100Rnd_762x54_PK";
                _object addMagazine "100Rnd_762x54_PK";
                _object addMagazine "100Rnd_762x54_PK";
                _object addWeapon "GAU12";
                _object addMagazine "300Rnd_25mm_GAU12";
            };
          
            if (_object isKindOf "MH6J_DZ") then {
                _object addWeapon "M240_veh";
                _object addMagazine "100Rnd_762x51_M240";
                _object addMagazine "100Rnd_762x51_M240";
                _object addMagazine "100Rnd_762x51_M240";
                _object addWeapon "BAF_AS50_scoped";
                _object addMagazine "5Rnd_127x99_as50";
                _object addMagazine "5Rnd_127x99_as50";
                _object addMagazine "5Rnd_127x99_as50";
                _object addMagazine "5Rnd_127x99_as50";
                _object addMagazine "5Rnd_127x99_as50";
                _object addMagazine "5Rnd_127x99_as50";
                _object addMagazine "5Rnd_127x99_as50";
            };
          
            if (_object isKindOf "AH6X_DZ") then {
                _object addWeapon "M240_veh";
                _object addMagazine "100Rnd_762x51_M240";
                _object addMagazine "100Rnd_762x51_M240";
                _object addMagazine "100Rnd_762x51_M240";
                _object addWeapon "GAU12";
                _object addMagazine "300Rnd_25mm_GAU12";
            };
 
Post your server_monitor.sqf
Don't forget that you must buy or spawn in the aircraft then restart the server for the guns to work.
 
Move it to line 243 like this.

Code:
                            _object addBackpackCargoGlobal [_x,(_objWpnQty select _countr)];
                        };
                        _countr = _countr + 1;
                    } count _objWpnTypes;
                };
            };  
          
//Aircraft Guns      
            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";
            };          
//Aircraft Guns end          
          
            if (_object isKindOf "AllVehicles") then {
                {
                    _selection = _x select 0;
                    _dam = _x select 1;
                    if (_selection in dayZ_explosiveParts && _dam > 0.8) then {_dam = 0.8};
                    [_object,_selection,_dam] call object_setFixServer;
 
Back
Top