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
[Gothic Multiplayer] AimRay intersection with player's camera bbox #202
Comments
I am surprised to see that you got it working in a multiplayer project. Did this require a lot of adjustments? Your hunch might be correct. The aiming feature was not implemented with more than one player in mind. A singleton aim-vob is used for aiming and thus is shared if there are multiple players. To correct this issue, it would be necessary to tie a unique aim-vob to each individual player and it should be identifiable as such. On a technical level, this requires to edit the retrieval of the aim-vob which is fortunately supplied through a centralized function. The logic of the function should be easy to adjust. Furthermore, the creation of the aim-vob must be altered. The only fundamental new thing would be the garbage-collection. |
"Did this require a lot of adjustments?" |
If the core mechanics work, this should be no hurdle: GFA is a script package. It has nothing to do with Union or Ninja. They are not not required (GFA was even created before either of them).
I assume, at some point, the GMP or client will have to communicate with Gothic to infer who is the player and how to interact with the world. This interface may be necessary there to allow uniquely identifying the aim-vob. |
Close stale issue |
When Player 2 casts a spell in Player 1 direction I guess the game starts to think that Player 1 cast it, and binds the effect to Player 1's AimVob
https://www.youtube.com/watch?v=mNRk3P-D24k - video demonstration
The text was updated successfully, but these errors were encountered: