home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 56 / CDPowerplay56Disc2.iso / demos / blade / data1.cab / Program_Executable_Files / Scripts / Biped / ActionTables.py next >
Encoding:
Text File  |  2000-10-27  |  42.6 KB  |  869 lines

  1. ####################################################################################
  2. #
  3. #
  4. #
  5. #               T A B L E S   O F   T H E   P E R S O N   S T A T E
  6. #
  7. #
  8. #
  9. ####################################################################################
  10.  
  11.  
  12.  
  13.  
  14. #    Bladex.SetEventTableFuncC("Rlx","ActionEnd","Cycle")
  15. #        1->Nombre tabla ( crea nueva si no existe)
  16. #        2->Evento que ocurre
  17. #           Tipicos:
  18. #            ActionEnd
  19. #            FloorFail
  20. #            FloorFailAd
  21. #            Jump
  22. #            Sneak
  23. #            Walk
  24. #            Stop
  25. #            Etc...
  26. #            
  27. #        3->Respuesta a ese evento. Puede ser por codigo ( como aqui ) , o en python
  28. #
  29. #
  30. #
  31.  
  32.  
  33.  
  34.  
  35. def Init():
  36.  
  37.     import time
  38.     firstTime= time.time()
  39.     print "Creating tables for the bipeds..."
  40.     import Bladex
  41.     import Actions
  42.     ####################################################################################
  43.     #
  44.     # Relax .
  45.     #
  46.     ####################################################################################
  47.  
  48.  
  49.     Bladex.SetEventTableFunc("Rlx","InstantAttack",Actions.InstantAttackSlow)
  50.     Bladex.SetEventTableFuncC("Rlx","ActionEnd","RlxCycle")
  51.     Bladex.SetEventTableFuncC("Rlx","Jump","TestJump")
  52.     Bladex.SetEventTableFuncC("Rlx","ToggleFacing","ToggleFacing")
  53.     Bladex.SetEventTableFuncC("Rlx","StartBlock","StartBlockAndUpdate")
  54.     Bladex.SetEventTableFuncC("Rlx","StopBlock","StopBlockAndUpdate")
  55.     Bladex.SetEventTableFuncC("Rlx","Jog","StartJog")
  56.     Bladex.SetEventTableFuncC("Rlx","Sneak","StartSneak")
  57.     Bladex.SetEventTableFuncC("Rlx","Walk","StartWalk")
  58.     Bladex.SetEventTableFuncC("Rlx","Back","StartBack")
  59.     Bladex.SetEventTableFuncC("Rlx","JogBack","StartBackJogging")
  60.     Bladex.SetEventTableFuncC("Rlx","SlipNeeded","SlipNeeded")    
  61.  
  62.     Bladex.SetEventTableFuncC("Rlx","FloorFail","FloorFail")
  63.     Bladex.SetEventTableFuncC("Rlx","FloorFailAd","FloorFailAd")
  64.  
  65.     #Bladex.SetEventTableFuncC("Rlx","2Right4Combat","2Right4Combat")
  66.     #Bladex.SetEventTableFuncC("Rlx","2Left4Combat","2Left4Combat")
  67.     Bladex.SetEventTableFunc("Rlx","TransitionEnded",Actions.GraspString)
  68.  
  69.     ####################################################################################
  70.     #
  71.     # Relax v. tired.
  72.     #
  73.     ####################################################################################
  74.     Bladex.SetEventTableFunc("Rlx_vt","ActionStart",Actions.UnGraspString)
  75.     #Bladex.SetEventTableFuncC("Rlx_vt","ActionEnd","Cycle")
  76.     Bladex.SetEventTableFuncC("Rlx_vt","ActionEnd","EndGenericAction")    
  77.     Bladex.SetEventTableFuncC("Rlx_vt","SlipNeeded","SlipNeeded")
  78.     Bladex.SetEventTableFuncC("Rlx_vt","FloorFail","FloorFail")
  79.     Bladex.SetEventTableFuncC("Rlx_vt","FloorFailAd","FloorFailAd")
  80.     Bladex.SetEventTableFuncC("Rlx_vt","Recover","EndGenericAction")
  81.  
  82.  
  83.     ####################################################################################
  84.     #
  85.     # Pasos.- Andares
  86.     #
  87.     ####################################################################################
  88.  
  89.     # Para paso modificado con la pierna izquierda.
  90.     ##Bladex.SetEventTableFuncC("LStepS","ActionEnd","RStep")
  91.     #Bladex.SetEventTableFuncC("LStepS","Stop","StopWalk")
  92.     #Bladex.SetEventTableFuncC("LStepS","FloorFail","FloorFail")
  93.  
  94.     # Para paso modificado con la pierna derecha.
  95.     ##Bladex.SetEventTableFuncC("RStepS","ActionEnd","LStep")
  96.     #Bladex.SetEventTableFuncC("RStepS","Stop","StopWalk")
  97.     #Bladex.SetEventTableFuncC("RStepS","FloorFail","FloorFail")
  98.  
  99.  
  100.     #Andar hacia detras
  101.     Bladex.SetEventTableFunc("WBK","ActionStart",Actions.GraspString)
  102.     Bladex.SetEventTableFunc("WBK","InstantAttack",Actions.InstantAttackSlow)
  103.     Bladex.SetEventTableFuncC("WBK","ToggleFacing","ToggleFacing")
  104.     Bladex.SetEventTableFuncC("WBK","SlipNeeded","SlipNeeded")
  105.     Bladex.SetEventTableFuncC("WBK","Jump","TestDodge")
  106.     Bladex.SetEventTableFuncC("WBK","Back","SS_GoBackwards")
  107.     Bladex.SetEventTableFuncC("WBK","StopBackwards","CS_GoBackwards")
  108.     Bladex.SetEventTableFuncC("WBK","JogBack","StartBackJogging")
  109.     #Bladex.SetEventTableFuncC("WBK","StartBlock","StartBlock")
  110.     #Bladex.SetEventTableFuncC("WBK","StopBlock","StopBlock")
  111.     Bladex.SetEventTableFuncC("WBK","StartBlock","StartBlockAndChange")
  112.     Bladex.SetEventTableFuncC("WBK","StopBlock","StopBlockAndChange")
  113.     Bladex.SetEventTableFuncC("WBK","StopTest","StopBack")
  114.     Bladex.SetEventTableFuncC("WBK","ActionEnd","Cycle")
  115.     Bladex.SetEventTableFuncC("WBK","TurnRight","TurnRight")
  116.     Bladex.SetEventTableFuncC("WBK","TurnLeft","TurnLeft")
  117.     Bladex.SetEventTableFuncC("WBK","StopTurn","StopTurn")
  118.     Bladex.SetEventTableFuncC("WBK","Walk","StartWalk")
  119.     Bladex.SetEventTableFuncC("WBK","Jog","StartJog")
  120.  
  121.     Bladex.SetEventTableFuncC("WBK","Turn180","RelaxTurn")
  122.  
  123.  
  124.     Bladex.SetEventTableFuncC("WBK","FloorFail","FloorFail")
  125.     Bladex.SetEventTableFuncC("WBK","FloorFailAd","FloorFailAd")
  126.  
  127.  
  128.  
  129.     #Correr hacia detras
  130.     Bladex.SetEventTableFunc("WBK_JOG","ActionStart",Actions.UnGraspString)
  131.     Bladex.SetEventTableFunc("WBK_JOG","InstantAttack",Actions.InstantAttackSlow)
  132.     Bladex.SetEventTableFuncC("WBK_JOG","ToggleFacing","ToggleFacing")
  133.     Bladex.SetEventTableFuncC("WBK_JOG","SlipNeeded","SlipNeeded")
  134.     Bladex.SetEventTableFuncC("WBK_JOG","Jump","TestDodge")
  135.     Bladex.SetEventTableFuncC("WBK_JOG","Back","StartBack")
  136.     Bladex.SetEventTableFuncC("WBK_JOG","Walk","StartWalk")
  137.  
  138.     Bladex.SetEventTableFuncC("WBK_JOG","Jog","StartJogBacking")
  139.     Bladex.SetEventTableFuncC("WBK_JOG","StopJog","CS_Jog")
  140.  
  141.  
  142.     Bladex.SetEventTableFuncC("WBK_JOG","StopBackwards","CS_GoBackwards")    
  143.     #Bladex.SetEventTableFuncC("WBK_JOG","StartBlock","StartBlock")
  144.     #Bladex.SetEventTableFuncC("WBK_JOG","StopBlock","StopBlock")
  145.     Bladex.SetEventTableFuncC("WBK_JOG","StartBlock","StartBlockAndChange")
  146.     Bladex.SetEventTableFuncC("WBK_JOG","StopBlock","StopBlockAndChange")
  147.     Bladex.SetEventTableFuncC("WBK_JOG","StopTest","StopBackJogging")    
  148.     Bladex.SetEventTableFuncC("WBK_JOG","ActionEnd","Cycle")
  149.     Bladex.SetEventTableFuncC("WBK_JOG","TurnRight","TurnRight")
  150.     Bladex.SetEventTableFuncC("WBK_JOG","TurnLeft","TurnLeft")
  151.     Bladex.SetEventTableFuncC("WBK_JOG","StopTurn","StopTurn")
  152.  
  153.     Bladex.SetEventTableFuncC("WBK_JOG","Turn180","RelaxTurn")
  154.  
  155.     Bladex.SetEventTableFuncC("WBK_JOG","FloorFail","FloorFail")
  156.     Bladex.SetEventTableFuncC("WBK_JOG","FloorFailAd","FloorFailAd")
  157.  
  158.  
  159.  
  160.     # Andar hacia delante , WLK
  161.  
  162.     Bladex.SetEventTableFunc("WLK","ActionStart",Actions.GraspString)
  163.     Bladex.SetEventTableFunc("WLK","InstantAttack",Actions.InstantAttackSlow)
  164.     Bladex.SetEventTableFuncC("WLK","ToggleFacing","ToggleFacing")
  165.     Bladex.SetEventTableFuncC("WLK","SlipNeeded","SlipNeeded")
  166.     Bladex.SetEventTableFuncC("WLK","Jump","TestJump")
  167.     #Bladex.SetEventTableFuncC("WLK","StartBlock","StartBlock")
  168.     #Bladex.SetEventTableFuncC("WLK","StopBlock","StopBlock")
  169.     Bladex.SetEventTableFuncC("WLK","StartBlock","StartBlockAndChange")
  170.     Bladex.SetEventTableFuncC("WLK","StopBlock","StopBlockAndChange")
  171.     Bladex.SetEventTableFuncC("WLK","Walk","SS_GoForwards")
  172.     Bladex.SetEventTableFuncC("WLK","Jog","StartJogFromWalk")
  173.     Bladex.SetEventTableFuncC("WLK","Sneak","StartSneakFromWalk")
  174.     Bladex.SetEventTableFuncC("WLK","StopForwards","CS_GoForwards")
  175.     Bladex.SetEventTableFuncC("WLK","StopTest","StopWalk")
  176.     Bladex.SetEventTableFuncC("WLK","ActionEnd","Cycle")
  177.     Bladex.SetEventTableFuncC("WLK","TurnRight","TurnRight")
  178.     Bladex.SetEventTableFuncC("WLK","TurnLeft","TurnLeft")
  179.     Bladex.SetEventTableFuncC("WLK","StopTurn","StopTurn")
  180.     Bladex.SetEventTableFuncC("WLK","Back","StartBack")
  181.     Bladex.SetEventTableFuncC("WLK","JogBack","StartBackJogging")
  182.  
  183.     Bladex.SetEventTableFuncC("WLK","Turn180","WalkTurn")
  184.  
  185.  
  186.     Bladex.SetEventTableFuncC("WLK","FloorFail","FloorFail")
  187.     Bladex.SetEventTableFuncC("WLK","FloorFailAd","FloorFailAd")
  188.  
  189.  
  190.     # Andar hacia delante , JOG
  191.     Bladex.SetEventTableFunc("JOG","ActionStart",Actions.GraspString)
  192.     Bladex.SetEventTableFunc("JOG","InstantAttack",Actions.InstantAttackRun)
  193.     Bladex.SetEventTableFuncC("JOG","ToggleFacing","ToggleFacing")
  194.     Bladex.SetEventTableFuncC("JOG","SlipNeeded","SlipNeeded")
  195.     Bladex.SetEventTableFuncC("JOG","Jump","TestJump")
  196.     Bladex.SetEventTableFuncC("JOG","Jog","SS_Jog")
  197.     Bladex.SetEventTableFuncC("JOG","Walk","StartWalk")
  198.     Bladex.SetEventTableFuncC("JOG","StopForwards","CS_Jog")
  199.     Bladex.SetEventTableFuncC("JOG","StopTest","StopJog")
  200.     #Bladex.SetEventTableFuncC("JOG","StartBlock","StartBlock")
  201.     #Bladex.SetEventTableFuncC("JOG","StopBlock","StopBlock")
  202.     Bladex.SetEventTableFuncC("JOG","StartBlock","StartBlockAndChange")
  203.     Bladex.SetEventTableFuncC("JOG","StopBlock","StopBlockAndChange")
  204.     Bladex.SetEventTableFuncC("JOG","ActionEnd","Cycle")
  205.     Bladex.SetEventTableFuncC("JOG","TurnRight","TurnRight")
  206.     Bladex.SetEventTableFuncC("JOG","TurnLeft","TurnLeft")
  207.     Bladex.SetEventTableFuncC("JOG","StopTurn","StopTurn")
  208.     Bladex.SetEventTableFuncC("JOG","Back","StartBack")
  209.     Bladex.SetEventTableFuncC("JOG","JogBack","StartBackJogging")
  210.  
  211.     Bladex.SetEventTableFuncC("JOG","Turn180","JogTurn")
  212.  
  213.  
  214.     Bladex.SetEventTableFuncC("JOG","FloorFail","FloorFail")
  215.     Bladex.SetEventTableFuncC("JOG","FloorFailAd","FloorFailAd")
  216.  
  217.     # Andar hacia delante ,SNEAK
  218.     Bladex.SetEventTableFunc("SNK","ActionStart",Actions.GraspString)
  219.     Bladex.SetEventTableFunc("SNK","InstantAttack",Actions.InstantAttackSlow)
  220.     Bladex.SetEventTableFuncC("SNK","ToggleFacing","ToggleFacing")
  221.     Bladex.SetEventTableFuncC("SNK","SlipNeeded","SlipNeeded")
  222.     Bladex.SetEventTableFuncC("SNK","Sneak","SS_Sneak")
  223.     Bladex.SetEventTableFuncC("SNK","Walk","StartWalk")
  224.     Bladex.SetEventTableFuncC("SNK","StopForwards","CS_Sneak")
  225.     #Bladex.SetEventTableFuncC("SNK","StartBlock","StartBlock")
  226.     #Bladex.SetEventTableFuncC("SNK","StopBlock","StopBlock")
  227.     Bladex.SetEventTableFuncC("SNK","StartBlock","StartBlockAndChange")
  228.     Bladex.SetEventTableFuncC("SNK","StopBlock","StopBlockAndChange")
  229.     Bladex.SetEventTableFuncC("SNK","StopTest","StopSneak")
  230.     Bladex.SetEventTableFuncC("SNK","ActionEnd","Cycle")
  231.     Bladex.SetEventTableFuncC("SNK","TurnRight","TurnRight")
  232.     Bladex.SetEventTableFuncC("SNK","TurnLeft","TurnLeft")
  233.     Bladex.SetEventTableFuncC("SNK","StopTurn","StopTurn")
  234.     Bladex.SetEventTableFuncC("SNK","Back","StartBack")
  235.     Bladex.SetEventTableFuncC("SNK","JogBack","StartBackJogging")
  236.  
  237.     Bladex.SetEventTableFuncC("SNK","Turn180","SneakTurn")
  238.  
  239.  
  240.     Bladex.SetEventTableFuncC("SNK","FloorFail","FloorFail")
  241.     Bladex.SetEventTableFuncC("SNK","FloorFailAd","FloorFailAd")
  242.  
  243.  
  244.     ####################################################################################
  245.     #
  246.     # Turning 180 degrees
  247.     #
  248.     ####################################################################################
  249.  
  250.     Bladex.SetEventTableFunc("TURNING","ActionStart",Actions.UnGraspString)
  251.     Bladex.SetEventTableFuncC("TURNING","SlipNeeded","SlipNeeded")
  252.     Bladex.SetEventTableFuncC("TURNING","TransitionEnded","TestIfSlipNeeded")
  253.     Bladex.SetEventTableFuncC("TURNING","Walk","SS_GoForwards")
  254.     Bladex.SetEventTableFuncC("TURNING","StopForwards","CS_GoForwards")
  255.     Bladex.SetEventTableFuncC("TURNING","StartBlock","StartBlock")
  256.     Bladex.SetEventTableFuncC("TURNING","StopBlock","StopBlock")
  257.     Bladex.SetEventTableFuncC("TURNING","Jog","SS_Jog")
  258.     Bladex.SetEventTableFuncC("TURNING","StopJog","CS_Jog")
  259.     Bladex.SetEventTableFuncC("TURNING","Sneak","SS_Sneak")
  260.     Bladex.SetEventTableFuncC("TURNING","StopSneak","CS_Sneak")
  261.     Bladex.SetEventTableFuncC("TURNING","Back","SS_GoBackwards")
  262.     Bladex.SetEventTableFuncC("TURNING","JogBack","SS_GoBackwards")
  263.     Bladex.SetEventTableFuncC("TURNING","StopBackwards","CS_GoBackwards")    
  264.  
  265.     Bladex.SetEventTableFuncC("TURNING","FloorFail","FloorFail")
  266.     Bladex.SetEventTableFuncC("TURNING","FloorFail","FloorFail")
  267.     Bladex.SetEventTableFuncC("TURNING","FloorFailAd","FloorFailAd")
  268.  
  269.  
  270.  
  271.     ####################################################################################
  272.     #
  273.     # Falling
  274.     #
  275.     ####################################################################################
  276.  
  277.     Bladex.SetEventTableFunc("Fll","ActionStart",Actions.UnGraspString)
  278.     Bladex.SetEventTableFuncC("Fll","SlipNeeded","SlipNeeded")
  279.     Bladex.SetEventTableFuncC("Fll","TransitionEnded","FllTransitionEnded")
  280.     Bladex.SetEventTableFuncC("Fll","Walk","SS_GoForwards")
  281.     Bladex.SetEventTableFuncC("Fll","StopForwards","CS_GoForwards")
  282.     Bladex.SetEventTableFuncC("Fll","StartBlock","StartBlock")
  283.     Bladex.SetEventTableFuncC("Fll","StopBlock","StopBlock")
  284.     Bladex.SetEventTableFuncC("Fll","Jog","SS_Jog")
  285.     Bladex.SetEventTableFuncC("Fll","StopJog","CS_Jog")
  286.     Bladex.SetEventTableFuncC("Fll","Sneak","SS_Sneak")
  287.     Bladex.SetEventTableFuncC("Fll","StopSneak","CS_Sneak")
  288.     Bladex.SetEventTableFuncC("Fll","Back","SS_GoBackwards")
  289.     Bladex.SetEventTableFuncC("Fll","StopBackwards","CS_GoBackwards")
  290.     Bladex.SetEventTableFuncC("Fll","StrafeRight","SS_StrafeRight")
  291.     Bladex.SetEventTableFuncC("Fll","StopStrafeRight","CS_StrafeRight")
  292.     Bladex.SetEventTableFuncC("Fll","StrafeLeft","SS_StrafeLeft")
  293.     Bladex.SetEventTableFuncC("Fll","StopStrafeLeft","CS_StrafeLeft")
  294.  
  295.     Bladex.SetEventTableFuncC("Fll","FloorFail","FloorFail")
  296.     Bladex.SetEventTableFuncC("Fll","ConstraintsChanged","Fall")
  297.  
  298.     Bladex.SetEventTableFunc("Dth_Fll2","ActionStart",Actions.UnGraspString)
  299.     Bladex.SetEventTableFuncC("Dth_Fll2","SlipNeeded","SlipNeeded")
  300.     Bladex.SetEventTableFuncC("Dth_Fll2","TransitionEnded","FllTransitionEnded")
  301.     Bladex.SetEventTableFuncC("Dth_Fll2","Walk","SS_GoForwards")
  302.     Bladex.SetEventTableFuncC("Dth_Fll2","StopForwards","CS_GoForwards")
  303.     Bladex.SetEventTableFuncC("Dth_Fll2","StartBlock","StartBlock")
  304.     Bladex.SetEventTableFuncC("Dth_Fll2","StopBlock","StopBlock")
  305.     Bladex.SetEventTableFuncC("Dth_Fll2","Jog","SS_Jog")
  306.     Bladex.SetEventTableFuncC("Dth_Fll2","StopJog","CS_Jog")
  307.     Bladex.SetEventTableFuncC("Dth_Fll2","Sneak","SS_Sneak")
  308.     Bladex.SetEventTableFuncC("Dth_Fll2","StopSneak","CS_Sneak")
  309.     Bladex.SetEventTableFuncC("Dth_Fll2","Back","SS_GoBackwards")
  310.     Bladex.SetEventTableFuncC("Dth_Fll2","StopBackwards","CS_GoBackwards")
  311.     Bladex.SetEventTableFuncC("Dth_Fll2","StrafeRight","SS_StrafeRight")
  312.     Bladex.SetEventTableFuncC("Dth_Fll2","StopStrafeRight","CS_StrafeRight")
  313.     Bladex.SetEventTableFuncC("Dth_Fll2","StrafeLeft","SS_StrafeLeft")
  314.     Bladex.SetEventTableFuncC("Dth_Fll2","StopStrafeLeft","CS_StrafeLeft")
  315.  
  316.     #Bladex.SetEventTableFunc("Dth","ActionStart",Actions.UnGraspString)
  317.     Bladex.SetEventTableFuncC("Dth","Walk","SS_GoForwards")
  318.     Bladex.SetEventTableFuncC("Dth","StopForwards","CS_GoForwards")
  319.     Bladex.SetEventTableFuncC("Dth","StartBlock","StartBlock")
  320.     Bladex.SetEventTableFuncC("Dth","StopBlock","StopBlock")
  321.     Bladex.SetEventTableFuncC("Dth","Jog","SS_Jog")
  322.     Bladex.SetEventTableFuncC("Dth","StopJog","CS_Jog")
  323.     Bladex.SetEventTableFuncC("Dth","Sneak","SS_Sneak")
  324.     Bladex.SetEventTableFuncC("Dth","StopSneak","CS_Sneak")
  325.     Bladex.SetEventTableFuncC("Dth","Back","SS_GoBackwards")
  326.     Bladex.SetEventTableFuncC("Dth","StopBackwards","CS_GoBackwards")
  327.     Bladex.SetEventTableFuncC("Dth","StrafeRight","SS_StrafeRight")
  328.     Bladex.SetEventTableFuncC("Dth","StopStrafeRight","CS_StrafeRight")
  329.     Bladex.SetEventTableFuncC("Dth","StrafeLeft","SS_StrafeLeft")
  330.     Bladex.SetEventTableFuncC("Dth","StopStrafeLeft","CS_StrafeLeft")
  331.     Bladex.SetEventTableFuncC("Dth","FloorFail","FloorFail")
  332.     Bladex.SetEventTableFuncC("Dth","ConstraintsChanged","Fall")
  333.  
  334.  
  335.  
  336.  
  337.  
  338.     Bladex.SetEventTableFunc("Dth_Fll","ActionStart",Actions.UnGraspString)
  339.     Bladex.SetEventTableFuncC("Dth_Fll","ActionEnd","EndDthFll")
  340.     Bladex.SetEventTableFunc("Dth_Fll","TransitionEnded",Actions.EndTransitionFllHugeHandler)
  341.  
  342.  
  343.  
  344.     ####################################################################################
  345.     #
  346.     # Animaciones en combate
  347.     #
  348.     ####################################################################################
  349.  
  350.     #Relax facing 
  351.     Bladex.SetEventTableFunc("FING_RLX","InstantAttack",Actions.InstantAttackSlow)
  352.     Bladex.SetEventTableFuncC("FING_RLX","ToggleFacing","ToggleFacing")
  353.     Bladex.SetEventTableFuncC("FING_RLX","SlipNeeded","SlipNeeded")
  354.     Bladex.SetEventTableFuncC("FING_RLX","Jump","TestDodge")
  355.     Bladex.SetEventTableFuncC("FING_RLX","StartBlock","StartBlockAndUpdate")
  356.     Bladex.SetEventTableFuncC("FING_RLX","StopBlock","StopBlockAndUpdate")
  357.     #Bladex.SetEventTableFuncC("FING_RLX","Jog","StartJog")
  358.     Bladex.SetEventTableFuncC("FING_RLX","Jog","SS_Jog")
  359.     Bladex.SetEventTableFuncC("FING_RLX","StopJog","CS_Jog")
  360.     Bladex.SetEventTableFuncC("FING_RLX","Sneak","StartSneak")
  361.     Bladex.SetEventTableFuncC("FING_RLX","Walk","StartWalkFacing")
  362.     Bladex.SetEventTableFuncC("FING_RLX","Back","StartBackFacing")
  363.     Bladex.SetEventTableFuncC("FING_RLX","StrafeRight","StartStrafeRight")
  364.     Bladex.SetEventTableFuncC("FING_RLX","StrafeLeft","StartStrafeLeft")
  365.     Bladex.SetEventTableFuncC("FING_RLX","ActionEnd","Cycle")
  366.     #Bladex.SetEventTableFuncC("FING_RLX","2Right4Combat","2Right4Combat")
  367.     #Bladex.SetEventTableFuncC("FING_RLX","2Left4Combat","2Left4Combat")
  368.  
  369.     Bladex.SetEventTableFuncC("FING_RLX","FloorFail","FloorFail")
  370.     Bladex.SetEventTableFuncC("FING_RLX","FloorFailAd","FloorFailAd")
  371.  
  372.  
  373.     #Turning while in fac
  374.     Bladex.SetEventTableFuncC("FING_TURN","ToggleFacing","ToggleFacing")
  375.     Bladex.SetEventTableFuncC("FING_TURN","StartBlock","StartBlock")
  376.     Bladex.SetEventTableFuncC("FING_TURN","StopBlock","StopBlock")
  377.     Bladex.SetEventTableFuncC("FING_TURN","ActionEnd","TransferAngle")
  378.     Bladex.SetEventTableFuncC("FING_TURN","StartBlock","StartBlock")
  379.     Bladex.SetEventTableFuncC("FING_TURN","StopBlock","StopBlock")
  380.  
  381.  
  382.     Bladex.SetEventTableFuncC("FING_TURN","FloorFail","FloorFail")
  383.     Bladex.SetEventTableFuncC("FING_TURN","FloorFailAd","FloorFailAd")
  384.  
  385.  
  386.     # Facinf , forwards , with shield 
  387.     Bladex.SetEventTableFunc("FING_FRW_S","InstantAttack",Actions.InstantAttackSlow)
  388.     Bladex.SetEventTableFuncC("FING_FRW_S","ToggleFacing","ToggleFacing")
  389.     Bladex.SetEventTableFuncC("FING_FRW_S","SlipNeeded","SlipNeeded")
  390.     Bladex.SetEventTableFuncC("FING_FRW_S","Back","StartBackFacing")
  391.     Bladex.SetEventTableFuncC("FING_FRW_S","Walk","SS_GoForwards")
  392.     Bladex.SetEventTableFuncC("FING_FRW_S","Jog","SS_Jog")
  393.     Bladex.SetEventTableFuncC("FING_FRW_S","StopJog","CS_Jog")
  394.     Bladex.SetEventTableFuncC("FING_FRW_S","StopForwards","CS_GoForwards")
  395.     Bladex.SetEventTableFuncC("FING_FRW_S","StopTest","StopWalkFacing")
  396.     #Bladex.SetEventTableFuncC("FING_FRW_S","StartBlock","StartBlock")
  397.     #Bladex.SetEventTableFuncC("FING_FRW_S","StopBlock","StopBlock")
  398.     Bladex.SetEventTableFuncC("FING_FRW_S","StartBlock","StartBlockAndChange")
  399.     Bladex.SetEventTableFuncC("FING_FRW_S","StopBlock","StopBlockAndChange")
  400.     Bladex.SetEventTableFuncC("FING_FRW_S","StrafeRight","StartStrafeRight")
  401.     Bladex.SetEventTableFuncC("FING_FRW_S","StrafeLeft","StartStrafeLeft")
  402.     Bladex.SetEventTableFuncC("FING_FRW_S","ActionEnd","Cycle")
  403.  
  404.     #3 sigus -> Internam. fuiltro por si encarado nada
  405.     Bladex.SetEventTableFuncC("FING_FRW_S","TurnRight","TurnRight")
  406.     Bladex.SetEventTableFuncC("FING_FRW_S","TurnLeft","TurnLeft")
  407.     Bladex.SetEventTableFuncC("FING_FRW_S","StopTurn","StopTurn")
  408.  
  409.  
  410.     Bladex.SetEventTableFuncC("FING_FRW_S","FloorFail","FloorFail")
  411.     Bladex.SetEventTableFuncC("FING_FRW_S","FloorFailAd","FloorFailAd")
  412.  
  413.  
  414.     # Facinf , forwards , without shield
  415.     Bladex.SetEventTableFunc("FING_FRW","InstantAttack",Actions.InstantAttackSlow)
  416.     Bladex.SetEventTableFuncC("FING_FRW","ToggleFacing","ToggleFacing")
  417.     Bladex.SetEventTableFuncC("FING_FRW","SlipNeeded","SlipNeeded")
  418.     Bladex.SetEventTableFuncC("FING_FRW","Back","StartBackFacing")
  419.     Bladex.SetEventTableFuncC("FING_FRW","Walk","SS_GoForwards")
  420.     Bladex.SetEventTableFuncC("FING_FRW","Jog","SS_Jog")
  421.     Bladex.SetEventTableFuncC("FING_FRW","StopJog","CS_Jog")
  422.     Bladex.SetEventTableFuncC("FING_FRW","StopForwards","CS_GoForwards")
  423.     Bladex.SetEventTableFuncC("FING_FRW","StopTest","StopWalkFacing")
  424.     #Bladex.SetEventTableFuncC("FING_FRW","StartBlock","StartBlock")
  425.     #Bladex.SetEventTableFuncC("FING_FRW","StopBlock","StopBlock")
  426.     Bladex.SetEventTableFuncC("FING_FRW","StartBlock","StartBlockAndChange")
  427.     Bladex.SetEventTableFuncC("FING_FRW","StopBlock","StopBlockAndChange")
  428.     Bladex.SetEventTableFuncC("FING_FRW","StrafeRight","StartStrafeRight")
  429.     Bladex.SetEventTableFuncC("FING_FRW","StrafeLeft","StartStrafeLeft")
  430.     Bladex.SetEventTableFuncC("FING_FRW","ActionEnd","Cycle")
  431.  
  432.     Bladex.SetEventTableFuncC("FING_FRW","FloorFail","FloorFail")
  433.     Bladex.SetEventTableFuncC("FING_FRW","FloorFailAd","FloorFailAd")
  434.  
  435.  
  436.     #Facing , backwards , with shield
  437.     Bladex.SetEventTableFunc("FING_BWD_S","InstantAttack",Actions.InstantAttackSlow)
  438.     Bladex.SetEventTableFuncC("FING_BWD_S","ToggleFacing","ToggleFacing")
  439.     Bladex.SetEventTableFuncC("FING_BWD_S","SlipNeeded","SlipNeeded")
  440.     Bladex.SetEventTableFuncC("FING_BWD_S","Walk","StartWalkFacing")
  441.     Bladex.SetEventTableFuncC("FING_BWD_S","Jog","SS_Jog")
  442.     Bladex.SetEventTableFuncC("FING_BWD_S","StopJog","CS_Jog")
  443.     Bladex.SetEventTableFuncC("FING_BWD_S","Back","SS_GoBackwards")
  444.     Bladex.SetEventTableFuncC("FING_BWD_S","StopBackwards","CS_GoBackwards")    
  445.     Bladex.SetEventTableFuncC("FING_BWD_S","StopTest","StopBackFacing")
  446.     #Bladex.SetEventTableFuncC("FING_BWD_S","StartBlock","StartBlock")
  447.     #Bladex.SetEventTableFuncC("FING_BWD_S","StopBlock","StopBlock")
  448.     Bladex.SetEventTableFuncC("FING_BWD_S","StartBlock","StartBlockAndChange")
  449.     Bladex.SetEventTableFuncC("FING_BWD_S","StopBlock","StopBlockAndChange")
  450.     Bladex.SetEventTableFuncC("FING_BWD_S","StrafeRight","StartStrafeRight")
  451.     Bladex.SetEventTableFuncC("FING_BWD_S","StrafeLeft","StartStrafeLeft")
  452.     Bladex.SetEventTableFuncC("FING_BWD_S","ActionEnd","Cycle")
  453.  
  454.     #3 sigus -> Internam. fuiltro por si encarado nada
  455.     Bladex.SetEventTableFuncC("FING_BWD_S","TurnRight","TurnRight")
  456.     Bladex.SetEventTableFuncC("FING_BWD_S","TurnLeft","TurnLeft")
  457.     Bladex.SetEventTableFuncC("FING_BWD_S","StopTurn","StopTurn")
  458.  
  459.  
  460.     Bladex.SetEventTableFuncC("FING_BWD_S","FloorFail","FloorFail")
  461.     Bladex.SetEventTableFuncC("FING_BWD_S","FloorFailAd","FloorFailAd")
  462.  
  463.  
  464.  
  465.     #Facing , backwards , without shield
  466.     Bladex.SetEventTableFunc("FING_BWD","InstantAttack",Actions.InstantAttackSlow)
  467.     Bladex.SetEventTableFuncC("FING_BWD","ToggleFacing","ToggleFacing")
  468.     Bladex.SetEventTableFuncC("FING_BWD","SlipNeeded","SlipNeeded")
  469.     Bladex.SetEventTableFuncC("FING_BWD","Jump","TestDodge")
  470.     Bladex.SetEventTableFuncC("FING_BWD","Walk","StartWalkFacing")
  471.     Bladex.SetEventTableFuncC("FING_BWD","Jog","SS_Jog")
  472.     Bladex.SetEventTableFuncC("FING_BWD","StopJog","CS_Jog")
  473.     Bladex.SetEventTableFuncC("FING_BWD","Back","SS_GoBackwards")
  474.     Bladex.SetEventTableFuncC("FING_BWD","StopBackwards","CS_GoBackwards")    
  475.     Bladex.SetEventTableFuncC("FING_BWD","StopTest","StopBackFacing")
  476.     #Bladex.SetEventTableFuncC("FING_BWD","StartBlock","StartBlock")
  477.     #Bladex.SetEventTableFuncC("FING_BWD","StopBlock","StopBlock")
  478.     Bladex.SetEventTableFuncC("FING_BWD","StartBlock","StartBlockAndChange")
  479.     Bladex.SetEventTableFuncC("FING_BWD","StopBlock","StopBlockAndChange")
  480.     Bladex.SetEventTableFuncC("FING_BWD","StrafeRight","StartStrafeRight")
  481.     Bladex.SetEventTableFuncC("FING_BWD","StrafeLeft","StartStrafeLeft")
  482.     Bladex.SetEventTableFuncC("FING_BWD","ActionEnd","Cycle")
  483.  
  484.     Bladex.SetEventTableFuncC("FING_BWD","FloorFail","FloorFail")
  485.     Bladex.SetEventTableFuncC("FING_BWD","FloorFailAd","FloorFailAd")
  486.  
  487.     #Facing , strafe right , without shield
  488.     Bladex.SetEventTableFunc("FING_RIGHT","InstantAttack",Actions.InstantAttackSlow)
  489.     Bladex.SetEventTableFuncC("FING_RIGHT","ToggleFacing","ToggleFacing")
  490.     Bladex.SetEventTableFuncC("FING_RIGHT","SlipNeeded","SlipNeeded")
  491.     Bladex.SetEventTableFuncC("FING_RIGHT","Jump","TestDodge")
  492.     Bladex.SetEventTableFuncC("FING_RIGHT","StopTest","StopStrafeRight")
  493.     #Bladex.SetEventTableFuncC("FING_RIGHT","StartBlock","StartBlock")
  494.     #Bladex.SetEventTableFuncC("FING_RIGHT","StopBlock","StopBlock")
  495.     Bladex.SetEventTableFuncC("FING_RIGHT","StartBlock","StartBlockAndChange")
  496.     Bladex.SetEventTableFuncC("FING_RIGHT","StopBlock","StopBlockAndChange")
  497.     Bladex.SetEventTableFuncC("FING_RIGHT","StrafeRight","SS_StrafeRight")
  498.     Bladex.SetEventTableFuncC("FING_RIGHT","StopStrafeRight","CS_StrafeRight")
  499.     Bladex.SetEventTableFuncC("FING_RIGHT","StrafeLeft","SS_StrafeLeft")
  500.     Bladex.SetEventTableFuncC("FING_RIGHT","StopStrafeLeft","CS_StrafeLeft")
  501.  
  502.     Bladex.SetEventTableFuncC("FING_RIGHT","TransitionEnded","StrafeTranEnded")
  503.     Bladex.SetEventTableFuncC("FING_RIGHT","ActionEnd","Cycle")
  504.  
  505.     Bladex.SetEventTableFuncC("FING_RIGHT","Jog","SS_Jog")
  506.     Bladex.SetEventTableFuncC("FING_RIGHT","StopJog","CS_Jog")
  507.     Bladex.SetEventTableFuncC("FING_RIGHT","Walk","SS_ForwardsInStrafe")
  508.     Bladex.SetEventTableFuncC("FING_RIGHT","StopForwards","CS_ForwardsInStrafe")
  509.     Bladex.SetEventTableFuncC("FING_RIGHT","Back","SS_BackwardsInStrafe")
  510.     Bladex.SetEventTableFuncC("FING_RIGHT","StopBackwards","CS_BackwardsInStrafe")    
  511.  
  512.     #Bladex.SetEventTableFuncC("FING_RIGHT","2Right4Combat","2Right4Combat")
  513.     Bladex.SetEventTableFuncC("FING_RIGHT","2Left4Combat","2Left4Combat")
  514.  
  515.     Bladex.SetEventTableFuncC("FING_RIGHT","FloorFail","FloorFail")
  516.     Bladex.SetEventTableFuncC("FING_RIGHT","FloorFailAd","FloorFailAd")
  517.  
  518.  
  519.     #Facing , strafe right , with shield
  520.     Bladex.SetEventTableFunc("FING_RIGHT_S","InstantAttack",Actions.InstantAttackSlow)
  521.     Bladex.SetEventTableFuncC("FING_RIGHT_S","ToggleFacing","ToggleFacing")
  522.     Bladex.SetEventTableFuncC("FING_RIGHT_S","SlipNeeded","SlipNeeded")
  523.     Bladex.SetEventTableFuncC("FING_RIGHT_S","StopTest","StopStrafeRight")
  524.     #Bladex.SetEventTableFuncC("FING_RIGHT_S","StartBlock","StartBlock")
  525.     #Bladex.SetEventTableFuncC("FING_RIGHT_S","StopBlock","StopBlock")
  526.     Bladex.SetEventTableFuncC("FING_RIGHT_S","StartBlock","StartBlockAndChange")
  527.     Bladex.SetEventTableFuncC("FING_RIGHT_S","StopBlock","StopBlockAndChange")
  528.     Bladex.SetEventTableFuncC("FING_RIGHT_S","StrafeRight","SS_StrafeRight")
  529.     Bladex.SetEventTableFuncC("FING_RIGHT_S","StopStrafeRight","CS_StrafeRight")
  530.     Bladex.SetEventTableFuncC("FING_RIGHT_S","StrafeLeft","SS_StrafeLeft")
  531.     Bladex.SetEventTableFuncC("FING_RIGHT_S","StopStrafeLeft","CS_StrafeLeft")
  532.  
  533.     Bladex.SetEventTableFuncC("FING_RIGHT_S","TransitionEnded","StrafeTranEnded")
  534.     Bladex.SetEventTableFuncC("FING_RIGHT_S","ActionEnd","Cycle")
  535.  
  536.     #Bladex.SetEventTableFuncC("FING_RIGHT_S","2Right4Combat","2Right4Combat")
  537.     Bladex.SetEventTableFuncC("FING_RIGHT_S","2Left4Combat","2Left4Combat")
  538.  
  539.  
  540.     Bladex.SetEventTableFuncC("FING_RIGHT_S","Jog","SS_Jog")
  541.     Bladex.SetEventTableFuncC("FING_RIGHT_S","StopJog","CS_Jog")
  542.     Bladex.SetEventTableFuncC("FING_RIGHT_S","Walk","SS_ForwardsInStrafe")
  543.     Bladex.SetEventTableFuncC("FING_RIGHT_S","StopForwards","CS_ForwardsInStrafe")
  544.     Bladex.SetEventTableFuncC("FING_RIGHT_S","Back","SS_BackwardsInStrafe")
  545.     Bladex.SetEventTableFuncC("FING_RIGHT_S","StopBackwards","CS_BackwardsInStrafe")    
  546.  
  547.     Bladex.SetEventTableFuncC("FING_RIGHT_S","FloorFail","FloorFail")
  548.     Bladex.SetEventTableFuncC("FING_RIGHT_S","FloorFailAd","FloorFailAd")
  549.  
  550.  
  551.  
  552.     #Facing , strafe left , without shield
  553.     Bladex.SetEventTableFunc("FING_LEFT","InstantAttack",Actions.InstantAttackSlow)
  554.     Bladex.SetEventTableFuncC("FING_LEFT","ToggleFacing","ToggleFacing")
  555.     Bladex.SetEventTableFuncC("FING_LEFT","SlipNeeded","SlipNeeded")
  556.     Bladex.SetEventTableFuncC("FING_LEFT","Jump","TestDodge")
  557.     Bladex.SetEventTableFuncC("FING_LEFT","StopTest","StopStrafeLeft")
  558.     #Bladex.SetEventTableFuncC("FING_LEFT","StartBlock","StartBlock")
  559.     #Bladex.SetEventTableFuncC("FING_LEFT","StopBlock","StopBlock")
  560.     Bladex.SetEventTableFuncC("FING_LEFT","StartBlock","StartBlockAndChange")
  561.     Bladex.SetEventTableFuncC("FING_LEFT","StopBlock","StopBlockAndChange")
  562.     Bladex.SetEventTableFuncC("FING_LEFT","StrafeLeft","SS_StrafeLeft")
  563.     Bladex.SetEventTableFuncC("FING_LEFT","StopStrafeLeft","CS_StrafeLeft")
  564.     Bladex.SetEventTableFuncC("FING_LEFT","StrafeRight","SS_StrafeRight")
  565.     Bladex.SetEventTableFuncC("FING_LEFT","StopStrafeRight","CS_StrafeRight")
  566.  
  567.     Bladex.SetEventTableFuncC("FING_LEFT","TransitionEnded","StrafeTranEnded")
  568.     Bladex.SetEventTableFuncC("FING_LEFT","ActionEnd","Cycle")
  569.  
  570.     Bladex.SetEventTableFuncC("FING_LEFT","Jog","SS_Jog")
  571.     Bladex.SetEventTableFuncC("FING_LEFT","StopJog","CS_Jog")
  572.  
  573.     Bladex.SetEventTableFuncC("FING_LEFT","Walk","SS_ForwardsInStrafe")
  574.     Bladex.SetEventTableFuncC("FING_LEFT","StopForwards","CS_ForwardsInStrafe")
  575.     Bladex.SetEventTableFuncC("FING_LEFT","Back","SS_BackwardsInStrafe")
  576.     Bladex.SetEventTableFuncC("FING_LEFT","StopBackwards","CS_BackwardsInStrafe")    
  577.  
  578.     Bladex.SetEventTableFuncC("FING_LEFT","2Right4Combat","2Right4Combat")
  579.     #Bladex.SetEventTableFuncC("FING_LEFT","2Left4Combat","2Left4Combat")
  580.  
  581.  
  582.     Bladex.SetEventTableFuncC("FING_LEFT","FloorFail","FloorFail")
  583.     Bladex.SetEventTableFuncC("FING_LEFT","FloorFailAd","FloorFailAd")
  584.  
  585.  
  586.  
  587.  
  588.     #Facing , strafe left , with shield
  589.     Bladex.SetEventTableFunc("FING_LEFT_S","InstantAttack",Actions.InstantAttackSlow)
  590.     Bladex.SetEventTableFuncC("FING_LEFT_S","ToggleFacing","ToggleFacing")
  591.     Bladex.SetEventTableFuncC("FING_LEFT_S","SlipNeeded","SlipNeeded")
  592.     Bladex.SetEventTableFuncC("FING_LEFT_S","StopTest","StopStrafeLeft")
  593.     #Bladex.SetEventTableFuncC("FING_LEFT_S","StartBlock","StartBlock")
  594.     #Bladex.SetEventTableFuncC("FING_LEFT_S","StopBlock","StopBlock")
  595.     Bladex.SetEventTableFuncC("FING_LEFT_S","StartBlock","StartBlockAndChange")
  596.     Bladex.SetEventTableFuncC("FING_LEFT_S","StopBlock","StopBlockAndChange")
  597.     Bladex.SetEventTableFuncC("FING_LEFT_S","StrafeLeft","SS_StrafeLeft")
  598.     Bladex.SetEventTableFuncC("FING_LEFT_S","StopStrafeLeft","CS_StrafeLeft")
  599.     Bladex.SetEventTableFuncC("FING_LEFT_S","StrafeRight","SS_StrafeRight")
  600.     Bladex.SetEventTableFuncC("FING_LEFT_S","StopStrafeRight","CS_StrafeRight")
  601.  
  602.     Bladex.SetEventTableFuncC("FING_LEFT_S","TransitionEnded","StrafeTranEnded")
  603.     Bladex.SetEventTableFuncC("FING_LEFT_S","ActionEnd","Cycle")
  604.  
  605.     Bladex.SetEventTableFuncC("FING_LEFT_S","Jog","SS_Jog")
  606.     Bladex.SetEventTableFuncC("FING_LEFT_S","StopJog","CS_Jog")
  607.  
  608.     Bladex.SetEventTableFuncC("FING_LEFT_S","Walk","SS_ForwardsInStrafe")
  609.     Bladex.SetEventTableFuncC("FING_LEFT_S","StopForwards","CS_ForwardsInStrafe")
  610.     Bladex.SetEventTableFuncC("FING_LEFT_S","Back","SS_BackwardsInStrafe")
  611.     Bladex.SetEventTableFuncC("FING_LEFT_S","StopBackwards","CS_BackwardsInStrafe")    
  612.  
  613.     Bladex.SetEventTableFuncC("FING_LEFT_S","2Right4Combat","2Right4Combat")
  614.     #Bladex.SetEventTableFuncC("FING_LEFT_S","2Left4Combat","2Left4Combat")
  615.  
  616.  
  617.     Bladex.SetEventTableFuncC("FING_LEFT_S","FloorFail","FloorFail")
  618.     Bladex.SetEventTableFuncC("FING_LEFT_S","FloorFailAd","FloorFailAd")
  619.  
  620.     ####################################################################################
  621.     #
  622.     # Muertes estancadas
  623.     #
  624.     ####################################################################################
  625.  
  626.  
  627.     Bladex.SetEventTableFuncC("DTH_STUCK","ActionEnd","EventStop")
  628.  
  629.     Bladex.SetEventTableFuncC("dth_rock","ActionEnd","EventStop")
  630.     Bladex.SetEventTableFuncC("dth_rockfront","ActionEnd","EventStop")
  631.  
  632.  
  633.  
  634.  
  635.  
  636.     ####################################################################################
  637.     #
  638.     # Escalar + Salto + Slip
  639.     #
  640.     ####################################################################################
  641.  
  642.  
  643.     # Escalar
  644.     Bladex.SetEventTableFunc("CLIMBING","ActionStart",Actions.UnGraspString)
  645.     Bladex.SetEventTableFuncC("CLIMBING","Walk","SS_GoForwards")
  646.     Bladex.SetEventTableFuncC("CLIMBING","StopForwards","CS_GoForwards")
  647.     Bladex.SetEventTableFuncC("CLIMBING","Back","SS_GoBackwards")
  648.     Bladex.SetEventTableFuncC("CLIMBING","StopBackwards","CS_GoBackwards")    
  649.     Bladex.SetEventTableFuncC("CLIMBING","Jog","SS_Jog")
  650.     Bladex.SetEventTableFuncC("CLIMBING","StopJog","CS_Jog")
  651.     Bladex.SetEventTableFuncC("CLIMBING","Sneak","SS_Sneak")
  652.     Bladex.SetEventTableFuncC("CLIMBING","StopSneak","CS_Sneak")
  653.     Bladex.SetEventTableFuncC("CLIMBING","StartBlock","StartBlock")
  654.     Bladex.SetEventTableFuncC("CLIMBING","StopBlock","StopBlock")
  655.  
  656.  
  657.     #Bladex.SetEventTableFuncC("CLIMBING","FloorFail","FloorFail")
  658.     Bladex.SetEventTableFuncC("CLIMBING","FloorFailAd","FloorFailAd")
  659.  
  660.  
  661.     # Salto...
  662.     Bladex.SetEventTableFunc("JUMPING","ActionStart",Actions.UnGraspString)
  663.     Bladex.SetEventTableFuncC("JUMPING","Walk","SS_GoForwards")
  664.     Bladex.SetEventTableFuncC("JUMPING","StopForwards","CS_GoForwards")
  665.     Bladex.SetEventTableFuncC("JUMPING","Back","SS_GoBackwards")
  666.     Bladex.SetEventTableFuncC("JUMPING","StopBackwards","CS_GoBackwards")    
  667.     Bladex.SetEventTableFuncC("JUMPING","Jog","SS_Jog")
  668.     Bladex.SetEventTableFuncC("JUMPING","StopJog","CS_Jog")
  669.     Bladex.SetEventTableFuncC("JUMPING","Sneak","SS_Sneak")
  670.     Bladex.SetEventTableFuncC("JUMPING","StopSneak","CS_Sneak")
  671.     Bladex.SetEventTableFuncC("JUMPING","StartBlock","StartBlock")
  672.     Bladex.SetEventTableFuncC("JUMPING","StopBlock","StopBlock")
  673.  
  674.     Bladex.SetEventTableFuncC("JUMPING","SlipNeeded","SlipNeeded")
  675.  
  676.     Bladex.SetEventTableFuncC("JUMPING","FloorFail","FloorFail")
  677.     Bladex.SetEventTableFuncC("JUMPING","FloorFailAd","FloorFailAd")
  678.     Bladex.SetEventTableFuncC("JUMPING","ConstraintsChanged","Fall")
  679.     Bladex.SetEventTableFuncC("JUMPING","FallTest","FallTest")
  680.  
  681.  
  682.     Bladex.SetEventTableFuncC("SLIPPING","SlipNeeded","SlipNeeded") #If slope change...
  683.     Bladex.SetEventTableFuncC("SLIPPING","Walk","SS_GoForwards")
  684.     Bladex.SetEventTableFuncC("SLIPPING","Stop","CS_GoForwards")
  685.     Bladex.SetEventTableFuncC("SLIPPING","Jump","TestJumpInSlip")
  686.     Bladex.SetEventTableFuncC("SLIPPING","SlipStop","SlipStop")
  687.     Bladex.SetEventTableFuncC("SLIPPING","ActionEnd","Cycle")
  688.     #Bladex.SetEventTableFuncC("SLIPPING","TransitionEnded","SlipTransitionEnded")
  689.     Bladex.SetEventTableFuncC("SLIPPING","AnmChange","SlipChange")
  690.  
  691.     Bladex.SetEventTableFuncC("SLIPPING","FloorFailAd","FloorFailAd")  
  692.     Bladex.SetEventTableFuncC("SLIPPING","FloorFail","FloorFail")
  693.  
  694.  
  695.  
  696.     Bladex.SetEventTableFunc("SLIP_END","ActionStart",Actions.GraspString)
  697.     Bladex.SetEventTableFuncC("SLIP_END","Walk","SS_GoForwards")
  698.     Bladex.SetEventTableFuncC("SLIP_END","StopForwards","CS_GoForwards")
  699.     Bladex.SetEventTableFuncC("SLIP_END","Back","SS_GoBackwards")
  700.     Bladex.SetEventTableFuncC("SLIP_END","StopBackwards","CS_GoBackwards")    
  701.     Bladex.SetEventTableFuncC("SLIP_END","Jog","SS_Jog")
  702.     Bladex.SetEventTableFuncC("SLIP_END","StopJog","CS_Jog")
  703.     Bladex.SetEventTableFuncC("SLIP_END","Sneak","SS_Sneak")
  704.     Bladex.SetEventTableFuncC("SLIP_END","StopSneak","CS_Sneak")
  705.     Bladex.SetEventTableFuncC("SLIP_END","StartBlock","StartBlock")
  706.     Bladex.SetEventTableFuncC("SLIP_END","StopBlock","StopBlock")
  707.     
  708.  
  709.     Bladex.SetEventTableFuncC("SLIP_END","FloorFailAd","FloorFailAd")  
  710.     Bladex.SetEventTableFuncC("SLIP_END","FloorFail","FloorFail")
  711.  
  712.  
  713.  
  714.     ####################################################################################
  715.     #
  716.     # Bowing...
  717.     #
  718.     ####################################################################################
  719.  
  720.  
  721.     Bladex.SetEventTableFunc("BOWING","ActionEnd",Actions.EndDrawBowEventHandler)
  722.     Bladex.SetEventTableFuncC("BOWING","FloorFail","FloorFail")
  723.     Bladex.SetEventTableFuncC("BOWING","FloorFailAd","FloorFailAd")
  724.     Bladex.SetEventTableFuncC("BOWING","SlipNeeded","SlipNeeded")
  725.  
  726.     Bladex.SetEventTableFunc("RELOADING","ActionEnd",Actions.EndReloadBowEventHandler)
  727.     Bladex.SetEventTableFuncC("RELOADING","FloorFail","FloorFail")
  728.     Bladex.SetEventTableFuncC("RELOADING","FloorFailAd","FloorFailAd")
  729.     Bladex.SetEventTableFuncC("RELOADING","SlipNeeded","SlipNeeded")
  730.  
  731.  
  732.  
  733.  
  734.     ####################################################################################
  735.     #
  736.     # Parry(2Handed) + Ataques + Esquivas
  737.     #
  738.     ####################################################################################
  739.  
  740.     Bladex.SetEventTableFuncC("PARRYING","SlipNeeded","SlipNeeded")
  741.  
  742.     Bladex.SetEventTableFuncC("PARRYING","FloorFail","FloorFail")
  743.     Bladex.SetEventTableFuncC("PARRYING","FloorFailAd","FloorFailAd")
  744.  
  745.     Bladex.SetEventTableFuncC("PARRYING","Walk","SS_GoForwards")
  746.     Bladex.SetEventTableFuncC("PARRYING","StopForwards","CS_GoForwards")
  747.     Bladex.SetEventTableFuncC("PARRYING","Back","SS_GoBackwards")
  748.     Bladex.SetEventTableFuncC("PARRYING","StopBackwards","CS_GoBackwards")    
  749.     Bladex.SetEventTableFuncC("PARRYING","Jog","SS_Jog")
  750.     Bladex.SetEventTableFuncC("PARRYING","StopJog","CS_Jog")
  751.     Bladex.SetEventTableFuncC("PARRYING","Sneak","SS_Sneak")
  752.     Bladex.SetEventTableFuncC("PARRYING","StopSneak","CS_Sneak")
  753.  
  754.     Bladex.SetEventTableFuncC("PARRYING","StartBlock","StartBlock")
  755.     Bladex.SetEventTableFuncC("PARRYING","StopBlock","StopBlock")
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.     Bladex.SetEventTableFunc("HURT","ActionStart",Actions.UnGraspString)
  763.     Bladex.SetEventTableFuncC("HURT","SlipNeeded","SlipNeeded")
  764.  
  765.     Bladex.SetEventTableFuncC("HURT","HurtFinalItp","NextMoveIfKey")
  766.     Bladex.SetEventTableFuncC("HURT","HitFinalItp","NextMoveIfKeyOrAttack")
  767.  
  768.  
  769.     Bladex.SetEventTableFuncC("HURT","FloorFail","FloorFail")
  770.     Bladex.SetEventTableFuncC("HURT","FloorFailAd","FloorFailAd")
  771.  
  772.     Bladex.SetEventTableFuncC("HURT","Walk","SS_GoForwards")
  773.     Bladex.SetEventTableFuncC("HURT","StopForwards","CS_GoForwards")
  774.     Bladex.SetEventTableFuncC("HURT","Back","SS_GoBackwards")
  775.     Bladex.SetEventTableFuncC("HURT","StopBackwards","CS_GoBackwards")    
  776.     Bladex.SetEventTableFuncC("HURT","Jog","SS_Jog")
  777.     Bladex.SetEventTableFuncC("HURT","StopJog","CS_Jog")
  778.     Bladex.SetEventTableFuncC("HURT","Sneak","SS_Sneak")
  779.     Bladex.SetEventTableFuncC("HURT","StopSneak","CS_Sneak")
  780.     Bladex.SetEventTableFuncC("HURT","StartBlock","StartBlock")
  781.     Bladex.SetEventTableFuncC("HURT","StopBlock","StopBlock")
  782.  
  783.  
  784.  
  785.  
  786.     ####################################################################################
  787.     #
  788.     # Attacking
  789.     #
  790.     ####################################################################################
  791.  
  792.     Bladex.SetEventTableFuncC("ATTACKING","SlipNeeded","SlipNeeded")
  793.     Bladex.SetEventTableFuncC("ATTACKING","HitFinalItp","LinkNextAttack")
  794.     Bladex.SetEventTableFuncC("ATTACKING","ActionEnd","EndOfAttack")
  795.     Bladex.SetEventTableFuncC("ATTACKING","FloorFail","FloorFail")
  796.     Bladex.SetEventTableFuncC("ATTACKING","FloorFailAd","FloorFailAd")
  797.     Bladex.SetEventTableFuncC("ATTACKING","Walk","SS_GoForwards")
  798.     Bladex.SetEventTableFuncC("ATTACKING","StopForwards","CS_GoForwards")
  799.     Bladex.SetEventTableFuncC("ATTACKING","Back","SS_GoBackwards")
  800.     Bladex.SetEventTableFuncC("ATTACKING","StopBackwards","CS_GoBackwards")    
  801.     Bladex.SetEventTableFuncC("ATTACKING","Jog","SS_Jog")
  802.     Bladex.SetEventTableFuncC("ATTACKING","StopJog","CS_Jog")
  803.     Bladex.SetEventTableFuncC("ATTACKING","Sneak","SS_Sneak")
  804.     Bladex.SetEventTableFuncC("ATTACKING","StopSneak","CS_Sneak")
  805.     Bladex.SetEventTableFunc("ATTACKING","TransitionEnded",Actions.BackUpEnemy)
  806.     Bladex.SetEventTableFunc("ATTACKING","Swap180",Actions.Swap180Handler)
  807.     #Bladex.SetEventTableFuncC("ATTACKING","StartBlock","StartBlock")
  808.     #Bladex.SetEventTableFuncC("ATTACKING","StopBlock","StopBlock")
  809.     Bladex.SetEventTableFuncC("ATTACKING","StartBlock","StartBlockAndChange")
  810.     Bladex.SetEventTableFuncC("ATTACKING","StopBlock","StopBlockAndChange")
  811.     Bladex.SetEventTableFuncC("ATTACKING","Interrupt","EndGenericAction")
  812.  
  813.     ####################################################################################
  814.  
  815.     Bladex.SetEventTableFuncC("ATTACKING_NOMOVE","SlipNeeded","SlipNeeded")
  816.     Bladex.SetEventTableFuncC("ATTACKING_NOMOVE","HitFinalItp","LinkNextAttack")
  817.     Bladex.SetEventTableFuncC("ATTACKING_NOMOVE","ActionEnd","EndOfAttack")
  818.     Bladex.SetEventTableFuncC("ATTACKING_NOMOVE","FloorFail","FloorFail")
  819.     Bladex.SetEventTableFuncC("ATTACKING_NOMOVE","FloorFailAd","FloorFailAd")
  820.     Bladex.SetEventTableFuncC("ATTACKING_NOMOVE","Jog","SS_Jog")
  821.     Bladex.SetEventTableFuncC("ATTACKING_NOMOVE","StopJog","CS_Jog")
  822.     Bladex.SetEventTableFuncC("ATTACKING_NOMOVE","Sneak","SS_Sneak")
  823.     Bladex.SetEventTableFuncC("ATTACKING_NOMOVE","StopSneak","CS_Sneak")
  824.     Bladex.SetEventTableFunc("ATTACKING_NOMOVE","TransitionEnded",Actions.BackUpEnemy)
  825.     Bladex.SetEventTableFunc("ATTACKING_NOMOVE","Swap180",Actions.Swap180Handler)
  826.     Bladex.SetEventTableFuncC("ATTACKING_NOMOVE","StartBlock","StartBlock")
  827.     Bladex.SetEventTableFuncC("ATTACKING_NOMOVE","StopBlock","StopBlock")
  828.     Bladex.SetEventTableFuncC("ATTACKING_NOMOVE","Interrupt","EndGenericAction")
  829.  
  830.     ####################################################################################
  831.  
  832.  
  833.     Bladex.SetEventTableFunc("DODGING","ActionStart",Actions.UnGraspString)
  834.     Bladex.SetEventTableFuncC("DODGING","SlipNeeded","SlipNeeded")
  835.     Bladex.SetEventTableFuncC("DODGING","HitFinalItp","LinkNextAttack")
  836.  
  837.     Bladex.SetEventTableFuncC("DODGING","FloorFail","FloorFail")
  838.     Bladex.SetEventTableFuncC("DODGING","FloorFailAd","FloorFailAd")
  839.  
  840.     Bladex.SetEventTableFuncC("DODGING","Walk","SS_GoForwards")
  841.     Bladex.SetEventTableFuncC("DODGING","StopForwards","CS_GoForwards")
  842.     Bladex.SetEventTableFuncC("DODGING","Back","SS_GoBackwards")
  843.     Bladex.SetEventTableFuncC("DODGING","StopBackwards","CS_GoBackwards")    
  844.     Bladex.SetEventTableFuncC("DODGING","Jog","SS_Jog")
  845.     Bladex.SetEventTableFuncC("DODGING","StopJog","CS_Jog")
  846.     Bladex.SetEventTableFuncC("DODGING","Sneak","SS_Sneak")
  847.     Bladex.SetEventTableFuncC("DODGING","StopSneak","CS_Sneak")
  848.  
  849.  
  850.     #Bladex.SetEventTableFuncC("DODGING","StartBlock","StartBlock")
  851.     #Bladex.SetEventTableFuncC("DODGING","StopBlock","StopBlock")
  852.     Bladex.SetEventTableFuncC("DODGING","StartBlock","StartBlockAndChange")
  853.     Bladex.SetEventTableFuncC("DODGING","StopBlock","StopBlockAndChange")
  854.  
  855.  
  856.     Bladex.SetEventTableFuncC("DODGING","TurnRight","TurnRight")
  857.     Bladex.SetEventTableFuncC("DODGING","TurnLeft","TurnLeft")
  858.  
  859.     Bladex.SetEventTableFuncC("DODGING","ActionEnd","EndOfAttack")
  860.     nowTime= time.time()
  861.     print "tables created ("+`nowTime-firstTime`+" seconds)"
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.