mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix death when changing clothes + minor changes
removing the Respawn EH fixes this, I haven't noticed any adverse effects from removing it yet. Also changing groups now deletes the old group. The machine which the group is local to must execute the deleteGroup command, the server previously had to wait until the player disconnects to delete their empty groups.
This commit is contained in:
@@ -54,6 +54,7 @@ if (count _muzzles > 1) then {_currentWpn = currentMuzzle player;};
|
||||
_display = findDisplay 106;
|
||||
_display closeDisplay 0;
|
||||
|
||||
_oldGroup = group player;
|
||||
//BackUp Player Object
|
||||
_oldUnit = player;
|
||||
|
||||
@@ -151,6 +152,7 @@ _newUnit setPosATL _position;
|
||||
removeAllWeapons _oldUnit;
|
||||
{_oldUnit removeMagazine _x;} count magazines _oldUnit;
|
||||
if !(isNull _oldUnit) then {deleteVehicle _oldUnit;};
|
||||
deleteGroup _oldGroup;
|
||||
|
||||
// player switchCamera = _currentCamera;
|
||||
if (_currentWpn != "") then {_newUnit selectWeapon _currentWpn;};
|
||||
|
||||
Reference in New Issue
Block a user