For once the mods did something right
Another video for you all to watch. This time it is an AIed Full Body Spinner. Using ordinary SpinMotors for direction control. No servoes, no extra hassle.
Big-OHHOk, now you lost me. :O
NICE work apanx!I've been planning on trying this very concept since I found out about plus.Arena.__setattr__tickInterval__(), but it looks like you beat me to it. How low do you have the tick interval set? How fast can an AI spin before it starts to outpace the ticks? Could you AI something like, say, *shudder* Somebody's Super SnS with a melty brain?Another cool thing you can do by decreasing the tick interval: measure the RPM of spinners, and make an AI that doesn't attack the opponent until its weapons reach a certain speed.The Insanity Arena is a nice piece of work too. I knew about the CreateArenaByName function, but I never thought about throwing the bots in the air just before switching in order to keep them from falling through the floor. Genius.Perhaps you need just a tad less force, though, since that one bot still got thrown out.
# spin up depending on enemy's range enemy, range = self.GetNearestEnemy() self.Turn(100) self.Throttle(0) if enemy is not None: self.DebugString(6, str(self.GetHeading(False))) target = plus.getLocation(enemy) h = self.GetHeadingTo(target, False) if self.GetTurning() > 6: if (abs(h) < 0.3 ): self.Turn(0) self.Throttle(100) self.DebugString(8, "Boost") if (abs(h) > 2.8 ): self.Turn(0) self.Throttle(-100) self.DebugString(8, "Anti-Boost") self.DebugString(7, str(h)) self.DebugString(8, "No Boost")