From bff2a3091d9132b3c408d13ee28518b97bcf6e40 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Sun, 11 Dec 2016 15:25:57 -0500 Subject: [PATCH] Remove two unused files Vanilla commit: https://github.com/DayZMod/DayZ/commit/64ea1eaa76f6d3dce9b3be3685a8642de9390f43 --- SQF/dayz_code/compile/player_login.sqf | 5 ----- SQF/dayz_code/init/compiles.sqf | 6 ------ SQF/dayz_code/system/building_monitor.sqf | 19 ------------------- 3 files changed, 30 deletions(-) delete mode 100644 SQF/dayz_code/compile/player_login.sqf delete mode 100644 SQF/dayz_code/system/building_monitor.sqf diff --git a/SQF/dayz_code/compile/player_login.sqf b/SQF/dayz_code/compile/player_login.sqf deleted file mode 100644 index 212a718bf..000000000 --- a/SQF/dayz_code/compile/player_login.sqf +++ /dev/null @@ -1,5 +0,0 @@ -_unit = _this select 0; -_detail = _this select 1; -if(_unit == getPlayerUID player) then { - player setVariable["publish",_detail]; -}; \ No newline at end of file diff --git a/SQF/dayz_code/init/compiles.sqf b/SQF/dayz_code/init/compiles.sqf index e863e448d..ebf04e730 100644 --- a/SQF/dayz_code/init/compiles.sqf +++ b/SQF/dayz_code/init/compiles.sqf @@ -29,16 +29,11 @@ if (!isDedicated) then { player_temp_calculation = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_temperatur.sqf"; //Temperatur System //TeeChange player_weaponFiredNear = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_weaponFiredNear.sqf"; player_spawnCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_spawnCheck.sqf"; - //player_spawnLootCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_spawnlootCheck.sqf"; - //player_spawnZedCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_spawnzedCheck.sqf"; building_spawnLoot = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\building_spawnLoot.sqf"; //player_taskHint = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_taskHint.sqf"; building_spawnZombies = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\building_spawnZombies.sqf"; - //animal_monitor = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\animal_monitor.sqf"; - //building_monitor = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\building_monitor.sqf"; player_fired = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_fired.sqf"; //Runs when player fires. Alerts nearby Zeds depending on calibre and audial rating player_packTent = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_packTent.sqf"; - //control_zombieAgent = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\control_zombieAgent.sqf"; player_updateGui = switch (toLower DZE_UI) do { case "dark": {compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_updateGuiDark.sqf";}; case "epoch": {compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_updateGuiEpoch.sqf";}; @@ -46,7 +41,6 @@ if (!isDedicated) then { }; player_crossbowBolt = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_crossbowBolt.sqf"; player_music = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_music.sqf"; //Used to generate ambient music - //player_login = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_login.sqf"; //Used to generate ambient music player_death = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_death.sqf"; player_switchModel = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_switchModel.sqf"; player_checkStealth = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_checkStealth.sqf"; diff --git a/SQF/dayz_code/system/building_monitor.sqf b/SQF/dayz_code/system/building_monitor.sqf deleted file mode 100644 index 9c988c643..000000000 --- a/SQF/dayz_code/system/building_monitor.sqf +++ /dev/null @@ -1,19 +0,0 @@ -private ["_nearby","_run"]; -_building = _this select 0; -//_GroupMarker = _this select 1; -_items = _this select 2; -_run = true; -_nearby = false; -while {_run} do { - if (isNull _building) then {_run = false}; - _nearby = false; - { - if (_x distance _building < 500) then {_nearby = true}; - } forEach (call BIS_fnc_listPlayers); - if (!_nearby) then {_run = false}; - uiSleep 5; -}; -{deleteVehicle _x;} forEach _items; - - -_building setVariable ["looted",(DateToNumber date),true]; \ No newline at end of file