MapHardness setting in SMD overrides water settings

MapHardness setting in SMD overrides water settings

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
mother
Posts: 379
Joined: 04 May 2005, 05:43

MapHardness setting in SMD overrides water settings

Post by mother »

Seems that if one uses the MapHardness tag in an smd file, the water goes full 'opaque' (well not-translucent ).

Doesn't seem to matter what the hardness is set to (ie 101 or 1000), the water goes dark.

:|
Kickban
Posts: 62
Joined: 03 May 2005, 18:34

Post by Kickban »

The tag MapHardness is only called 2 times in sources. When it is read from the SMD, and when baseStrength is calculated (baseStrength is used to calculate the size of the crater).

baseStrength=-pow(strength,0.6f)*3/mapHardness;

So in fact, it take strength, which must be the power of the weapond, calculate strength^0.6, multiply by 3 and divide by mapHardness.
So it shouldn't crash the water like it does.
(if any one understand why it is -pow(...) and not pow(...), tell me :). And another fun stuff i will test, MapHardness is float, so it can be negative :))
Post Reply

Return to “Help & Bugs”