mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Smaller BugFixes
This commit is contained in:
parent
ce07d89642
commit
e4859f1862
@ -89,3 +89,26 @@ if (_woman == 1) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
_tocheckfor = switch _item do {
|
||||||
|
case (uniform player): {uniformcontainer player};
|
||||||
|
case (vest player): {vestcontainer player};
|
||||||
|
case (backpack player): {backpackcontainer player};
|
||||||
|
default {objnull};
|
||||||
|
};
|
||||||
|
if (!isnull _tocheckfor) then {
|
||||||
|
{
|
||||||
|
_target = _x;
|
||||||
|
_subcontainers = everyContainer _target;
|
||||||
|
{
|
||||||
|
_subcontainer = _x;
|
||||||
|
if (_tocheckfor == (_subcontainer select 1)) then {
|
||||||
|
switch _item do {
|
||||||
|
case (uniform player): {removeUniform player;};
|
||||||
|
case (vest player): {removeVest player;};
|
||||||
|
case (backpack player): {removeBackpack player;};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
} foreach _subcontainers;
|
||||||
|
} foreach (nearestobjects [player,['WeaponHolder','WeaponHolderSimulated','MAN','Landvehicle','SHIP','AIR','ReammoBox_F'],10]);
|
||||||
|
};
|
||||||
|
@ -17,3 +17,6 @@ if !(EPOCH_arr_interactedObjs isEqualTo[]) then {
|
|||||||
[EPOCH_arr_interactedObjs] remoteExec['EPOCH_server_save_vehicles', 2];
|
[EPOCH_arr_interactedObjs] remoteExec['EPOCH_server_save_vehicles', 2];
|
||||||
EPOCH_arr_interactedObjs = [];
|
EPOCH_arr_interactedObjs = [];
|
||||||
};
|
};
|
||||||
|
if !(player == Vehicle Player) then {
|
||||||
|
call EPOCH_ReloadLoadout;
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user