iamgreaser / iceball

Open-source rewrite of the VOXLAP version of Ace of Spades.
http://iceball.build
GNU General Public License v3.0
113 stars 32 forks source link

Character climbing movement #186

Open TheRealOrangus opened 9 years ago

TheRealOrangus commented 9 years ago

in AoS and Iceball characters can climb 1 block automatically when walking

but in Iceball characters can do it, even when they look down, unlike to AoS, where they can automatically climbing only, if they're looking, not lower than skyline

rakiru commented 9 years ago

Iceball is not an exact Ace of Spades clone. We're not going to just match every feature in Ace of Spades without considering if it's a good idea to have it first.

There is a server-side option for this though, I believe (although it may be broken atm).

I'll leave this open until I (or someone else) can confirm the option works.

iamgreaser commented 9 years ago

I believe there's a toggle in pkg/base/common.lua which is reserved for this purpose. However, I'd rather if someone really wants it they can add it in themselves.

IIRC the exact condition is "autoclimb is disabled if the normalised forward vector of Y is >= 0.5" (here, down is +Y) - that is, if the angle between the floor and the camera angle is less than 60 degrees.

rakiru commented 9 years ago

MODE_TILT_DOWN_NOCLIMB - not implemented though, no.

iamgreaser commented 9 years ago

Reminded of these things...

On AoS, pointing your camera at a heavy up/down angle inhibits your walking speed. I'd rather not have this as a default - if you want to implement it, you take the normalised 3D vector and then zero the Y term.

Also, @JackList you should probably get on IRC: