Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old attempts at strafing #13

Closed
szapp opened this issue Aug 16, 2016 · 6 comments
Closed

Old attempts at strafing #13

szapp opened this issue Aug 16, 2016 · 6 comments

Comments

@szapp
Copy link
Owner

szapp commented Aug 16, 2016

While aiming, it would be nice to be able to strafe to left and right. Is it possible to run the aiming and the strafing animation at the same time?

@szapp
Copy link
Owner Author

szapp commented Aug 17, 2016

Checkout

0x57B070 (5746800) void __thiscall zCModel::StartAni(int int)         

@szapp
Copy link
Owner Author

szapp commented Aug 22, 2016

A new animation is necessary. There is only one strafing animation in gothic, which turns the player model to the side, is too long and is to fast (running).

The animation should only comprise movement of the lower limbs. This way it may be played at the same time as aiming on another animation level.

@szapp
Copy link
Owner Author

szapp commented Aug 23, 2016

An animation might be problematic, since it will have to be of all bones (since Bip01 controls model movement but is also the parent node of all other bones). Try to create an animation that is legs-only (excluding Bip01) and move the player model by script (synchronization issues imminent). Possibly helpful engine functions:

0x5117D0 (5314512)  int __thiscall zCAIPlayer::CheckEnoughSpaceMoveLeft(int)
0x61B2E0 (6402784) void __thiscall zCVob::Move(float float float) // Check trafo script for similar (there is two more functions like this)

@szapp
Copy link
Owner Author

szapp commented Aug 25, 2016

So a possible solution to all of this is to create a strafing animation with only the leg bones and Bip01 and have the aiming animation only with arm bones and on layer two.

First tests worked (although it is not clear from it whether aiming still works while strafing). The next step is to create movement animation which is more closely to the final animation (use the walk-forward animation and reverse it, because it already exists) and see what happens with the aiming.

@szapp
Copy link
Owner Author

szapp commented Sep 15, 2016

Outsourced the animations to #51 Strafing animations.

@szapp
Copy link
Owner Author

szapp commented Sep 18, 2016

The attempts are not satisfactory. Though the very last one was the most promising, there was no absolute stable implementation.
For more information, see the commit message cbb03ff.

For possible interest in strafing a preserved the attempts (although some of them are unfortunately scattered in commits throughout the repo history) in the branch strafing.

The most recent commit cbb03ff in that branch holds the most stable version of strafing.

I welcome thoughts and attempts to fix this, better yet, different and more stable approaches.
This is what this branch is dedicated for.

@szapp szapp closed this as completed Nov 22, 2016
@szapp szapp changed the title Implement strafing Old attempts at strafing Sep 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant