Difference between revisions of "FBS.py"

From RA2Wiki
Jump to navigation Jump to search
Line 1: Line 1:
An [[AI Python file]] originally written by [[Apanx]], and that makes an [[SnS]] not only spin on itself but go towards the opponent (AKA Melty Brain SnS). NOTE : NOT related to the [[FBS]] robot type.
+
An [[AI Python file]] originally written by [[Apanx]], and that makes an [[SnS]] not only spin on itself but go towards the opponent (AKA Melty Brain SnS). '''WARNING : NOT related to the [[FBS]] robot type.'''
  
 
It first wasn't used much, but then [[Naryar]] fell in love with it and he expanded the use of that AI, also writing a FBSPlus.py (that is simply FBS.py with spinning weapon support) and FBSInvertDir.py (a FBS that changes spinning direction when inverted, good for some designs). A number of people now use this, especially Naryar and [[G.K.]].
 
It first wasn't used much, but then [[Naryar]] fell in love with it and he expanded the use of that AI, also writing a FBSPlus.py (that is simply FBS.py with spinning weapon support) and FBSInvertDir.py (a FBS that changes spinning direction when inverted, good for some designs). A number of people now use this, especially Naryar and [[G.K.]].
Line 10: Line 10:
 
Very easy. FBS uses just Forward and LeftRight analog controls and FBSPlus uses an additional Spin control.
 
Very easy. FBS uses just Forward and LeftRight analog controls and FBSPlus uses an additional Spin control.
  
== Special variables ==
+
== Variables used ==
  
'spinspeed': (values : 0 to infinity, but 20 is already more than enough) Minimum turning speed the bot need to attain. Default value is 6. Higher means less translational speed, but more rotational speed - putting it high enough would make it a normal SnS.
+
''''spinspeed'''': (values : 0 to infinity, but 20 is already more than enough) Minimum turning speed the bot need to attain. Default value is 6. Higher means less translational speed, but more rotational speed - putting it high enough would make it a normal SnS.
  
'direction': (value : 1 or -1) The spinning direction. (1 is clockwise, -1 is counterclockwise)
+
''''direction':''' (value : 1 or -1) The spinning direction (1 is clockwise, -1 is counterclockwise). Default is 1.
 +
 
 +
''''accuracy':''' ?
 +
 
 +
''''range':''' Same as [[Spinner.py]], but default here is 40.
  
 
== Examples of use ==
 
== Examples of use ==

Revision as of 02:36, 8 June 2010

An AI Python file originally written by Apanx, and that makes an SnS not only spin on itself but go towards the opponent (AKA Melty Brain SnS). WARNING : NOT related to the FBS robot type.

It first wasn't used much, but then Naryar fell in love with it and he expanded the use of that AI, also writing a FBSPlus.py (that is simply FBS.py with spinning weapon support) and FBSInvertDir.py (a FBS that changes spinning direction when inverted, good for some designs). A number of people now use this, especially Naryar and G.K..

Recently modified by Clickbeetle to make it less laggy.


How to wire

Very easy. FBS uses just Forward and LeftRight analog controls and FBSPlus uses an additional Spin control.

Variables used

'spinspeed': (values : 0 to infinity, but 20 is already more than enough) Minimum turning speed the bot need to attain. Default value is 6. Higher means less translational speed, but more rotational speed - putting it high enough would make it a normal SnS.

'direction': (value : 1 or -1) The spinning direction (1 is clockwise, -1 is counterclockwise). Default is 1.

'accuracy': ?

'range': Same as Spinner.py, but default here is 40.

Examples of use

Feeblemind, Cataclysm 2, The Bot You Like To Hate, Fireside, Iron Storm 5, ...