Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
show ai speed/gear
09-04-2009, 06:21 AM,
show ai speed/gear

is there a possibility to show not only the human drivers speed etc., but also the ai drivers actual speed and gear in the players window.

09-06-2009, 12:58 AM,
So I understand properly... are you asking how to modify the VDrift code to make the AI driver info show on the HUD instead of the players?
09-07-2009, 10:43 AM,
Not to show it instead, to show it additionally (if that's possible).
I'm trying to set the AI drivers control with mathemtically optimized control data (see http// ) and I want to check if my input data arrives correctly.
09-09-2009, 11:08 PM,
Changing the HUD to display the AI data instead is pretty easy, you just need to move the hud.Update call in game.cpp out of the "if (carcontrols_local.first == &car)" block and put it in an "else" block for that if statement. Outputting AI data in addition to the player data would require more significant changes to hud.h and hud.cpp as well as how game.cpp calls hud.Update.
09-14-2009, 07:21 AM,
Thanks, changing the HUD display worked.

Forum Jump:

Users browsing this thread: 1 Guest(s)