Water Map related Questions
Posted: 16 Mar 2007, 21:21
Just a few problems I had been trying to fix for a while now, but have had little to no success with.
1) is there any known way to detect if a map's water is lava/acid or otherwise harmful? Or if there is even water at all? (for example: small divide does not have water below 0 elevation)
2) for amphibious units, I have been having trouble determining the commander's maximum water depth? I would have thought that unitdef->maxWaterDepth would be the answer, but theory and practice have been inconsistent. In XTA, Commander unitdef->maxWaterDepth = 35, however they can move down to about (-95 to -100) elevation. In AA, Commander unitdef->maxWaterDepth = 35, but they can move down to 'at least' (-193) elevation. In Both mods, most units we think of as 'land' have a unitdef->maxWaterDepth around (10 to 30), and most unit we think of as 'amphibious' are around (100-255) - which seems about accurate. In other words, the commander's unitdef seems to be the only one that's busted.
Does anyone have any ideas of why?
1) is there any known way to detect if a map's water is lava/acid or otherwise harmful? Or if there is even water at all? (for example: small divide does not have water below 0 elevation)
2) for amphibious units, I have been having trouble determining the commander's maximum water depth? I would have thought that unitdef->maxWaterDepth would be the answer, but theory and practice have been inconsistent. In XTA, Commander unitdef->maxWaterDepth = 35, however they can move down to about (-95 to -100) elevation. In AA, Commander unitdef->maxWaterDepth = 35, but they can move down to 'at least' (-193) elevation. In Both mods, most units we think of as 'land' have a unitdef->maxWaterDepth around (10 to 30), and most unit we think of as 'amphibious' are around (100-255) - which seems about accurate. In other words, the commander's unitdef seems to be the only one that's busted.
Does anyone have any ideas of why?