diff --git a/MPMissions/epoch.Altis.pbo b/MPMissions/epoch.Altis.pbo index 0f83d0c..c142573 100644 Binary files a/MPMissions/epoch.Altis.pbo and b/MPMissions/epoch.Altis.pbo differ diff --git a/MPMissions/epoch.Altis/custom/chopper.sqf b/MPMissions/epoch.Altis/custom/chopper.sqf new file mode 100644 index 0000000..f78751b --- /dev/null +++ b/MPMissions/epoch.Altis/custom/chopper.sqf @@ -0,0 +1,34 @@ +//The script:// + + + //Script created by Bakler2 + //edited by falling sheep to makechopper + + if (("ItemScraps" in magazines player)&&("jerrycan_epoch" in magazines player)&&("CircuitParts" in magazines player)&&("VehicleRepair" in magazines player)) then { + if ("ToolKit" in magazines player) then{ + player removeMagazine "ItemScraps"; + player removeMagazine "CircuitParts"; + player removeMagazine "VehicleRepair"; + player removeMagazine "jerrycan_epoch"; + + _spawn = "B_Heli_Light_01_EPOCH"; + _posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0]; + _saveVehicle call EPOCH_server_save_vehicle; + _dirplr = getDir player; + _spwnveh = _spawn createVehicle (_posplr); + _spwnveh setVariable ["Sarge",1,true]; + _vehObj call EPOCH_server_save_vehicle; + + _vehObj call EPOCH_server_setVToken; + + + player playActionNow "Medic"; + + sleep 3; + cutText [format["You built a Chopper."], "PLAIN DOWN"]; + } else { + SystemChat "You need a Toolkit to build a Chopper."; + }; +} else { + SystemChat "You need Scrap,CircutParts,Jerrycan and Vehicle Repair items to build a Chopper."; +}; \ No newline at end of file diff --git a/MPMissions/epoch.Altis/init.sqf b/MPMissions/epoch.Altis/init.sqf index 4a573f6..ca47a7e 100644 --- a/MPMissions/epoch.Altis/init.sqf +++ b/MPMissions/epoch.Altis/init.sqf @@ -25,14 +25,7 @@ if (!isDedicated) then { execVM "adminmenu\activate.sqf"; execVM "adminmenu\loop.sqf"; -//BIKE -act = player addaction [("" + ("Bike") +""),"custom\Bike.sqf","",5,false,true,"",""]; -//Pack BIKE -_target = cursorTarget; -_isbike = _target isKindOf "ebike_epoch"; -if (_isbike) then{ - player addaction [("" + ("PackBike") +""),"custom\packbike2.sqf","",5,false,true,"",""]; -}; + //Loadouts [] execVM "custom\loadout.sqf"; @@ -41,4 +34,20 @@ if (isServer) then { fn_getBuildingstospawnLoot = compile preProcessFileLineNumbers "custom\LSpawner\fn_LSgetBuildingstospawnLoot.sqf"; LSdeleter = compile preProcessFileLineNumbers "custom\LSpawner\LSdeleter.sqf"; execVM "custom\LSpawner\Lootspawner.sqf"; +}; + + +//BUILD BIKE +if (("ItemScraps" in magazines player)&&("ToolKit" in magazines player)) then{ + player addaction [("" + ("Build Bike") +""),"custom\Bike.sqf","",5,false,true,"",""]; +}; +//BUILD CHOPPER +if (("ItemScraps" in magazines player)&&("jerrycan_epoch" in magazines player)&&("CircuitParts" in magazines player)&&("VehicleRepair" in magazines player)) then { + player addaction [("" + ("Build Chopper") +""),"custom\chopper.sqf","",5,false,true,"",""]; +}; +//PACK BIKE +_target = cursorTarget; +_isbike = _target isKindOf "ebike_epoch"; +if (_isbike) then{ + player addaction [("" + ("PackBike") +""),"custom\packbike2.sqf","",5,false,true,"",""]; }; \ No newline at end of file diff --git a/TODO.txt b/TODO.txt index 15f9ba2..4ac039a 100644 --- a/TODO.txt +++ b/TODO.txt @@ -6,6 +6,7 @@ missions - DONE custom loot - DONE packable bike - DONE custom startup loadout - DONE +craft-able lil' bird - DONE plot for life - INCLUDED IN EPOCH single currency - INCLUDED IN EPOCH @@ -15,7 +16,6 @@ self bb - NOT NEEDED supply drops (medical/building supplies/gold/guns) -craft-able lil' bird slightly modded damage to strengthen helis rearm/refuel/repair