Remove some glitched map objects

Vanilla commits:

f1b7ffe327

08a883c288

368dd0e8d5

b0f60765d9

4ae5006f8b
This commit is contained in:
ebayShopper
2017-12-04 12:47:15 -05:00
parent ea2367a30b
commit 5ca381e95a
30 changed files with 149 additions and 160 deletions

View File

@@ -85,6 +85,7 @@ _newPlayer = _primary select 1;
_isNew = count _primary < 10; //_result select 1;
_charID = _primary select 2;
//diag_log ("LOGIN RESULT: " + str(_primary));
/* PROCESS */
_hiveVer = 0;
@@ -106,7 +107,7 @@ if (!_isNew) then {
_group = _primary select 5;
_playerCoins = _primary select 6;
_BankCoins = _primary select 7;
_hiveVer = _primary select 8;
_hiveVer = _primary select 8;
if (isNil "_model") then {
_model = "Survivor2_DZ";
} else {
@@ -148,7 +149,7 @@ if (_endMission) exitwith {
//Log For GhostMode
diag_log format["INFO - Player:%1(UID:%2/CID%3) Status: LOGIN CANCELLED, GHOSTMODE. Time remianing: %4",_playerName,_playerID,_charID,_remaining];
PVCDZ_plr_Ghost = [_remaining];
(owner _playerObj) publicVariableClient "PVCDZ_plr_Ghost";
};
@@ -156,6 +157,27 @@ if (_endMission) exitwith {
//Sync chopped trees for JIP player
{_x setDamage 1} count dayz_choppedTrees;
if (toLower worldName == "chernarus") then {
//Destroy glitched map objects which can not be deleted or hidden
{(_x select 0) nearestObject (_x select 1) setDamage 1} count [
//Clipped benches in barracks hallway
[[4654,9595,0],145259],
[[4654,9595,0],145260],
//Clip into Land_houseV_2T2
[[3553,2563,0],327203], //popelnice.p3d trash can
//Clip into zero_building Land_HouseV_3I3
[[2800,5202,0],187548], //popelnice.p3d trash can
//Clip into zero_building Land_HouseV_1L2
[[3656,2429,0],327885], //plot_rust_draty.p3d fence
[[3656,2429,0],328107], //plot_rust_draty.p3d fence
[[3656,2429,0],328108], //plot_rust_draty.p3d fence
[[3656,2429,0],328109], //plot_rust_draty.p3d fence
[[3656,2429,0],328110], //plot_rust_draty.p3d fence
//Floating stump misc_stub1.p3d
[[9084,8654,0],244480]
];
};
//Sync active group invites to JIP player
if (count dayz_activeInvites > 0) then {
(owner _playerObj) publicVariableClient "dayz_activeInvites";