deploy chopper

This commit is contained in:
fallingsheep 2015-02-08 20:47:22 +11:00
parent afcc54caed
commit 17e6583eee
4 changed files with 52 additions and 9 deletions

Binary file not shown.

View File

@ -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.";
};

View File

@ -25,14 +25,7 @@ if (!isDedicated) then {
execVM "adminmenu\activate.sqf";
execVM "adminmenu\loop.sqf";
//BIKE
act = player addaction [("<t color=""#0074E8"">" + ("Bike") +"</t>"),"custom\Bike.sqf","",5,false,true,"",""];
//Pack BIKE
_target = cursorTarget;
_isbike = _target isKindOf "ebike_epoch";
if (_isbike) then{
player addaction [("<t color=""#0074E8"">" + ("PackBike") +"</t>"),"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 [("<t color=""#0074E8"">" + ("Build Bike") +"</t>"),"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 [("<t color=""#0074E8"">" + ("Build Chopper") +"</t>"),"custom\chopper.sqf","",5,false,true,"",""];
};
//PACK BIKE
_target = cursorTarget;
_isbike = _target isKindOf "ebike_epoch";
if (_isbike) then{
player addaction [("<t color=""#0074E8"">" + ("PackBike") +"</t>"),"custom\packbike2.sqf","",5,false,true,"",""];
};

View File

@ -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