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

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.

greetings
flo
Reply
09-06-2009, 12:58 AM,
#2
 
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?
Reply
09-07-2009, 10:43 AM,
#3
 
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//vdrift.net/Forum/viewtopic.php?t=970&start=0&postdays=0&postorder=asc&highlight= ) and I want to check if my input data arrives correctly.
Reply
09-09-2009, 11:08 PM,
#4
 
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.
Reply
09-14-2009, 07:21 AM,
#5
 
Thanks, changing the HUD display worked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)