OpenTomb
OpenTomb copied to clipboard
Incorrect free fall damage
Something is wrong in the free fall damage calculations. In Atlantean Stronghold move to setEntityPos(player,46158,49343,14127,270,0,0)
and then climb down. Try to shimmy right as far as possible and then let go. The damage should be exactly half the maximum HP, but it's not.
Also, it's actually impossible to climb down from the rightmost position, Lara just falls without grabbing the ledge. Seems to be related to #86. That's why the instructions are so complicated.
Yes, falling damage is purely subjective, I didn't do any comparisons with original code. Must fix it some day!
Decompiled TR1 calculation: https://github.com/stohrendorf/EdisonEngine/blob/master/src/abstractstatehandler.cpp#L3307