From 68d4c9bbd80ed2e6528244569c79676b87295bd1 Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:54:45 +0300 Subject: init --- Client/PVFunctions/AwardBounty.sqf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Client/PVFunctions/AwardBounty.sqf (limited to 'Client/PVFunctions/AwardBounty.sqf') 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 -- cgit v1.3.1