mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
player respect will now be saved
This commit is contained in:
parent
55fe1d3b7d
commit
e36751add2
@ -4,7 +4,7 @@ class CfgPatches
|
||||
{
|
||||
units[] = {};
|
||||
weapons[] = {};
|
||||
a3_DMS_version = "June 29, 2016 (2)";
|
||||
a3_DMS_version = "June 30, 2016";
|
||||
requiredVersion = 1.36;
|
||||
requiredAddons[] = {"exile_client","exile_server_config"};
|
||||
};
|
||||
|
@ -331,11 +331,11 @@ if (isPlayer _killer) then
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
private _shareInfoDistance = _unit getVariable ["DMS_ai_share_info_distance",DMS_ai_share_info_distance];
|
||||
{
|
||||
if ((alive _x) && {!(isPlayer _x) && {(_x distance2D _unit) <= (_unit getVariable ["DMS_ai_share_info_distance",DMS_ai_share_info_distance])}}) then
|
||||
if ((_x distance2D _unit) <= _shareInfoDistance) then
|
||||
{
|
||||
_x reveal [_killer, _revealAmount max (_x knowsAbout _playerObj)];
|
||||
_x reveal [_killer, _revealAmount];
|
||||
};
|
||||
} forEach _grpUnits;
|
||||
};
|
||||
|
@ -114,6 +114,9 @@ if ((!isNull _playerObj) && {(_playerUID != "") && {_playerObj isKindOf "Exile_U
|
||||
[_playerObj, "showFragRequest", [_attributes]] call ExileServer_system_network_send_to;
|
||||
};
|
||||
|
||||
// Update respect in database
|
||||
format["setAccountScore:%1:%2", _playerRespect, _playerUID] call ExileServer_system_database_query_fireAndForget;
|
||||
|
||||
// Send updated respect value to client
|
||||
ExileClientPlayerScore = _playerRespect;
|
||||
(owner _playerObj) publicVariableClient "ExileClientPlayerScore";
|
||||
|
@ -150,6 +150,10 @@ ___
|
||||
# Changelog:
|
||||
|
||||
### Main Branch
|
||||
#### June 30, 2016 (2:30 AM CST-America):
|
||||
* DMS will now update player respect in the database when a player kills an AI (and respect is awarded to the player).
|
||||
* Optimizations related to "DMS_ai_share_info" (also, using a suppressor against AI might be better ;) )
|
||||
|
||||
#### June 29, 2016 (6:00 PM CST-America):
|
||||
* Fixed a few issues (script errors, missions not broadcasting, group kill notifications not broadcasting).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user