Hello all,
I'm dinking around with DP and it's bot spawning function spawnclient().
Does anyone know of a way to easily use DP to smoothly rotate a bot's yaw to a specific degree? I'm not familiar with DP, so I might be missing something in the dpextensions.qc file.
I have been experimenting with a few things:
self.v_angle_y = self.v_angle_y + 5 gives me very smooth rotation, which is what I want but I have no idea how to stop the rotation at a specified yaw degree.
self.angles_y = self.angles_y - 35 rotates the bot 35 degrees to its right, but its instant and not a smooth turn.
I feel like I'm kinda on the cusp. Any guidance would be appreciated.
Perhaps something like this? (nvm... I tried this and it didn't work. lol)
if (self.angles_y != 35)
self.v_angle_y = self.v_angle_y + 5;