Omni.py

From RA2Wiki
Revision as of 10:42, 2 July 2010 by IINova (talk | contribs)
Jump to navigation Jump to search

Background Info

An AI Python file that was created by Starcore for his AI packs. As it's name implies it's currently the closest thing to an all-purpose AI.

Crossbreed between Spinner.py and Poker.py

Usable for most robot types excepted SnS and special robots.

Versions / Variants

OmniMultiZone.py: Supports 4 different weapons, plus can change tactics. (Made by Philetbabe)

OmniVSpinner.py: Has the weapon on an analog control. Changes the weapon's spinning direction when inverted. (Made by Clickbeetle)

OmniRam.py: Omni with Pusher.py tactic.

OmniInverted.py: Omni that attempts to invert itself with a button called "Inverter" (see The Ultimate Sacrifice for a practical use Among others.


How to wire

Usual wiring - Forward analog, LeftRight analog, Fire button and Spin button.

Binding Variables

Like Poker.py and Spinner.py

Example Bindings Line

   list.append(("Neglected Waterbug","Omni",{'topspeed':99,'throttle':130,'radius':0.1,'range':99,'weapons':(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23)}))


Examples of RA2 Robots

Diarrhea of a Madman, Neglected Waterbug, Tempus Fugit, Enfilad3

Examples of Real Robots

Prometheus