mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Update player.sqf
This commit is contained in:
@@ -17,8 +17,6 @@ dz_fn_player_numItems =
|
|||||||
{
|
{
|
||||||
if (_this == 0) exitWith { 0 };
|
if (_this == 0) exitWith { 0 };
|
||||||
|
|
||||||
Debug_Assert(_this in dz_player_invTypes);
|
|
||||||
|
|
||||||
if (IS_MAGAZINE(_this)) then
|
if (IS_MAGAZINE(_this)) then
|
||||||
{ { _this == getNumber (configFile >> "CfgMagazines" >> _x >> "type") } count magazines player; }
|
{ { _this == getNumber (configFile >> "CfgMagazines" >> _x >> "type") } count magazines player; }
|
||||||
else
|
else
|
||||||
@@ -28,13 +26,11 @@ dz_fn_player_numItems =
|
|||||||
dz_fn_player_numEmptySlots =
|
dz_fn_player_numEmptySlots =
|
||||||
{
|
{
|
||||||
if (_this == 0) exitWith { 1000000 };
|
if (_this == 0) exitWith { 1000000 };
|
||||||
Debug_Assert(_this in dz_player_invTypes);
|
|
||||||
Player_NumSlots(_this) - Player_NumItems(_this);
|
Player_NumSlots(_this) - Player_NumItems(_this);
|
||||||
};
|
};
|
||||||
|
|
||||||
dz_fn_player_addItem =
|
dz_fn_player_addItem =
|
||||||
{
|
{
|
||||||
Debug_CheckParams2("SCALAR","STRING");
|
|
||||||
|
|
||||||
private ["_type", "_veh", "_num"];
|
private ["_type", "_veh", "_num"];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user