summaryrefslogtreecommitdiffstats
path: root/Client/PVFunctions/AwardBounty.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:57:23 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:57:23 +0300
commit3533c3aa9393fc6350178b196c813dc636ec9cf6 (patch)
tree2f96a879c3935dea18e73410926b03c7eef1a751 /Client/PVFunctions/AwardBounty.sqf
downloada2wf_isladuala-3533c3aa9393fc6350178b196c813dc636ec9cf6.tar.gz
a2wf_isladuala-3533c3aa9393fc6350178b196c813dc636ec9cf6.tar.bz2
a2wf_isladuala-3533c3aa9393fc6350178b196c813dc636ec9cf6.zip
init
Diffstat (limited to '')
-rw-r--r--Client/PVFunctions/AwardBounty.sqf19
1 files changed, 19 insertions, 0 deletions
diff --git a/Client/PVFunctions/AwardBounty.sqf b/Client/PVFunctions/AwardBounty.sqf
new file mode 100644
index 0000000..6e80016
--- /dev/null
+++ b/Client/PVFunctions/AwardBounty.sqf
@@ -0,0 +1,19 @@
+Private["_assist","_bounty","_get","_name","_type"];
+
+_type = _this select 0;
+_assist = _this select 1;
+
+_get = _type Call GetNamespace;
+
+_name = _get select QUERYUNITLABEL;
+_bounty = round((_get select QUERYUNITPRICE) * ('WFBE_BOUNTYMODIFIER' Call GetNamespace));
+
+//--- Are we dealing with a kill assist or a full kill.
+if (_assist) then {
+ _bounty = _bounty * ('WFBE_BOUNTYMODIFIERASSIST' Call GetNamespace);
+ Format[Localize "STR_WF_CHAT_Award_Bounty_Assist",_bounty,_name] Call GroupChatMessage;
+} else {
+ Format[Localize "STR_WF_CHAT_Award_Bounty",_bounty,_name] Call GroupChatMessage;
+};
+
+_bounty Call ChangePlayerFunds; \ No newline at end of file