Update server_playerLogin.sqf

Add Chernarus Winter to the glitched map objects removal so the silly bench in the NWAF barracks gets destroyed.
This commit is contained in:
worldwidesorrow
2020-07-14 16:48:43 -05:00
committed by GitHub
parent 4119391578
commit 163a8f696b

View File

@@ -157,7 +157,7 @@ if (_endMission) exitwith {
//Sync chopped trees for JIP player //Sync chopped trees for JIP player
{_x setDamage 1} count dayz_choppedTrees; {_x setDamage 1} count dayz_choppedTrees;
if (toLower worldName == "chernarus") then { if (toLower worldName in ["chernarus","chernarus_winter"]) then {
//Destroy glitched map objects which can not be deleted or hidden //Destroy glitched map objects which can not be deleted or hidden
{(_x select 0) nearestObject (_x select 1) setDamage 1} count [ {(_x select 0) nearestObject (_x select 1) setDamage 1} count [
//Clipped benches in barracks hallway //Clipped benches in barracks hallway
@@ -193,4 +193,4 @@ if (count dayz_activeInvites > 0) then {
[_playerID,_charID,2,(_playerObj call fa_plr2str),((getPosATL _playerObj) call fa_coor2str)] call dayz_recordLogin; [_playerID,_charID,2,(_playerObj call fa_plr2str),((getPosATL _playerObj) call fa_coor2str)] call dayz_recordLogin;
PVCDZ_plr_PlayerAccepted = [_playerName,diag_ticktime]; PVCDZ_plr_PlayerAccepted = [_playerName,diag_ticktime];
(owner _playerObj) publicVariableClient "PVCDZ_plr_PlayerAccepted"; (owner _playerObj) publicVariableClient "PVCDZ_plr_PlayerAccepted";