Jump to content

Recommended Posts

Guys,

 

Not entirely sure this is the right place to ask and the background of the question is a scripting one, but I figured this is the best place to ask.

 

I need to know the depth of the deepest ocean. I got from the config cfgworlds/ altis / underwater / deepwaterfog which is 200. That's more or less the deepest sea on Altis and on Tanoa, it returns 60, which is about right too.

 

Is there another config value I could be using for this, or should I resort to a scripting approach, searching the map for big negative ASL numbers?

Share this post


Link to post
Share on other sites

Hmm, just checked the same value for Malden 2035. It's 60, but the deepest sea there seems to be around 100. :(

 

Correction, the config value for Malden is 200, but it's still a long way from what I'd hoped.

Share this post


Link to post
Share on other sites
16 minutes ago, Barba-negra said:

looking for those maps

 

It is possible also as i have see to flood the maps

 

Arma Tides Manager: How to change Sea level, change the map, and add support for new maps.

 

  • Like 1

Share this post


Link to post
Share on other sites
2 hours ago, Barba-negra said:

Hi, friend, are you asking which are the maps with the deepest sea? I'm also looking for those maps

No, I was asking if there's a way of getting from the island config how deep the ocean is, but I decided to get that info in script during mission init instead.

  • Like 1

Share this post


Link to post
Share on other sites
On 2/1/2019 at 5:22 PM, GEORGE FLOROS GR said:

 

It is possible also as i have see to flood the maps

 

Arma Tides Manager: How to change Sea level, change the map, and add support for new maps.

 

this is very good

  • Thanks 1

Share this post


Link to post
Share on other sites
On 2/1/2019 at 5:20 PM, EO said:

Ocean map is 6000m deep. 

the map is very good, download it, the bad thing is that if you try to place a surface on the water, the object disappears, because the floor of the sea is far away

Share this post


Link to post
Share on other sites
On 2/1/2019 at 5:22 PM, GEORGE FLOROS GR said:

 

It is possible also as i have see to flood the maps

 

Arma Tides Manager: How to change Sea level, change the map, and add support for new maps.

 

guys I'm trying to increase the depth of a map by following the video tutorial, but there is a problem the water rises the sea level, and covers the land and the buildings, I need the sea floor to be deeper instead of water level rise, some idea guys?

Share this post


Link to post
Share on other sites

The only way you could increase the depth of a current map is to increase the sea level.  Making the sea floor deeper would require actually modifying the original map in some map making tool.  You'd need the original map creation files for that.  It's the same problem if you wanted to be able to DIG trenches or holes on an existing map.  You can't do this by simple scripting or some sort of in-game addon.  The Arma maps don't have that flexibility.

Share this post


Link to post
Share on other sites

I divert one of my code to reach what you need, searching for the deepest point of a map (and you have the position by the way).

 

MGI_elevatedCheck = compileFinal "
  _poslow = _this select 0;
  _posTest = ATLtoASL _poslow;
  _radius = _this select 1;
  if (_radius == worldSize) then {
    _posTest = ASLtoATL [worldSize/2,worldSize/2,0];
    _radius = worldSize /2
  };
  _rangeSqr = MGI_range^2;
  _bestlow = _posTest select 2;
  _n = (round _radius) min (worldSize / 10);
  _c = _radius / (sqrt (_n - 1));
  for '_i' from _n to 0 step -1 do {
    _rho = _c * sqrt (_i + 0.5);
    _theta = 137.508 * (_i + 0.5);
    _ckPos = _posTest getPos [_rho,_theta];
    call {
      if (_ckPos distanceSqr MGI_posRef > _rangeSqr) exitWith {};
      if ((getTerrainHeightASL _ckPos) < _bestlow) exitWith {
        _poslow = ASLtoATL _ckPos; _bestlow = getTerrainHeightASL _ckPos
      };
    };
  };
  _poslow
";
 
MGI_lowestPt = {
  params [["_pos",[0,0,0]],["_range",worldSize]];
  MGI_posRef = _pos;
  MGI_range = _range;
  _poslow = [_pos,_range] call MGI_elevatedCheck;
  _poslow = [_poslow,_range /10] call MGI_elevatedCheck;
   _mk = createMarker ["mk",_poslow];
   _mk setMarkerType "mil_dot";
   _mk setMarkerText "deepest point";
  _poslow
};
 
[[worldSize/2,worldSize/2,0],worldSize/1.4] call MGI_lowestPt;

 

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×