From 17e6583eee8eb4a9e65ffd51fca9f82625b83e3a Mon Sep 17 00:00:00 2001 From: fallingsheep Date: Sun, 8 Feb 2015 20:47:22 +1100 Subject: [PATCH] deploy chopper --- MPMissions/epoch.Altis.pbo | Bin 746667 -> 748347 bytes MPMissions/epoch.Altis/custom/chopper.sqf | 34 ++++++++++++++++++++++ MPMissions/epoch.Altis/init.sqf | 25 +++++++++++----- TODO.txt | 2 +- 4 files changed, 52 insertions(+), 9 deletions(-) create mode 100644 MPMissions/epoch.Altis/custom/chopper.sqf diff --git a/MPMissions/epoch.Altis.pbo b/MPMissions/epoch.Altis.pbo index 0f83d0cc216a6c6c0944e5b36244ce03dd1e5942..c142573a6ff77059c5d56ddfa133778bc6f61a97 100644 GIT binary patch delta 1059 zcmd5)PiWIn7`I#7HG$Y|dYIz2M}}RC*}6Z9Nd1GY)z%Fbw)qdl_?Et|&t_?sWQvFE3X-MxirnAof1+PoX zQrd!-JnP{#W=5HZgFUnArkXDd$JiscL zf|KwzR*?ZT1s0JWv3Uus%QM&%p>7&~XI(})EGuXfX%OpwrbU36LnS6VL>Vwq1X-vkSe*n$ z4j~Pg1v*C_)fZldR=UBHB(JI>J-4fU9b>W%9oB@iF9?!xoJYNU3~=mRj0o28qyOBU zV*#xKJ8Jv~dwpc}kX5UjytNLr>{2eqv5cK<-L2G4`pj>3u=9)!Mlv)wtAbO2k4q_} zU}+dn=1i%tUrLH2i4^ZJ8B%;HQdzH52FU$NJB_xU3H1C>5y+2<;I&(k@0E6Pp~?m9 z54tvnT&s4qIuXMdimlzCbDjBWXH(r3WU)HjQjcAUn7J53xMlvlqod%==$ccwSa&pl zY6jHD1g;|i^~#iCdt*oSded@hIUQ&kFBFtKHc9{5!Schk&;Glm+PzZEL(xFdNa3aM mQTQpEC;}9WRjRRvp6(x*UAvJ84>sRinUAb*raf8s=KW6&*JY#t delta 222 zcmdmeO?UN4-3bwV@~jMCu>9!t5P8;(X=tIF*6Xe05K~NvjH(X5OV-A=XS0OT(Yx8R$t;2&i{MvmcQ+4t?pKp>Y#vqAppkO BPWS)- 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