diff options
| author | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:53:22 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:53:22 +0300 |
| commit | c055d44dcdb87e8db49fb23e632fc086aa44cce6 (patch) | |
| tree | 7ac98d865915930bebc86b36b512a859c31538e5 /Client/PVFunctions/AwardBounty.sqf | |
| download | a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.tar.gz a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.tar.bz2 a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.zip | |
init
Diffstat (limited to '')
| -rw-r--r-- | Client/PVFunctions/AwardBounty.sqf | 19 |
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 |
