Advertisement
rattle-snake

config.cpp

Feb 16th, 2021
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.13 KB | None | 0 0
  1. #define TEast 0
  2. #define TWest 1
  3. #define TGuerrila 2
  4. #define TCivilian 3
  5. #define TSideUnknown 4
  6.  
  7. #define true 1
  8. #define false 0
  9.  
  10. // type scope
  11. #define private 0
  12. #define protected 1
  13. #define public 2
  14.  
  15. #define ReadAndWrite 0 //! any modifications enabled
  16. #define ReadAndCreate 1 //! only adding new class members is allowed
  17. #define ReadOnly 2 //! no modifications enabled
  18. #define ReadOnlyVerified 3 //! no modifications enabled, CRC test applied
  19.  
  20. class CfgPatches
  21. {
  22.     class Map_TerrainTest
  23.     {
  24.         units[] = {};
  25.         weapons[] = {};
  26.         requiredVersion = 0.1;
  27.         requiredAddons[] = {};
  28.     };
  29. };
  30.  
  31. class CfgVehicles
  32. {
  33. };
  34.  
  35. class CfgWorlds
  36. {
  37.     class DefaultWorld
  38.     {
  39.  
  40.     };
  41.  
  42.     class MCAWorld : DefaultWorld
  43.     {
  44.         class Grid {};
  45.         class DefaultClutter;
  46.     };
  47.  
  48.     class Map_TerrainTest : MCAWorld
  49.     {
  50.         access = ReadOnlyVerified;
  51.         worldId = 26;
  52.         cutscenes[] = {};
  53.         description = "Terrain Test";
  54.         icon = "";
  55.         worldName = "vbs2\customer\Map_TerrainTest\Map_TerrainTest.wrp";
  56.         pictureMap = "vbs2\customer\Map_TerrainTest\data\pictureMap_ca.paa";
  57.         //      pictureShot = "A3\Map_TerrainTest\data\ui_pre02_ca.paa";
  58.         plateFormat = "#Z# ## ##";
  59.         plateLetters = "ABCDEGHIKLMNOPRSTVXZ";
  60.         author = "Agueris"; //--- ToDo: Localize
  61.         mapSize = 4280.47;  //--- Can differ from mapArea size, as ingame world can be resized
  62.  
  63.         //https://epsg.io/transform#s_srs=3857&t_srs=4326
  64.         mapArea[] = { //--- lon/lat coordinates (not in UTM to assure .kml precision)
  65.             -5.3131238, 35.8802815, //--- Bottom Left
  66.             -5.2746717, 35.9114308, //--- Top Right
  67.         };
  68.        
  69.         //http://rcn.montana.edu/Resources/Converter.aspx
  70.         mapZone = 30; //--- UTM zone
  71.  
  72.         // Center coordinates in lat/lon
  73.         longitude = -5.2938977; // positive is east
  74.         latitude = 35.8958577; // positive is south
  75.  
  76.         elevationOffset = 0;
  77.  
  78.         minHillsAltitude = 200;
  79.         maxHillsAltitude = 500; // was 200
  80.  
  81.         // Generate Tree & Rock polygons in 2D map
  82.         minTreesInForestSquare = 4;
  83.         minRocksInRockSquare = 3;
  84.  
  85.         // Environmental texture
  86.         envTexture = "vbs2\customer\Map_TerrainTest\data\env_land_ca.paa";
  87.  
  88.         // Setup new roads
  89.         newRoadsShape = "vbs2\customer\Map_TerrainTest\data\roads\roads.shp";
  90.  
  91.         //OUTSIDE TERRAIN
  92.         class OutsideTerrain
  93.         {
  94.             satellite = "vbs2\customer\Map_TerrainTest\data\s_satout_co.paa";
  95.             enableTerrainSynth = true; // outside terrain random generator
  96.             class Layers
  97.             {
  98.                 class Layer0
  99.                 {
  100.                     nopx = "vbs2\customer\Map_TerrainTest\data\gdt_concrete_nopx.paa";
  101.                     texture = "vbs2\customer\Map_TerrainTest\data\gdt_concrete_co.paa";
  102.                 };
  103.             };
  104.             colorOutside[] = { 0.227451, 0.27451, 0.384314, 1 };
  105.         };
  106.  
  107.         //GRID
  108.         class Grid : Grid
  109.         {
  110.             offsetX = 0;
  111.             offsetY = 4096;
  112.  
  113.             class Zoom1
  114.             {
  115.                 zoomMax = 0.05;
  116.                 format = "XY";
  117.                 formatX = "000";
  118.                 formatY = "000";
  119.                 stepX = 100;
  120.                 stepY = -100;
  121.             };
  122.             class Zoom2
  123.             {
  124.                 zoomMax = 0.5;
  125.                 format = "XY";
  126.                 formatX = "00";
  127.                 formatY = "00";
  128.                 stepX = 1000;
  129.                 stepY = -1000;
  130.             };
  131.  
  132.             class Zoom3
  133.             {
  134.                 zoomMax = 1e30;
  135.                 format = "XY";
  136.                 formatX = "0";
  137.                 formatY = "0";
  138.                 stepX = 10000;
  139.                 stepY = -10000;
  140.             };
  141.         };
  142.  
  143.  
  144.         startTime = 10:00;
  145.         startDate = 24 / 6 / 2035;
  146.  
  147.         centerPosition[] = { 2000, 2000, 0 };
  148.         seagullPos[] = { 1024, 130.000, 1024 };
  149.  
  150.         //ILS
  151.         //Main airport
  152.         ilsPosition[] = { 2048, 2048 };
  153.         ilsDirection[] = { -0.2002, 0.080, 0.9798 };
  154.         ilsTaxiOff[] = {};
  155.         ilsTaxiIn[] = {};
  156.         drawTaxiway = false;
  157.  
  158.         class SecondaryAirports {};
  159.  
  160.  
  161.         class ReplaceObjects {};
  162.         class Sounds { sounds[] = {}; };
  163.         class Animation { vehicles[] = {}; }; // default - no film
  164.  
  165.         //SOUND MAP GRID COEF
  166.         soundMapSizeCoef = 4;
  167.  
  168.         //SATELLITE NORMAL MAP
  169.         satelliteNormalBlendStart = 10;  // start of satellite normal texture blending distance with detail normal texture
  170.         satelliteNormalBlendEnd = 100; // end of satellite normal texture blending, start of full opacity
  171.  
  172.         //NEW SATELLITE VS DETAIL TEXTURE BLENDING SETUP
  173.         /// maximal darkening coef for blending of satellite map and detail map on terrain (default = 0.0f, no darkening = 1.0f)
  174.         terrainBlendMaxDarkenCoef = 1.0f;
  175.         /// maximal brightening coef for blending of satellite map and detail map on terrain (default = 1.0f, no brightening = 0.0f)
  176.         terrainBlendMaxBrightenCoef = 0.0f;
  177.  
  178.         //CLUTTER DISPLAY
  179.         clutterGrid = 1.4;  //  1.4;// was 1.11
  180.         clutterDist = 250   //  100; //was 125;// how far clutters are visible
  181.         noDetailDist = 50;
  182.         fullDetailDist = 8;// where ground detail texture is fully visible (begin fading out)
  183.  
  184.         midDetailTexture = "P:\vbs2\customer\Map_TerrainTest\data\l_middle_mco.paa";
  185.  
  186.         //CLUTTER
  187.         class Clutter
  188.         {
  189.             #include "cfgClutter.hpp"
  190.         };
  191.  
  192.         //NAMES
  193.         class Names
  194.         {
  195.             #include "Map_TerrainTest.hpp"
  196.         };
  197.  
  198.         //AMBIENT
  199.         // Old, class, for back compatibility, in A3 we don't use it anymore
  200.         class Ambient
  201.         {};
  202.  
  203.  
  204.         //Used for random safe position finding.
  205.         safePositionAnchor[] = { 2048, 2048 };
  206.         safePositionRadius = 100;
  207.  
  208.         loadingTexts[] =
  209.         {
  210.             "TerrainTest launching"
  211.         };
  212.     };
  213. };
  214.  
  215. class CfgWorldList
  216. {
  217.     class Map_TerrainTest {};
  218. };
  219.  
  220. //SURFACES
  221. #include "cfgSurfaces.hpp"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement