Page 1 of 1

[RadarMode] Starting a new mode for trackmania stadium but i have somes issues

Posted: 04 Jun 2018, 12:43
by HerveD
Hi all !

I start doing a mode for trackmania stadium called "Radar Mode" (Working Title). this is my first mode, and i do that to train myself to mode on trackmania :)

So instead of using "time" to see who's the best, i'm using the "Speed". When you go through a Checkpoint, your speed is saved and at the end all the speeds are summed and the player with the highest score win !

I'm doing pretty well to get the player speed in each checkpoint and then sum it. and here's what i have atm.

https://youtu.be/Gzdlu5ZSvwk

but here's my problem.

I'm using the "TimeAttack.Script.txt" and i'm coding over it. But i'v been trying those 2 past days to use the speed in the "system" of the game, to be really efficient and not just appear in the log ^^ (So i have to modify the "Score.Script.txt" maybe ?)

Moreover i want that the variable "G_TotalSpeed" is set for a player only, and not the entire server ! and i don't exactly know in wich script i have to find it (Event.Speed works well, but when i want to summed it or reset it to 0, it's for the entire server, so i guess i have to create a method in some "Player script" but i don't find it.

here's a capture of the script i've modified :

If you take the time to read all this topic, thanks ! And if you can help me, thanks a lot ! :p

Re: [RadarMode] Starting a new mode for trackmania stadium but i have somes issues

Posted: 04 Jun 2018, 19:07
by zocka
That sounds a lot like Nerpson's Doppler mode (viewtopic.php?f=527&t=30463). Maybe you can get some insight from his script. Not sure if there is a different link than https://thewinbutton.us/files/TM/Doppler.Script.txt which was the first working link I found.

Re: [RadarMode] Starting a new mode for trackmania stadium but i have somes issues

Posted: 04 Jun 2018, 20:25
by HerveD
Thanks a lot ! And yes, it's exactly the same idea ^^ (i swear i don't know ! :p)