Add coins on zombies

Coins on zombies and the value can be handled with ZSC_ZombieCoins now. The coins for zombies will be handled directly in check wallet.

Also add a PVE check to disable check wallet if the player is not the owner of the body or in the group with the owner of the body.
This commit is contained in:
AirwavesMan
2020-09-13 17:24:08 +02:00
parent bf516a65e5
commit 48e6e5618d
4 changed files with 73 additions and 22 deletions

View File

@@ -694,6 +694,27 @@ if (!isDedicated) then {
_ret
};
DZE_PVE_Group_Check = {
private ["_player", "_body", "_nameBody", "_ingroup", "_name"];
_player = _this select 0;
_body = _this select 1;
_name = name _player;
_nameBody = _body getVariable ["bodyName","unknown"];
_ingroup = false;
{
if (_nameBody == name _x) exitwith {
_ingroup = true;
};
} count (units group _player);
if ((_nameBody != "unknown") && !(_name == _nameBody) && !_ingroup) exitwith {
true
};
false
};
DZ_KeyDown_EH = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\keyboard.sqf";
dayz_EjectPlayer = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\dze_ejectPlayer.sqf";