omf2097 / openomf

One Must Fall 2097 Remake
http://www.openomf.org
MIT License
372 stars 40 forks source link

Jumping is a bit higher than OMF #304

Open gdeda opened 9 years ago

gdeda commented 9 years ago

Self-explanatory... (using background bricks as reference in Fire Pit) BTW how is jump height handled in code? I can see only, in har.c line 1879

        case STATE_JUMPING:
            har_set_ani(obj, ANIM_JUMPING, 0);
            vx = 0.0f;
            vy = (float)h->af_data->jump_speed;

is vy took directly from .af files?

katajakasa commented 9 years ago

All movement speeds come directly from the AF files. The thing here is that even though we have the raw speed value, we don't know all the speed modifiers should be applied to these. That's why the move/movement speeds and powers are all wrong.