[CTmPlayer] Current Position and Speed

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

[CTmPlayer] Current Position and Speed

Post by m4rcel »

I think I already mentioned this during the Alpha phase, but I am unsure if there was an anwser to this. SO I want to ask again:

Is it possible to get the current position and other properties like speed, acceleration and maybe the direction, in which the player is looking/driving? These kind of values would be very nice to create more advanced modes for TM environments, for example to have some kind of kollision detection or so.

As values like position and view direction are available in CSmPlayer, why not adding them to CTmPlayer, too?
ImageImage
Image
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: [CTmPlayer] Current Position and Speed

Post by w1lla »

in CTmModeEvent

There you can find the Distance droven by a car and the actual speed.

To achieve this you should read this:

http://forum.maniaplanet.com/viewtopic. ... 80#p137672

Its basic but works for Distance aswell. Problem is it only checks on CP passthrough or Finishline.

with kind regards,

w1lla
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

Re: [CTmPlayer] Current Position and Speed

Post by m4rcel »

Having this data only on events like Checkpoints, is not enough in my case. I rather need this data constantly to do some calculations during the whole race.

Anyway, thanks for your anwser ;)
ImageImage
Image
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 2 guests