list.append(("Frontal Assult","Flipper",'nose':math.pi*2,'range':99,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':6,'weapons':(18,19)}))
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything
Glad to see you back phil.
Quote from: Naryar on February 17, 2011, 02:51:26 PMGlad to see you back phil.Ditto.
2011 should be known as the year of the returning members or something.
b) How are you achieving the downwards motion? Just applying a force from the AI script?
#define identifier of servo-Piston goon = 1 i = 0 while goon == 1: if i == self.GetNumComponents(): break currentType = self.GetComponentType(i) if currentType == "ServoPiston": self.PistonFound += 1 if self.PistonFound == 1 : self.PistonOne = i else: self.PistonTwo = i break i = i+ 1 ... pos1 = self.GetPistonPosition(self.PistonOne) pos2 = self.GetPistonPosition(self.PistonTwo) if self.IsUpsideDown() : self.InverterTime = self.reloadDelay if (pos1 < -0.2 ) or (pos2 < -0.2 ) : self.Input("SPExtend", 0, 1) else : self.Input("SPExtend", 0, 0) self.Input("SPRetract", 0, 0) else : if (pos1 > -0.15 ) or (pos2 > -0.15 ) : self.Input("SPRetract", 0, 1) if (self.InverterTime <= 0) : self.Input("SPExtend", 0, 0) self.Input("SPRetract", 0, 0) self.Input("Inverter", 0, 1) self.InverterTime = self.reloadDelay