OpenTomb icon indicating copy to clipboard operation
OpenTomb copied to clipboard

Incorrect free fall damage

Open vvs- opened this issue 9 years ago • 2 comments

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.

vvs- avatar Jun 23 '15 07:06 vvs-

Yes, falling damage is purely subjective, I didn't do any comparisons with original code. Must fix it some day!

Lwmte avatar Jun 23 '15 12:06 Lwmte

Decompiled TR1 calculation: https://github.com/stohrendorf/EdisonEngine/blob/master/src/abstractstatehandler.cpp#L3307

stohrendorf avatar Jun 25 '16 08:06 stohrendorf