Players speed in splitscreen modes

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
Dommy
Translator
Translator
Posts: 1866
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Players speed in splitscreen modes

Post by Dommy »

Hellow,
I'm working on splitscreen mode and encounter a problem with players speed. It's just not possible to get the current speed in any way I know. I need it for custom speedometer, but yeah...

1. You can only get the speed of top left corner player, via layer attached to UIAll.
2. Array of Players[] in UIAll layers is just empty.
3. Layers attached to UIs of other players (from which speed could be get) just never appear, again only for the top left player only works.
4. Can't compute speed manually from position change, as player position is always <0., 0., 0.>...
5. Non-manialink player class (directly in mode) has no speed variable at all...

If you know anything, please inform me. ;)
Dommy
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
User avatar
BigBang1112
Posts: 388
Joined: 20 Jul 2015, 12:44
Location: Czech Republic
Contact:

Re: Players speed in splitscreen modes

Post by BigBang1112 »

domino54 wrote:4. Can't compute speed manually from position change, as player position is always <0., 0., 0.>...
Exactly having this problem now (want to get the height of the player), so I need to check the angle and a distance, which I don't know where to get that CTmMlPlayer, like im done. xd
Creator and competent racer. YouTube Discord
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
User avatar
BigBang1112
Posts: 388
Joined: 20 Jul 2015, 12:44
Location: Czech Republic
Contact:

Re: Players speed in splitscreen modes

Post by BigBang1112 »

nope, i cant even read AimDirection, AimPitch, AimYaw..
Creator and competent racer. YouTube Discord
- ENVIMIX (out in open-source)
- Challenge (OUT NOW)
- Leaderboards (OUT NOW)
- Compute Shadows
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest