A Bookshelf 11 Mar, 2013 @ 10:13pm
Using Source to simulate vision-based vehicle control
I'm trying to use Source as a platform to test vision-based controllers for vehicles. My current objective involves finding a way for third party programs to communicate with the source engine, and how exactly these programs will control the position of a player ingame.

I think I want to use the 'setpos' and 'setang' console commands to control the players position and orientation (dynamics will be handled outside of the source engine so there's no need to set player velocity.) For communication, I was thinking that I'd set the source engine to listen in on a certain port and send all position and orientation information there.

I'm having trouble figuring out how exactly to get Source to take all the position information and pass it to the 'setpos' and 'setang' commands. I'd appreciate any ideas anybody had on this subject.