Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //LAV COMMAND CENTER-------------------------------------
- //HQ UNFOLD END
- if(cursorTarget isKindOf "LAV25_HQ" && (player distance cursorTarget < 10)) then {
- nearLAV = true;
- } else {
- nearLAV = false;
- };
- if (nearLAV) then {
- if (s_player_hq < 0) then {
- s_player_hq = player addAction [("<t color=""#0096ff"">" + ("Deploy HQ") +"</t>"),"scripts\HQ.sqf","",0,false,true,"",""];
- };
- } else {
- player removeAction s_player_hq;
- s_player_hq = -1;
- };
- //HQ UNFOLD END
- //HQ FOLD START
- if(cursorTarget isKindOf "LAV25_HQ_unfolded" and _canDo and (player distance cursorTarget < 10)) then {
- nearHQ = true;
- } else {
- nearHQ = false;
- };
- if (nearHQ) then {
- if (s_player_lav < 0) then {
- s_player_lav = player addAction [("<t color=""#0096ff"">" + ("Refold HQ") +"</t>"),"scripts\LAV.sqf","",0,false,true,"",""];
- };
- } else {
- player removeAction s_player_lav;
- s_player_lav = -1;
- };
- //HQ FOLD END
- //MRAZFEA START
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" && (player distance cursorTarget < 3)) then {
- if (s_player_mrazfea < 0) then {
- s_player_mrazfea = player addAction ["Activate Anti-Zed Emitter","scripts\mrazfea.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_mrazfea;
- s_player_mrazfea = -1;
- };
- //MRAZFEA START
- //HQ ALARM START
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" && (player distance cursorTarget < 3)) then {
- if (s_player_hqa < 0) then {
- s_player_hqa = player addAction ["Activate Alarm","scripts\HQalarm.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqa;
- s_player_hqa = -1;
- };
- //HQ ALARM START
- //HQ RADIO START
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" && (player distance cursorTarget < 3)) then {
- if (s_player_hqr < 0) then {
- s_player_hqr = player addAction ["Scan for Incoming Signals","scripts\radioHQ.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqr;
- s_player_hqr = -1;
- };
- //HQ RADIO START
- //HQ CCTV START
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" && (player distance cursorTarget < 3)) then {
- if (s_player_hqLaptop < 0) then {
- s_player_hqLaptop = player addAction ["Access Surveillance Grid","cctv\init.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqLaptop;
- s_player_hqLaptop = -1;
- };
- //HQ CCTV END
- //HQ DRONE TV START
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" && (player distance cursorTarget < 3)) then {
- if (s_player_hqdronecam < 0) then {
- s_player_hqdronecam = player addAction ["Access Scout Pod Camera","cctv\initdrone.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqdronecam;
- s_player_hqdronecam = -1;
- };
- //HQ DRONE TV END
- //HQ TENT START
- private ["_camp"];
- _camp = count nearestObjects [_playerPos, ["ACamp_EP1"], 50] > 0;
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" and !_camp && (player distance cursorTarget < 12) && (player distance cursorTarget > 6)) then {
- if (s_player_hqcamp < 0) then {
- s_player_hqcamp = player addAction ["Deploy Tent","scripts\camp.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqcamp;
- s_player_hqcamp = -1;
- };
- //HQ TENT END
- //HQ BIKE START
- private ["_bike"];
- _bike = count nearestObjects [_playerPos, ["Old_bike_TK_CIV_EP1"], 50] > 0;
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" and !_bike && (player distance cursorTarget < 10)) then {
- if (s_player_hqbike < 0) then {
- s_player_hqbike = player addAction ["Deploy Scout Bike","scripts\scoutbike.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqbike;
- s_player_hqbike = -1;
- };
- //HQ BIKE END
- //HQ DRONE START
- private ["_drone"];
- _drone = count nearestObjects [_playerPos, ["Ka137_PMC"], 50] > 0;
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" and !_drone && (player distance cursorTarget < 10)) then {
- if (s_player_hqdrone < 0) then {
- s_player_hqdrone = player addAction ["Deploy Scout Pod","scripts\drone.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqdrone;
- s_player_hqdrone = -1;
- };
- //HQ DRONE END
- //HQ LIGHT START
- private ["_lite"];
- _lite = count nearestObjects [_playerPos, ["SearchLight"], 50] > 0;
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" and !_lite && (player distance cursorTarget < 10)) then {
- if (s_player_hqlite < 0) then {
- s_player_hqlite = player addAction ["Deploy Search Light","scripts\light.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqlite;
- s_player_hqlite = -1;
- };
- //HQ LIGHT END
- //HQ MG START
- private ["_mg"];
- _mg = count nearestObjects [_playerPos, ["M2StaticMG"], 50] > 0;
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" and !_mg && (player distance cursorTarget < 10)) then {
- if (s_player_hqmg < 0) then {
- s_player_hqmg = player addAction ["Deploy Machine Gun","scripts\mg.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqmg;
- s_player_hqmg = -1;
- };
- //HQ MG END
- //HQ BARREL START
- private ["_bar"];
- _bar = count nearestObjects [_playerPos, ["Land_Fire_barrel"], 15] > 0;
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" and !_bar && (player distance cursorTarget < 10)) then {
- if (s_player_hqbar < 0) then {
- s_player_hqbar = player addAction ["Deploy Signal Fire","scripts\barrel.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqbar;
- s_player_hqbar = -1;
- };
- //HQ BARREL END
- //HQ WATER START
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" && (player distance cursorTarget < 3) && ("ItemWaterbottleUnfilled" in magazines player)) then {
- if (s_player_hqwater < 0) then {
- s_player_hqwater = player addAction ["Purified Water Supply","scripts\water.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqwater;
- s_player_hqwater = -1;
- };
- //HQ WATER END
- //HQ M4 START
- private ["_nearrifle", "_nearbyrifle", "_hasrifle"];
- _nearrifle = count nearestObjects [_playerPos, ["WeaponHolder_M4A1_Aim"], 20] > 0;
- _nearbyrifle = count nearestObjects [_playerPos, ["M4A1_Aim"], 20] > 0;
- _hasrifle = "M4A1_Aim" in weapons player;
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" and !_nearrifle && !_nearbyrifle && !_hasrifle && (player distance cursorTarget < 3)) then {
- if (s_player_hqm4 < 0) then {
- s_player_hqm4 = player addAction ["Take M4","scripts\m4.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqm4;
- s_player_hqm4 = -1;
- };
- //HQ M4 START END
- //HQ M4 MAG START
- private ["_nearmag", "_nearbymag", "_hasmag"];
- _nearmag = count nearestObjects [_playerPos, ["WeaponHolder_30Rnd_556x45_Stanag"], 20] > 0;
- _nearbymag = count nearestObjects [_playerPos, ["30Rnd_556x45_Stanag"], 20] > 0;
- _hasmag = "30Rnd_556x45_Stanag" in magazines player;
- if (cursorTarget isKindOf "LAV25_HQ_unfolded" and !_nearmag && !_nearbymag && !_hasmag && (player distance cursorTarget < 3)) then {
- if (s_player_hqm4MAG < 0) then {
- s_player_hqm4MAG = player addAction ["Take STANAG Magazine","scripts\m4mag.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqm4MAG;
- s_player_hqm4MAG = -1;
- };
- //HQ M4 MAG END
- //LAV COMMAND CENTER-------------------------------------
- //BTR90 COMMAND CENTER-------------------------------------
- //HQE UNFOLD END
- if(cursorTarget isKindOf "BTR90_HQ" && (player distance cursorTarget < 10)) then {
- nearBTR = true;
- } else {
- nearBTR = false;
- };
- if (nearBTR) then {
- if (s_player_hqe < 0) then {
- s_player_hqe = player addAction [("<t color=""#0096ff"">" + ("Deploy HQ") +"</t>"),"scripts\HQE.sqf","",0,false,true,"",""];
- };
- } else {
- player removeAction s_player_hqe;
- s_player_hqe = -1;
- };
- //HQE UNFOLD END
- //HQ FOLD START
- if(cursorTarget isKindOf "BTR90_HQ_unfolded" and _canDo and (player distance cursorTarget < 10)) then {
- nearHQe = true;
- } else {
- nearHQe = false;
- };
- if (nearHQe) then {
- if (s_player_btr < 0) then {
- s_player_btr = player addAction [("<t color=""#0096ff"">" + ("Refold HQ") +"</t>"),"scripts\BTR.sqf","",0,false,true,"",""];
- };
- } else {
- player removeAction s_player_btr;
- s_player_btr = -1;
- };
- //HQ FOLD END
- //MRAZFEA START
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" && (player distance cursorTarget < 4)) then {
- if (s_player_mrazfeae < 0) then {
- s_player_mrazfeae = player addAction ["Activate Anti-Zed Emitter","scripts\mrazfeae.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_mrazfeae;
- s_player_mrazfeae = -1;
- };
- //MRAZFEA START
- //HQ ALARM START
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" && (player distance cursorTarget < 4)) then {
- if (s_player_hqea < 0) then {
- s_player_hqea = player addAction ["Activate Alarm","scripts\HQalarme.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqea;
- s_player_hqea = -1;
- };
- //HQ ALARM START
- //HQ RADIO START
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" && (player distance cursorTarget < 4)) then {
- if (s_player_hqer < 0) then {
- s_player_hqer = player addAction ["Scan for Incoming Signals","scripts\radioHQe.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqer;
- s_player_hqer = -1;
- };
- //HQ RADIO START
- //HQ CCTV START
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" && (player distance cursorTarget < 4)) then {
- if (s_player_hqeLaptop < 0) then {
- s_player_hqeLaptop = player addAction ["Access Surveillance Grid","cctv\init.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqeLaptop;
- s_player_hqeLaptop = -1;
- };
- //HQ CCTV END
- //HQ TENT START
- //private ["_camp"];
- //_camp = count nearestObjects [_playerPos, ["ACamp_EP1"], 50] > 0;
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" and !_camp && (player distance cursorTarget < 12) && (player distance cursorTarget > 6)) then {
- if (s_player_hqecamp < 0) then {
- s_player_hqecamp = player addAction ["Deploy Tent","scripts\camp.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqecamp;
- s_player_hqecamp = -1;
- };
- //HQ TENT END
- //HQ BIKE START
- // private ["_bike"];
- //_bike = count nearestObjects [_playerPos, ["Old_bike_TK_CIV_EP1"], 50] > 0;
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" and !_bike && (player distance cursorTarget < 10)) then {
- if (s_player_hqebike < 0) then {
- s_player_hqebike = player addAction ["Deploy Scout Bike","scripts\scoutbike.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqebike;
- s_player_hqebike = -1;
- };
- //HQ BIKE END
- //HQ DRONE START
- //private ["_drone"];
- //_drone = count nearestObjects [_playerPos, ["Ka137_PMC"], 50] > 0;
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" and !_drone && (player distance cursorTarget < 10)) then {
- if (s_player_hqedrone < 0) then {
- s_player_hqedrone = player addAction ["Deploy Scout Pod","scripts\drone.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqedrone;
- s_player_hqedrone = -1;
- };
- //HQ DRONE END
- //HQ LIGHT START
- //private ["_lite"];
- //_lite = count nearestObjects [_playerPos, ["SearchLight"], 50] > 0;
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" and !_lite && (player distance cursorTarget < 10)) then {
- if (s_player_hqelite < 0) then {
- s_player_hqelite = player addAction ["Deploy Search Light","scripts\light.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqelite;
- s_player_hqelite = -1;
- };
- //HQ LIGHT END
- //HQ MG START
- //private ["_mg"];
- //_mg = count nearestObjects [_playerPos, ["M2StaticMG"], 50] > 0;
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" and !_mg && (player distance cursorTarget < 10)) then {
- if (s_player_hqemg < 0) then {
- s_player_hqemg = player addAction ["Deploy Machine Gun","scripts\mg.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqemg;
- s_player_hqemg = -1;
- };
- //HQ MG END
- //HQ BARREL START
- //private ["_bar"];
- //_bar = count nearestObjects [_playerPos, ["Land_Fire_barrel"], 15] > 0;
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" and !_bar && (player distance cursorTarget < 10)) then {
- if (s_player_hqebar < 0) then {
- s_player_hqebar = player addAction ["Deploy Signal Fire","scripts\barrel.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqebar;
- s_player_hqebar = -1;
- };
- //HQ BARREL END
- //HQ WATER START
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" && (player distance cursorTarget < 4) && ("ItemWaterbottleUnfilled" in magazines player)) then {
- if (s_player_hqewater < 0) then {
- s_player_hqewater = player addAction ["Purified Water Supply","scripts\water.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqewater;
- s_player_hqewater = -1;
- };
- //HQ WATER END
- //HQ AK START
- private ["_nearakrifle", "_nearbyakifle", "_hasakrifle"];
- _nearakrifle = count nearestObjects [_playerPos, ["WeaponHolder_AK_74"], 20] > 0;
- _nearbyakifle = count nearestObjects [_playerPos, ["AK_74"], 20] > 0;
- _hasakrifle = "AK_74" in weapons player;
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" and !_nearakrifle && !_nearbyakifle && !_hasakrifle && (player distance cursorTarget < 3)) then {
- if (s_player_hqak < 0) then {
- s_player_hqak = player addAction ["Take AK 74","scripts\AK.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqak;
- s_player_hqak = -1;
- };
- //HQ AK END
- //HQ AK MAG START
- private ["_nearakmag", "_nearbyakmag", "_hasakmag"];
- _nearakmag = count nearestObjects [_playerPos, ["WeaponHolder_30Rnd_545x39_AK"], 20] > 0;
- _nearbyakmag = count nearestObjects [_playerPos, ["30Rnd_545x39_AK"], 20] > 0;
- _hasakmag = "30Rnd_545x39_AK" in magazines player;
- if (cursorTarget isKindOf "BTR90_HQ_unfolded" and !_nearakmag && !_hasakmag && !_hasakmag && (player distance cursorTarget < 3)) then {
- if (s_player_hqakMAG < 0) then {
- s_player_hqakMAG = player addAction ["Take AK Magazine","scripts\magak.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqakMAG;
- s_player_hqakMAG = -1;
- };
- //HQ AK MAG END
- //BTR90 COMMAND CENTER-------------------------------------
- //BMP COMMAND CENTER-------------------------------------
- //HQ BMP UNFOLD END
- if(cursorTarget isKindOf "BMP2_HQ_CDF" && (player distance cursorTarget < 10)) then {
- nearBMPHQ = true;
- } else {
- nearBMPHQ = false;
- };
- if (nearBMPHQ) then {
- if (s_player_hqBMP < 0) then {
- s_player_hqBMP = player addAction [("<t color=""#0096ff"">" + ("Deploy HQ") +"</t>"),"scripts\HQbmp.sqf","",0,false,true,"",""];
- };
- } else {
- player removeAction s_player_hqBMP;
- s_player_hqBMP = -1;
- };
- //HQ UNFOLD END
- //HQ FOLD START
- if(cursorTarget isKindOf "BMP2_HQ_CDF_unfolded" and _canDo and (player distance cursorTarget < 10)) then {
- nearHQbmp = true;
- } else {
- nearHQbmp = false;
- };
- if (nearHQbmp) then {
- if (s_player_bmp < 0) then {
- s_player_bmp = player addAction [("<t color=""#0096ff"">" + ("Refold HQ") +"</t>"),"scripts\bmp.sqf","",0,false,true,"",""];
- };
- } else {
- player removeAction s_player_bmp;
- s_player_bmp = -1;
- };
- //HQ FOLD END
- //MRAZFEA START
- if (cursorTarget isKindOf "BMP2_HQ_CDF_unfolded" && (player distance cursorTarget < 3)) then {
- if (s_player_mrazfeabmp < 0) then {
- s_player_mrazfeabmp = player addAction ["Activate Anti-Zed Emitter","scripts\mrazfeabmp.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_mrazfeabmp;
- s_player_mrazfeabmp = -1;
- };
- //MRAZFEA START
- //HQ ALARM START
- if (cursorTarget isKindOf "BMP2_HQ_CDF_unfolded" && (player distance cursorTarget < 3)) then {
- if (s_player_hqabmp < 0) then {
- s_player_hqabmp = player addAction ["Activate Alarm","scripts\HQalarmbmp.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqabmp;
- s_player_hqabmp = -1;
- };
- //HQ ALARM START
- //HQ RADIO START
- if (cursorTarget isKindOf "BMP2_HQ_CDF_unfolded" && (player distance cursorTarget < 3)) then {
- if (s_player_hqrbmp < 0) then {
- s_player_hqrbmp = player addAction ["Scan for Incoming Signals","scripts\radioHQbmp.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqrbmp;
- s_player_hqrbmp = -1;
- };
- //HQ RADIO START
- //HQ CCTV START
- if (cursorTarget isKindOf "BMP2_HQ_CDF_unfolded" && (player distance cursorTarget < 3)) then {
- if (s_player_bmphqLaptop < 0) then {
- s_player_bmphqLaptop = player addAction ["Access Surveillance Grid","cctv\init.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bmphqLaptop;
- s_player_bmphqLaptop = -1;
- };
- //HQ CCTV END
- //HQ TENT START
- //private ["_camp"];
- //_camp = count nearestObjects [_playerPos, ["ACamp_EP1"], 50] > 0;
- if (cursorTarget isKindOf "BMP2_HQ_CDF_unfolded" and !_camp && (player distance cursorTarget < 12) && (player distance cursorTarget > 6)) then {
- if (s_player_bmphqcamp < 0) then {
- s_player_bmphqcamp = player addAction ["Deploy Tent","scripts\camp.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bmphqcamp;
- s_player_bmphqcamp = -1;
- };
- //HQ TENT END
- //HQ BIKE START
- // private ["_bike"];
- //_bike = count nearestObjects [_playerPos, ["Old_bike_TK_CIV_EP1"], 50] > 0;
- if (cursorTarget isKindOf "BMP2_HQ_CDF_unfolded" and !_bike && (player distance cursorTarget < 10)) then {
- if (s_player_bmphqbike < 0) then {
- s_player_bmphqbike = player addAction ["Deploy Scout Bike","scripts\scoutbike.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bmphqbike;
- s_player_bmphqbike = -1;
- };
- //HQ BIKE END
- //HQ DRONE START
- // private ["_drone"];
- //_drone = count nearestObjects [_playerPos, ["Ka137_PMC"], 50] > 0;
- if (cursorTarget isKindOf "BMP2_HQ_CDF_unfolded" and !_drone && (player distance cursorTarget < 10)) then {
- if (s_player_bmphqdrone < 0) then {
- s_player_bmphqdrone = player addAction ["Deploy Scout Pod","scripts\drone.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bmphqdrone;
- s_player_bmphqdrone = -1;
- };
- //HQ DRONE END
- //HQ LIGHT START
- //private ["_lite"];
- //_lite = count nearestObjects [_playerPos, ["SearchLight"], 50] > 0;
- if (cursorTarget isKindOf "BMP2_HQ_CDF_unfolded" and !_lite && (player distance cursorTarget < 10)) then {
- if (s_player_bmphqlite < 0) then {
- s_player_bmphqlite = player addAction ["Deploy Search Light","scripts\light.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bmphqlite;
- s_player_bmphqlite = -1;
- };
- //HQ LIGHT END
- //HQ MG START
- //private ["_mg"];
- //_mg = count nearestObjects [_playerPos, ["M2StaticMG"], 50] > 0;
- if (cursorTarget isKindOf "BMP2_HQ_CDF_unfolded" and !_mg && (player distance cursorTarget < 10)) then {
- if (s_player_bmphqmg < 0) then {
- s_player_bmphqmg = player addAction ["Deploy Machine Gun","scripts\mg.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bmphqmg;
- s_player_bmphqmg = -1;
- };
- //HQ MG END
- //HQ BARREL START
- //private ["_bar"];
- //_bar = count nearestObjects [_playerPos, ["Land_Fire_barrel"], 15] > 0;
- if (cursorTarget isKindOf "BMP2_HQ_CDF_unfolded" and !_bar && (player distance cursorTarget < 10)) then {
- if (s_player_bmphqbar < 0) then {
- s_player_bmphqbar = player addAction ["Deploy Signal Fire","scripts\barrel.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bmphqbar;
- s_player_bmphqbar = -1;
- };
- //HQ BARREL END
- //HQ WATER START
- if (cursorTarget isKindOf "BMP2_HQ_CDF_unfolded" && (player distance cursorTarget < 3) && ("ItemWaterbottleUnfilled" in magazines player)) then {
- if (s_player_bmphqwater < 0) then {
- s_player_bmphqwater = player addAction ["Purified Water Supply","scripts\water.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bmphqwater;
- s_player_bmphqwater = -1;
- };
- //HQ WATER END
- //BMP COMMAND CENTER-------------------------------------
- //BDRM COMMAND CENTER-------------------------------------
- //HQ BMP UNFOLD END
- if(cursorTarget isKindOf "BRDM2_HQ_TK_GUE_EP1" && (player distance cursorTarget < 10)) then {
- nearBDRMHQ = true;
- } else {
- nearBDRMHQ = false;
- };
- if (nearBDRMHQ) then {
- if (s_player_hqBDRM < 0) then {
- s_player_hqBDRM = player addAction [("<t color=""#0096ff"">" + ("Deploy HQ") +"</t>"),"scripts\HQbdrm.sqf","",0,false,true,"",""];
- };
- } else {
- player removeAction s_player_hqBDRM;
- s_player_hqBDRM = -1;
- };
- //HQ UNFOLD END
- //HQ FOLD START
- if(cursorTarget isKindOf "BRDM2_HQ_TK_GUE_unfolded_EP1" and _canDo and (player distance cursorTarget < 10)) then {
- nearHQbdrm = true;
- } else {
- nearHQbdrm = false;
- };
- if (nearHQbdrm) then {
- if (s_player_bdrm < 0) then {
- s_player_bdrm = player addAction [("<t color=""#0096ff"">" + ("Refold HQ") +"</t>"),"scripts\bdrm.sqf","",0,false,true,"",""];
- };
- } else {
- player removeAction s_player_bdrm;
- s_player_bdrm = -1;
- };
- //HQ FOLD END
- //MRAZFEA START
- if (cursorTarget isKindOf "BRDM2_HQ_TK_GUE_unfolded_EP1" && (player distance cursorTarget < 3)) then {
- if (s_player_mrazfeabdrm < 0) then {
- s_player_mrazfeabdrm = player addAction ["Activate Anti-Zed Emitter","scripts\mrazfeab.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_mrazfeabdrm;
- s_player_mrazfeabdrm = -1;
- };
- //MRAZFEA START
- //HQ ALARM START
- if (cursorTarget isKindOf "BRDM2_HQ_TK_GUE_unfolded_EP1" && (player distance cursorTarget < 3)) then {
- if (s_player_hqabdrm < 0) then {
- s_player_hqabdrm = player addAction ["Activate Alarm","scripts\HQalarmb.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqabdrm;
- s_player_hqabdrm = -1;
- };
- //HQ ALARM START
- //HQ RADIO START
- if (cursorTarget isKindOf "BRDM2_HQ_TK_GUE_unfolded_EP1" && (player distance cursorTarget < 3)) then {
- if (s_player_hqrbdrm < 0) then {
- s_player_hqrbdrm = player addAction ["Scan for Incoming Signals","scripts\radioHQb.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqrbdrm;
- s_player_hqrbdrm = -1;
- };
- //HQ RADIO START
- //HQ CCTV START
- if (cursorTarget isKindOf "BRDM2_HQ_TK_GUE_unfolded_EP1" && (player distance cursorTarget < 3)) then {
- if (s_player_bdrmhqLaptop < 0) then {
- s_player_bdrmhqLaptop = player addAction ["Access Surveillance Grid","cctv\init.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bdrmhqLaptop;
- s_player_bdrmhqLaptop = -1;
- };
- //HQ CCTV END
- //HQ TENT START
- //private ["_camp"];
- //_camp = count nearestObjects [_playerPos, ["ACamp_EP1"], 50] > 0;
- if (cursorTarget isKindOf "BRDM2_HQ_TK_GUE_unfolded_EP1" and !_camp && (player distance cursorTarget < 12) && (player distance cursorTarget > 6)) then {
- if (s_player_bdrmhqcamp < 0) then {
- s_player_bdrmhqcamp = player addAction ["Deploy Tent","scripts\camp.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bdrmhqcamp;
- s_player_bdrmhqcamp = -1;
- };
- //HQ TENT END
- //HQ BIKE START
- // private ["_bike"];
- //_bike = count nearestObjects [_playerPos, ["Old_bike_TK_CIV_EP1"], 50] > 0;
- if (cursorTarget isKindOf "BRDM2_HQ_TK_GUE_unfolded_EP1" and !_bike && (player distance cursorTarget < 10)) then {
- if (s_player_bdrmhqbike < 0) then {
- s_player_bdrmhqbike = player addAction ["Deploy Scout Bike","scripts\scoutbike.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bdrmhqbike;
- s_player_bdrmhqbike = -1;
- };
- //HQ BIKE END
- //HQ DRONE START
- // private ["_drone"];
- //_drone = count nearestObjects [_playerPos, ["Ka137_PMC"], 50] > 0;
- if (cursorTarget isKindOf "BRDM2_HQ_TK_GUE_unfolded_EP1" and !_drone && (player distance cursorTarget < 10)) then {
- if (s_player_bdrmhqdrone < 0) then {
- s_player_bdrmhqdrone = player addAction ["Deploy Scout Pod","scripts\drone.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bdrmhqdrone;
- s_player_bdrmhqdrone = -1;
- };
- //HQ DRONE END
- //HQ LIGHT START
- //private ["_lite"];
- //_lite = count nearestObjects [_playerPos, ["SearchLight"], 50] > 0;
- if (cursorTarget isKindOf "BRDM2_HQ_TK_GUE_unfolded_EP1" and !_lite && (player distance cursorTarget < 10)) then {
- if (s_player_bdrmhqlite < 0) then {
- s_player_bdrmhqlite = player addAction ["Deploy Search Light","scripts\light.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bdrmhqlite;
- s_player_bdrmhqlite = -1;
- };
- //HQ LIGHT END
- //HQ MG START
- //private ["_mg"];
- //_mg = count nearestObjects [_playerPos, ["M2StaticMG"], 50] > 0;
- if (cursorTarget isKindOf "BRDM2_HQ_TK_GUE_unfolded_EP1" and !_mg && (player distance cursorTarget < 10)) then {
- if (s_player_bdrmhqmg < 0) then {
- s_player_bdrmhqmg = player addAction ["Deploy Machine Gun","scripts\mg.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bdrmhqmg;
- s_player_bdrmhqmg = -1;
- };
- //HQ MG END
- //HQ BARREL START
- //private ["_bar"];
- //_bar = count nearestObjects [_playerPos, ["Land_Fire_barrel"], 15] > 0;
- if (cursorTarget isKindOf "BRDM2_HQ_TK_GUE_unfolded_EP1" and !_bar && (player distance cursorTarget < 10)) then {
- if (s_player_bdrmhqbar < 0) then {
- s_player_bdrmhqbar = player addAction ["Deploy Signal Fire","scripts\barrel.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bdrmhqbar;
- s_player_bdrmhqbar = -1;
- };
- //HQ BARREL END
- //HQ WATER START
- if (cursorTarget isKindOf "BRDM2_HQ_TK_GUE_unfolded_EP1" && (player distance cursorTarget < 3) && ("ItemWaterbottleUnfilled" in magazines player)) then {
- if (s_player_bdrmhqwater < 0) then {
- s_player_bdrmphqwater = player addAction ["Purified Water Supply","scripts\water.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_bdrmphqwater;
- s_player_bdrmphqwater = -1;
- };
- //HQ WATER END
- //BDRM COMMAND CENTER-------------------------------------
- //COMMAND TENT START
- //HQ FIRST AID START
- if (cursorTarget isKindOf "ACamp_EP1" && (player distance cursorTarget < 4)) then {
- if (s_player_fa < 0) then {
- s_player_fa = player addAction ["First Aid","scripts\bandage.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_fa;
- s_player_fa = -1;
- };
- //HQ FIRST AID END
- //HQ FOOD START
- private ["_nearMRE", "_nearbyMRE", "_hasMRE"];
- _nearMRE = count nearestObjects [_playerPos, ["WeaponHolder_FoodMRE"], 100] > 0;
- _nearbyMRE = count nearestObjects [_playerPos, ["FoodMRE"], 20] > 0;
- _hasMRE = "FoodMRE" in magazines player;
- if (cursorTarget isKindOf "ACamp_EP1" and !_nearMRE && !_nearbyMRE && !_hasMRE && (player distance cursorTarget < 4)) then {
- if (s_player_mre < 0) then {
- s_player_mre = player addAction ["Take Ration","scripts\mre.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_mre;
- s_player_mre = -1;
- };
- //HQ FOOD END
- //HQ TP START
- private ["_neartp", "_nearbytp", "_hastp"];
- _neartp = count nearestObjects [_playerPos, ["WeaponHolder_ItemTrashToiletpaper"], 100] > 0;
- _nearbytp = count nearestObjects [_playerPos, ["ItemTrashToiletpaper"], 20] > 0;
- _hastp = "ItemTrashToiletpaper" in magazines player;
- if (cursorTarget isKindOf "ACamp_EP1" and !_hastp && !_nearbytp && !_neartp && (player distance cursorTarget < 4)) then {
- if (s_player_tp < 0) then {
- s_player_tp = player addAction ["Take Toilet Paper","scripts\tp.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_tp;
- s_player_tp = -1;
- };
- //HQ TP END
- //HQ TENT DISPENSE START
- private ["_neartent", "_nearbytent", "_hastent"];
- _neartent = count nearestObjects [_playerPos, ["WeaponHolder_ItemTent"], 200] > 0;
- _nearbytent = count nearestObjects [_playerPos, ["TentStorage"], 20] > 0;
- _hastent = "ItemTent" in magazines player;
- if (cursorTarget isKindOf "ACamp_EP1" and !_neartent && !_nearbytent && !_hastent && (player distance cursorTarget < 4)) then {
- if (s_player_hqtentgive < 0) then {
- s_player_hqtentgive = player addAction ["Take Camping Tent","scripts\tentgive.sqf",cursorTarget, 0, false, true, "",""];
- };
- } else {
- player removeAction s_player_hqtentgive;
- s_player_hqtentgive = -1;
- };
- //HQ TENT DISPENSE END
- //COMMAND TENT END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement