Spinner.py
Revision as of 04:03, 21 June 2010 by Fracture (talk | contribs) (Created page with '== Background Info == An AI Python file that comes with Stock, specially designed for spinning weapons. == Versions / Variants == None, but a few AIs have been created ba…')
Background Info
An AI Python file that comes with Stock, specially designed for spinning weapons.
Versions / Variants
None, but a few AIs have been created based on this one, including Omni.py, Bee.py and FBSPlus.py notably.
How to wire
Very easy. Spinner.py uses just Forward and LeftRight analog controls plus a Spin control (better as a button)
Binding Variables
'range': Maximum distance to an enemy bot the bot will activate it's spinner weapon (when an enemy bot is closer than that value, the bot will spin). It has a very low standard spin value (3.0), hence spins only when the opponent is close if you did not specified the range value in the bindings, and this means failure. A value of 40 is generally enough.
Example Bindings Line
list.append(("Lock Nut v2.3","Spinner",{'nose':math.pi*1.5,'radius':0.3,'range':99,'topspeed':100,'throttle':130,'turn':70,'turnspeed':4,'weapons':(10,11,12)}))
Examples of RA2 Robots
Examples of Real Robots
Last Rites, Shrederator