summaryrefslogtreecommitdiffstats
path: root/Client/Module/Skill/Skill_Officer.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:58:31 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:58:31 +0300
commite670b4ed55c459a21090bd0178ceaaaf12d87989 (patch)
treeb6833d5e842475f0ee27f5f617096445fdd4e4a1 /Client/Module/Skill/Skill_Officer.sqf
downloada2wf_fallujah-e670b4ed55c459a21090bd0178ceaaaf12d87989.tar.gz
a2wf_fallujah-e670b4ed55c459a21090bd0178ceaaaf12d87989.tar.bz2
a2wf_fallujah-e670b4ed55c459a21090bd0178ceaaaf12d87989.zip
init
Diffstat (limited to '')
-rw-r--r--Client/Module/Skill/Skill_Officer.sqf32
1 files changed, 32 insertions, 0 deletions
diff --git a/Client/Module/Skill/Skill_Officer.sqf b/Client/Module/Skill/Skill_Officer.sqf
new file mode 100644
index 0000000..3048459
--- /dev/null
+++ b/Client/Module/Skill/Skill_Officer.sqf
@@ -0,0 +1,32 @@
+/*
+ Script: Officer Skill System by Benny.
+ Description: Add special skills to the defined officer.
+*/
+Private ['_array','_exist','_skip','_tent','_toWorld','_type','_z'];
+
+
+private ["_x","_skip","_array","_toWorld","_tent","_type","_exist"];
+_type = Format ["WFBE_%1FARP",sideJoinedText] Call GetNamespace;
+_exist = WF_Logic getVariable Format ["%1MASH",sideJoinedText];
+if !(isNull _exist) then {deleteVehicle _exist};
+
+WFBE_SK_V_LastUse_MASH = time;
+
+_skip = false;
+for [{_z = 0},{_z < 7},{_z = _z + 1}] do {
+ sleep 0.5;
+ player playMove "AinvPknlMstpSlayWrflDnon_medic";
+ sleep 0.5;
+ waitUntil {animationState player == "ainvpknlmstpslaywrfldnon_amovpknlmstpsraswrfldnon" || !alive player || vehicle player != player};
+ if (!alive player || vehicle player != player) exitWith {_skip = true};
+};
+
+if (!_skip) then {
+ _array = [((player worldToModel (getPos player)) select 0),((player worldToModel (getPos player)) select 1) + 10];
+ _toWorld = player modelToWorld _array;
+ _tent = _type createVehicle _toWorld;
+ WF_Logic setVariable [Format["%1MASH",sideJoinedText],_tent,true];
+ _tent addAction ["<t color='#f8d664'>" + localize 'STR_WF_ACTION_UndeployMASH'+ "</t>", "Client\Module\Skill\Actions\Officer_Undeploy_MASH.sqf", [], 75, false, true, "", "alive _target && time - WFBE_SK_V_LastUse_MASH > 240"];
+} else {
+ WF_Logic setVariable [Format["%1MASH",sideJoinedText],objNull,true];
+}; \ No newline at end of file