Poker.py

From RA2Wiki
Revision as of 05:33, 2 July 2010 by Fracture (talk | contribs) (Created page with '== Background Info == An AI Python file coming with Stock AI. Visibly specially done for Pokers and burst pistons., thought it can work with any burst motor as well (use…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Background Info

An AI Python file coming with Stock AI. Visibly specially done for Pokers and burst pistons., thought it can work with any burst motor as well (useful for some Flippers and Hammers as well)

Supports only one "Fire" button control and smartzone

Versions / Variants

Many, many... RangePoker: Uses range and heading rather than a smartzone to fire the weapon. Made by Philetbabe PokerPlus: Improved Poker.py Supposed to fire weapon when being counted out or stuck on it's rear. Made by Naryar and imrpoved


How to wire

Usual wiring - Forward analog, LeftRight analog, Fire button. Also needs a smartzone named "weapon".

Binding Variables

'delay': Waits for a certain amount of time between two Fire command imputs. Useful for some hammers when you want full swing and the burst motor hasn't fully retracted yet. NOTE: The value is in seconds divided by 8, so 'delay': 8 would be a minimum interval of one second between two weapon activations. Default value is 4.

'triggers': Permits to change the smartzone's name to something else than "weapon". Example, if you put 'triggers':

Example Bindings Line

   list.append(("RED ALERT","Poker",{'invertible':True,'nose':math.pi*2,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':3,'weapons':(13,14,16,17,18)}))


Examples of RA2 Robots

ALARM, Bandersnatch, the DSL Biohazard replica

Examples of Real Robots

?