Chopper Ammo refuel

Mattz

Member
I have released the files!! Find there here:
https://github.com/MattzFiber/DayZ-Helicopter-Reload-Script

Current Version: 1.0
Please post any issues here!


So, for tonight, I set out doing this:
0husq.jpg


It will reload a helicopters guns..

But before everyone starts shouting "OP!" "Booo!!" "Domination by heli crewz!!!!!!!"
let me explain it...
It is at NWAF
When a helicopter goes in to land, it needs to land on the helicopters pad (H thingy)
Then it is shut down, no matter what, and it is not able to turn on until all mags are filled.
This will take a long time, leaving the crew on the ground having to protect themselves and their precious baby
At this time, you will be able to see the various stages through the refuel trough vehicle chat in the helicopter .
If you leave the helicopter, it stops reporting what its doing and your running around blind, not knowing how much longer your gonna be..?
Others can leave the helicopter, or all can leave it, or, everyone can stay in side it, "safe", but pick wisely on who you are going to throw out, the vehicle chat will be said by someone in the helicopter, if that person gets out the helicopter wont report updates until he gets back in
This whole load is about 4-5 minutes, don't quote me on that, though, it does depend on the helicopter, and I do not recommend you try this with an Mi 17 until someone tells me, how many mags does it have? Those, clips your can reload the guns with?
It has been based on the UH-1H and that only has 6 clips, I need to know how many the Mi - 17 has...
Then, once the ammo is filled, its go time, the helicopter does a final run through and it tells you to get ready to go, and then it fuels up again, however now, regardless of how much fuel you had before, there is 25% in it. The crew of the helicopter now has to make a plan to go and refuel... How close is the fuel station? Best you plan this before you land!

If a car parks here, it goes through the process and will get 25% fuel too, but nothing else will change :)

Thoughts? Ideas? Questions?

If you want to know more or what it when I release it please post HERE :D
 
Im using vanilla bliss and i dont have randomSeed=2920725; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=9; minute=20; }; in my mission.sqm?
 
I recommend putting up your full mission file or something. I tried this and nothing happened. I also tried spawning the buildings in using the database as a vehicle and no re-ammo happened.

your directions say to use it after
Code:
randomSeed=2920725; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=9; minute=20; };

are you leaving out an extra closing bracket at the end there? "}"
 
I recommend putting up your full mission file or something. I tried this and nothing happened. I also tried spawning the buildings in using the database as a vehicle and no re-ammo happened.

your directions say to use it after
Code:
randomSeed=2920725; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=9; minute=20; };

are you leaving out an extra closing bracket at the end there? "}"
agree, #0 put up the file so we all can see.
 
ErrorMessage: File mpmissions\__cur_mp.chernarus\mission.sqm, line 155: /Mission/Sensors/Item0/: '}' encountered instead of '{'

loaded on server and get this. any ideas?
 
Seems you may have missed a }

actually, you did

mission.sqm
Code:
class Effects
};
};

note the lack of open bracket { after class Effects (line 42 of the code).

this is why we need to see a full mission file... (the .pbo including the init, etc)
 
Code:
version=11;
class Mission
{
    addOns[]=
    {
        "chernarus",
        "ca_modules_animals",
        "dayz_code",
        "dayz_weapons",
        "dayz_equip",
        "dayz_vehicles",
        "cacharacters_pmc",
        "ca_modules_functions",
        "rmod",
        "cacharacters2",
        "CAWheeled2_GAZ39371",
        "ca_modules_pmc_simplefirstaid",
        "camisc3",
        "camisc_e",
        "caweapons_ammoboxes",
        "camisc_e_wf",
        "CAMisc",
        "cabuildings2_misc_cargo",
        "caweapons_e_ammoboxes",
        "dayz",
        "CABuildings",
        "castructures_e_misc_misc_garbage",
        "ind_tank",
        "castructures_mil",
        "castructures_e_mil",
        "castructures_e_ind_ind_shed",
        "castructures_e_misc_misc_market",
        "castructures_castle",
        "castructures_ruins",
        "castructureshouse_a_stationhouse",
        "castructures_wall",
        "castructureshouse_a_fuelstation",
        "castructureshouse_rail_station_big",
        "castructures_e_housec",
        "ind_dopravnik",
        "castructuresland_nav_boathouse",
        "castructures_e_housek",
        "camp_armory_misc_loudspeakers",
        "castructures_e_misc_misc_interier",
        "castructures_e_wall_wall_l",
        "casigns2",
        "castructures_e_misc_misc_construction",
        "castructures_a_buildingwip",
        "castructures_a_cranecon",
        "a_generalstore_01",
        "castructures_nav_pier",
        "castructures_e_housea_a_villa",
        "caroads2dam",
        "cadata",
        "a_statue",
        "caweapons_baf",
        "CAWater",
        "Arma2_Ka52"
    };
    addOnsAuto[]=
    {
        "dayz_weapons",
        "ca_modules_functions",
        "rmod",
        "cacharacters2",
        "CAWheeled2_GAZ39371",
        "camisc3",
        "camisc_e",
        "caweapons_ammoboxes",
        "dayz_equip",
        "camisc_e_wf",
        "CAMisc",
        "cabuildings2_misc_cargo",
        "caweapons_e_ammoboxes",
        "dayz",
        "CABuildings",
        "castructures_e_misc_misc_garbage",
        "ind_tank",
        "castructures_mil",
        "castructures_e_mil",
        "castructures_e_ind_ind_shed",
        "castructures_e_misc_misc_market",
        "castructures_castle",
        "castructures_ruins",
        "castructureshouse_a_stationhouse",
        "castructures_wall",
        "castructureshouse_a_fuelstation",
        "castructureshouse_rail_station_big",
        "castructures_e_housec",
        "ind_dopravnik",
        "castructuresland_nav_boathouse",
        "castructures_e_housek",
        "camp_armory_misc_loudspeakers",
        "castructures_e_misc_misc_interier",
        "castructures_e_wall_wall_l",
        "casigns2",
        "castructures_e_misc_misc_construction",
        "castructures_a_buildingwip",
        "castructures_a_cranecon",
        "a_generalstore_01",
        "castructures_nav_pier",
        "castructures_e_housea_a_villa",
        "caroads2dam",
        "cadata",
        "a_statue",
        "caweapons_baf",
        "chernarus"
    };
    randomSeed=11171215;
    class Intel
    {
        briefingName="DayZ Chernarus";
        briefingDescription="DayZ";
        startWeather=0.067362607;
        forecastWeather=0.52341133;
        year=2008;
        month=10;
        day=1;
        hour=12;
    };
    class Vehicles
    {
        items=2;
        class Item0
        {
            position[]={4603.7852,339,9866.3418};
            azimut=150;
            id=43;
            side="EMPTY";
            vehicle="Land_repair_center";
            skill=0.60000002;
            description="Repair Building Helli";
        };
        class Item1
        {
            position[]={4614.5044,339,9869.043};
            azimut=150;
            id=44;
            side="EMPTY";
            vehicle="HeliHCivil";
            skill=0.60000002;
            description="Helli Reload Pad";
        };
    };
 
 
    class Sensors
    {
        items=1;
        class Item0
        {
            position[]={4615.0078,339,9869.3428};
            a=6;
            b=6;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="HeliReload";
            expCond="this and ((getpos (thislist select 0)) select 2 < 1)";
            expActiv="_xhandle= [(thislist select 0)] execVM ""scriptsMZ\MZ_helo.sqf"";";
            class Effects
        };
    };
    class Groups

k, here is the first part of my mission file. this is how i added it in from your mission file. this crt?
 
Back
Top