summaryrefslogtreecommitdiffstats
path: root/Client/Module/Skill/Skill_Sniper.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_Sniper.sqf
downloada2wf_fallujah-e670b4ed55c459a21090bd0178ceaaaf12d87989.tar.gz
a2wf_fallujah-e670b4ed55c459a21090bd0178ceaaaf12d87989.tar.bz2
a2wf_fallujah-e670b4ed55c459a21090bd0178ceaaaf12d87989.zip
init
Diffstat (limited to 'Client/Module/Skill/Skill_Sniper.sqf')
-rw-r--r--Client/Module/Skill/Skill_Sniper.sqf31
1 files changed, 31 insertions, 0 deletions
diff --git a/Client/Module/Skill/Skill_Sniper.sqf b/Client/Module/Skill/Skill_Sniper.sqf
new file mode 100644
index 0000000..19bbfb1
--- /dev/null
+++ b/Client/Module/Skill/Skill_Sniper.sqf
@@ -0,0 +1,31 @@
+/*
+ Script: Sniper Skill System by Benny.
+ Description: Add special skills to the defined sniper.
+*/
+Private ['_binoculars','_markerName','_markertime','_screenPos'];
+
+
+private ["_binoculars","_screenPos","_markerName","_markertime"];
+_binoculars = 'WFBE_BINOCULARS' Call GetNamespace;
+if !((currentWeapon player) in _binoculars) exitWith {hint (localize "STR_WF_INFO_Spot_Info")};
+
+if (isNil "markerID") then {markerID = 1};
+_screenPos = screenToWorld [0.5,0.5];
+
+_markerName = Format ["Spot%1",markerID];
+createMarkerLocal [_markerName,_screenPos];
+_markertime = [daytime] call bis_fnc_timetostring;
+_markerName setMarkerText Format ['SPOTTED: %1',_markertime];
+_markerName setMarkerTypeLocal "mil_destroy";
+_markerName setMarkerColorLocal "ColorRed";
+_markerName setMarkerSizeLocal [0.5,0.5];
+markerID = markerID + 1;
+
+WFBE_SK_V_LastUse_Spot = time;
+
+[_markerName] Spawn {
+ Private ["_marker"];
+ _marker = _this select 0;
+ sleep 180;
+ deleteMarkerLocal _marker;
+}; \ No newline at end of file