From 67bc61ff94a19380b84f739e3ba4f16c72727cbb Mon Sep 17 00:00:00 2001 From: icomrade Date: Fri, 16 Jun 2017 13:35:32 -0400 Subject: [PATCH] access is useless, update CFG Worlds --- .../Configs/CfgPlayerStats/defines.hpp | 6 +- SQF/dayz_code/Configs/CfgWorlds.hpp | 191 ++++-------------- .../Configs/RscDisplay/RscGroups.hpp | 2 +- .../Configs/RscDisplay/ZSCdefines.hpp | 2 +- .../RscDisplay/doorManagement/doorAccess.hpp | 2 +- .../Configs/RscDisplay/tradermenu.hpp | 4 +- SQF/dayz_code/Configs/cfgMoves.hpp | 2 +- SQF/dayz_code/Configs/rscTitles.hpp | 4 +- SQF/dayz_code/config.cpp | 2 +- SQF/dayz_code/gui/description.hpp | 2 +- SQF/dayz_code/gui/padlock/padlock_ui.hpp | 2 +- 11 files changed, 48 insertions(+), 171 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgPlayerStats/defines.hpp b/SQF/dayz_code/Configs/CfgPlayerStats/defines.hpp index 35afd57f2..c53945b03 100644 --- a/SQF/dayz_code/Configs/CfgPlayerStats/defines.hpp +++ b/SQF/dayz_code/Configs/CfgPlayerStats/defines.hpp @@ -25,7 +25,7 @@ class horde_RscPicture { - access = 0; + //access = 0; type = CT_STATIC; style = ST_PICTURE; idc = -1; @@ -59,7 +59,7 @@ class horde_RscText class horde_RscStructuredText { - access = 0; + //access = 0; type = CT_STRUCTURED_TEXT; style = ST_CENTER; font = "Zeppelin33"; @@ -77,7 +77,7 @@ class horde_RscStructuredText class horde_RscButton { - access = 0; + //access = 0; type = CT_BUTTON; style = ST_LEFT; x = 0; diff --git a/SQF/dayz_code/Configs/CfgWorlds.hpp b/SQF/dayz_code/Configs/CfgWorlds.hpp index caf013eea..5bbf432c8 100644 --- a/SQF/dayz_code/Configs/CfgWorlds.hpp +++ b/SQF/dayz_code/Configs/CfgWorlds.hpp @@ -4,6 +4,7 @@ class Grid; // External class reference class DefaultLighting; // External class reference class DayLightingRainy; // External class reference class Weather; // External class reference +class CAWorld; class Overcast { // increased wave size during storms class Weather1; class Weather2; @@ -29,181 +30,57 @@ class CfgWorlds { }; }; }; - class Chernarus; // External class reference - class DayZMod : Chernarus { - access = 3; - worldId = 4; - cutscenes[] = {"DayZModIntro1"}; - description = DayZVersion; - icon = ""; - worldName = "\ca\chernarus\chernarus.wrp"; - pictureMap = ""; - pictureShot = "\ca\chernarus\data\ui_selectisland_chernarus_ca.paa"; - plateFormat = "ML$ - #####"; - plateLetters = "ABCDEGHIKLMNOPRSTVXZ"; - longitude = 30; - latitude = -45; - class OutsideTerrain - { - satellite = "ca\CHERNARUS\data\s_satout_co.paa"; - enableTerrainSynth = 1; - class Layers - { - class Layer0 - { - nopx = "ca\CHERNARUS\data\cr_trava1_detail_nopx.paa"; - texture = "ca\CHERNARUS\data\cr_trava1_detail_co.paa"; - }; + class Chernarus: CAWorld { + class OutsideTerrain { + class Layers { + class Layer0; }; }; class Grid: Grid { - offsetX = 0; - offsetY = 0; - class Zoom1 - { - zoomMax = 0.15; - format = "XY"; - formatX = "000"; - formatY = "000"; - stepX = 100; - stepY = 100; - }; - class Zoom2 - { - zoomMax = 0.85; - format = "XY"; - formatX = "00"; - formatY = "00"; - stepX = 1000; - stepY = 1000; - }; - class Zoom3 - { - zoomMax = 1e+030; - format = "XY"; - formatX = "0"; - formatY = "0"; - stepX = 10000; - stepY = 10000; - }; + class Zoom1; + class Zoom2; + class Zoom3; }; - startTime = "9:20"; - startDate = "11/10/2008"; - startWeather = 0.25; - startFog = 0.0; - forecastWeather = 0.25; - forecastFog = 0.0; - centerPosition[] = {7100,7750,300}; - seagullPos[] = {1272.842,150.0,14034.962}; - ilsPosition[] = {4887.5,9660}; - ilsDirection[] = {0.5075,0.08,-0.8616}; - ilsTaxiIn[] = {4785.21,10174.29,5024.903,9759.071,5027.385,9737.021,5015.327,9721.136,4928.958,9670.509,4906.105,9664.372,4880.936,9673.65}; - ilsTaxiOff[] = {4671,10038,4195.5,10862.011,4201.01,10885.8,4218.536,10899.822,4304.679,10950.154,4324.962,10953.66,4345.746,10938.886,4785.21,10174.29}; - drawTaxiway = 1; class SecondaryAirports { - class ChernarusAirstrip1 - { - ilsPosition[] = {12461,12585}; - ilsDirection[] = {0.9396,0.08,-0.342}; - ilsTaxiIn[] = {12125.9,12669.3,12435.5,12562.1,12442,12561,12447,12564,12453.3,12575.2,12454.3,12581,12451.4,12586}; - ilsTaxiOff[] = {12204.4,12681.9,11812.1,12824.1,11804.1,12824.4,11797.8,12818.8,11790.9,12801.5,11790.6,12793.6,11796.6,12788.6,12125.9,12669.3}; - drawTaxiway = 0; - }; - class ChernarusAirstrip2 - { - ilsPosition[] = {5223,2220.5}; - ilsDirection[] = {0.866,0.08,-0.5}; - ilsTaxiIn[] = {5009.9,2374.2,5240.3,2243.2,5243.3,2238.4,5242.7,2232.1,5235.9,2221.1,5229.7,2216.6,5221.5,2217.3}; - ilsTaxiOff[] = {5070,2308,4640.8,2551.9,4638.3,2557,4639.3,2563.3,4646.5,2573.9,4651.3,2578.5,4658.5,2577.9,5009.9,2374.2}; - drawTaxiway = 0; - }; - }; - class ReplaceObjects{}; - class Sounds - { - sounds[] = {}; - }; - class Animation - { - vehicles[] = {}; - }; - class Lighting: DefaultLighting - { - groundReflection[] = {0.06,0.06,0.03}; - }; - class DayLightingBrightAlmost: DayLightingBrightAlmost - { - deepNight[] = {-15, {0.005, 0.01, 0.01}, {0.0, 0.002, 0.003}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.002, 0.003}, {0.0, 0.002, 0.003}, 0}; - fullNight[] = {-5, {0.182, 0.213, 0.25}, {0.05, 0.111, 0.221}, {0.04, 0.034, 0.004}, {0.039, 0.049, 0.072}, {0.082, 0.128, 0.185}, {0.283, 0.35, 0.431}, 0}; - sunMoon[] = {-3.75, {0.377, 0.441, 0.518}, {0.103, 0.227, 0.453}, {0.04, 0.034, 0.004}, {0.039, 0.049, 0.072}, {0.174, 0.274, 0.395}, {0.582, 0.72, 0.887}, 0.5}; - earlySun[] = {-2.5, {0.675, 0.69, 0.784}, {0.22, 0.322, 0.471}, {0.04, 0.034, 0.004}, {0.039, 0.049, 0.072}, {0.424, 0.549, 0.745}, {0.698, 0.753, 0.894}, 1}; - sunrise[] = {0, {0.675, 0.69, 0.784}, {0.478, 0.51, 0.659}, {0.2, 0.19, 0.07}, {0.124, 0.161, 0.236}, {{0.847, 0.855, 0.965}, 0.2}, {{0.933, 0.949, 0.996}, 2}, 1}; - earlyMorning[] = {3, {{0.844, 0.61, 0.469}, 0.8}, {0.424, 0.557, 0.651}, {{1, 0.45, 0.2}, 1}, {0.12, 0.26, 0.38}, {{0.428, 0.579, 0.743}, 2}, {{0.844, 0.61, 0.469}, 2.7}, 1}; - midMorning[] = {8, {{0.822, 0.75, 0.646}, 3.8}, {{0.383, 0.58, 0.858}, 1.3}, {{1.3, 0.9, 0.61}, 2.8}, {{0.12, 0.18, 0.28}, 0.5}, {{0.322, 0.478, 0.675}, 3.5}, {{1.0, 0.929, 0.815}, 4.7}, 1}; - morning[] = {16, {{1, 0.95, 0.91}, 12.2}, {{0.12, 0.18, 0.28}, 9.2}, {{1, 0.95, 0.91}, 11.2}, {{0.12, 0.18, 0.28}, 8.5}, {{0.14, 0.18, 0.24}, 11.0}, {{0.5, 0.6, 0.9}, 13.2}, 1}; - noon[] = {45, {{0.98, 0.94, 0.94}, 13.8}, {{0.2, 0.27, 0.35}, 10.8}, {{0.98, 0.94, 0.94}, 13.8}, {{0.2, 0.27, 0.35}, 10.8}, {{0.5, 0.64, 1.0}, 12.0}, {{0.5, 0.5, 0.5}, 14.8}, 1, 0.5, 0.4, 0.5, 0.4}; - - }; - class DayLightingRainy: DayLightingRainy - { - deepNight[] = {-15, {0.005, 0.01, 0.01}, {0.0, 0.002, 0.003}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.002, 0.003}, {0.0, 0.002, 0.003}, 0}; - fullNight[] = {-5, {0.023, 0.023, 0.023}, {0.02, 0.02, 0.02}, {0.023, 0.023, 0.023}, {0.02, 0.02, 0.02}, {0.01, 0.01, 0.02}, {0.08, 0.06, 0.06}, 0}; - sunMoon[] = {-3.75, {0.04, 0.04, 0.05}, {0.04, 0.04, 0.05}, {0.04, 0.04, 0.05}, {0.04, 0.04, 0.05}, {0.04, 0.035, 0.04}, {0.11, 0.08, 0.09}, 0.5}; - earlySun[] = {-2.5, {0.0689, 0.0689, 0.0804}, {0.06, 0.06, 0.07}, {0.0689, 0.0689, 0.0804}, {0.06, 0.06, 0.07}, {0.08, 0.07, 0.08}, {0.14, 0.1, 0.12}, 0.5}; - earlyMorning[] = {3, {{1, 1, 1}, (-4)+3.95}, {{1, 1, 1}, (-4)+3.0}, {{1, 1, 1}, (-4)+3.95}, {{1, 1, 1}, (-4)+3.0}, {{1, 1, 1}, (-4)+4}, {{1, 1, 1}, (-4)+5.5}, 1}; - morning[] = {16, {{1, 1, 1}, (-4)+5.7}, {{1, 1, 1}, (-4)+4.5}, {{1, 1, 1}, (-4)+5.7}, {{1, 1, 1}, (-4)+4.5}, {{1, 1, 1}, (-4)+7}, {{1, 1, 1}, (-4)+8}, 1}; - lateMorning[] = {25, {{1, 1, 1}, (-4)+10.45}, {{1, 1, 1}, (-4)+9.75}, {{1, 1, 1}, (-4)+10.45}, {{1, 1, 1}, (-4)+9.75}, {{1, 1, 1}, (-4)+12}, {{1, 1, 1}, (-4)+12.75}, 1}; - noon[] = {45, {{1, 1, 1}, 10.0}, {{1, 1, 1}, 9.0}, {{1, 1, 1}, 9.0}, {{1, 1, 1}, 8.0}, {{0.5, 0.64, 1}, 12.0}, {{0.5, 0.5, 0.5}, 14.8}, 1}; + class ChernarusAirstrip1; + class ChernarusAirstrip2; }; + class ReplaceObjects; + class Sounds; + class Animation; + class Lighting; + class DayLightingBrightAlmost; + class DayLightingRainy; class Weather: Weather { class Lighting: Lighting { - class BrightAlmost: DayLightingBrightAlmost - { - overcast = 0; - }; - class Rainy: DayLightingRainy - { - overcast = 1.0; - }; + class BrightAlmost; + class Rainy; }; class Overcast: Overcast { - class Weather1: Weather1 - { - waves = 0.2; - }; - class Weather7: Weather1 - { - waves = 0.2; - }; - class Weather2: Weather2 - { - waves = 0.22; - }; - class Weather3: Weather3 - { - waves = 0.32; - }; - class Weather4: Weather4 - { - waves = 0.52; - }; - class Weather5: Weather5 - { - waves = 0.72; - }; - class Weather6: Weather5 - { - waves = 2.00; - }; + class Weather1; + class Weather7; + class Weather2; + class Weather3; + class Weather4; + class Weather5; + class Weather6; }; }; }; - + + class DayZMod : Chernarus { + cutscenes[] = {"DayZModIntro1"}; + description = DayZVersion; + seagullPos[] = {1272.842,150.0,14034.962}; + ilsTaxiIn[] = {4785.21,10174.29,5024.903,9759.071,5027.385,9737.021,5015.327,9721.136,4928.958,9670.509,4906.105,9664.372,4880.936,9673.65}; + ilsTaxiOff[] = {4671,10038,4195.5,10862.011,4201.01,10885.8,4218.536,10899.822,4304.679,10950.154,4324.962,10953.66,4345.746,10938.886,4785.21,10174.29}; + }; + initWorld = "DayZMod"; demoWorld = "DayZMod"; }; diff --git a/SQF/dayz_code/Configs/RscDisplay/RscGroups.hpp b/SQF/dayz_code/Configs/RscDisplay/RscGroups.hpp index 2b69024ad..e53772387 100644 --- a/SQF/dayz_code/Configs/RscDisplay/RscGroups.hpp +++ b/SQF/dayz_code/Configs/RscDisplay/RscGroups.hpp @@ -9,7 +9,7 @@ class DZ_GroupText: RscText { }; class DZ_GroupDynamicText: RscStructuredText { - access = 0; + //access = 0; type = 13; colorText[] = {1,1,1,1}; class Attributes { diff --git a/SQF/dayz_code/Configs/RscDisplay/ZSCdefines.hpp b/SQF/dayz_code/Configs/RscDisplay/ZSCdefines.hpp index eba177f95..15320be4d 100644 --- a/SQF/dayz_code/Configs/RscDisplay/ZSCdefines.hpp +++ b/SQF/dayz_code/Configs/RscDisplay/ZSCdefines.hpp @@ -645,7 +645,7 @@ class ZSC_RscToolbox { class ZSC_RscTextT // Used in plot management { - access = 0; + //access = 0; type = 0; idc = -1; colorBackground[] = {0,0,0,0}; diff --git a/SQF/dayz_code/Configs/RscDisplay/doorManagement/doorAccess.hpp b/SQF/dayz_code/Configs/RscDisplay/doorManagement/doorAccess.hpp index 8a9207988..df895376d 100644 --- a/SQF/dayz_code/Configs/RscDisplay/doorManagement/doorAccess.hpp +++ b/SQF/dayz_code/Configs/RscDisplay/doorManagement/doorAccess.hpp @@ -10,7 +10,7 @@ class DoorAccess { class ZupaBackground_1 { - access = 0; + //access = 0; type = 0; colorText[] = {0.8784,0.8471,0.651,1}; text = ""; diff --git a/SQF/dayz_code/Configs/RscDisplay/tradermenu.hpp b/SQF/dayz_code/Configs/RscDisplay/tradermenu.hpp index e96a9cbf1..5319dc034 100644 --- a/SQF/dayz_code/Configs/RscDisplay/tradermenu.hpp +++ b/SQF/dayz_code/Configs/RscDisplay/tradermenu.hpp @@ -5,7 +5,7 @@ class RscTextTraderDialog { - access = 0; + //access = 0; type = 0; idc = -1; colorBackground[] = {0,0,0,0}; @@ -23,7 +23,7 @@ class RscTextTraderDialog }; class RscListBoxTraderDialog { - access = 0; + //access = 0; type = 5; w = 0.4; h = 0.4; diff --git a/SQF/dayz_code/Configs/cfgMoves.hpp b/SQF/dayz_code/Configs/cfgMoves.hpp index 9c0da0045..0050a9752 100644 --- a/SQF/dayz_code/Configs/cfgMoves.hpp +++ b/SQF/dayz_code/Configs/cfgMoves.hpp @@ -33,7 +33,7 @@ class CfgMovesDogBase class Default { actions = ""; - access = 3; + //access = 3; file = ""; looped = 1; speed = 0.5; diff --git a/SQF/dayz_code/Configs/rscTitles.hpp b/SQF/dayz_code/Configs/rscTitles.hpp index b8f147d39..40222843e 100644 --- a/SQF/dayz_code/Configs/rscTitles.hpp +++ b/SQF/dayz_code/Configs/rscTitles.hpp @@ -36,7 +36,7 @@ class RscDisplayEmpty; class RscDisplayMission: RscDisplayEmpty { - access = 0; + //access = 0; idd = 46; onKeyDown = "_handled = if (isNil 'DZ_KeyDown_EH') then {false} else {_this call DZ_KeyDown_EH}; _handled"; //assigned much quicker than spawning init_keyboard }; @@ -108,7 +108,7 @@ class RscDisplayChannel class RscPictureGUI { - access = 0; + //access = 0; type = 0; idc = -1; colorBackground[] = {0,0,0,0}; diff --git a/SQF/dayz_code/config.cpp b/SQF/dayz_code/config.cpp index c786e5f43..368f806c1 100644 --- a/SQF/dayz_code/config.cpp +++ b/SQF/dayz_code/config.cpp @@ -60,7 +60,7 @@ class CfgMods class CfgAddons { - access = 1; + //access = 1; class PreloadBanks {}; class PreloadAddons { diff --git a/SQF/dayz_code/gui/description.hpp b/SQF/dayz_code/gui/description.hpp index 813cd00be..e78174aeb 100644 --- a/SQF/dayz_code/gui/description.hpp +++ b/SQF/dayz_code/gui/description.hpp @@ -17,7 +17,7 @@ class RscText class RscPicture { - access=0; + //access=0; type=0; idc=-1; style=48; diff --git a/SQF/dayz_code/gui/padlock/padlock_ui.hpp b/SQF/dayz_code/gui/padlock/padlock_ui.hpp index 445c79d2d..b15073129 100644 --- a/SQF/dayz_code/gui/padlock/padlock_ui.hpp +++ b/SQF/dayz_code/gui/padlock/padlock_ui.hpp @@ -22,7 +22,7 @@ class PadlockButton { deletable = 0; fade = 0; - access = 0; + //access = 0; type = 1; text = ""; colorText[] = {1,1,1,0};