KO:VIR Rebel Advanced

Type: Character Brain
Level: not in gallery
Pages: 2
Description:  As found in the KO:VIR Rebel Advanced assembly. This is an enemy character brain. The enemy has a teleporting, martial art somersault kick , and sword throwing ability.

Kode

page 1 @Combat Logic

  1. WHEN [once] DO [team][equals][team 2]
  2. …WHEN DO [objvar:my weapon][equals][equip][prop:KO VIR Laser sword]
  3. …WHEN DO [boolvar:throw ability active][equals][false]
  4. WHEN [enemies[objects closer then][20]
  5. …WHEN [countdown timer][1][loop] DO [objvar:my enemy][equals][it]
  6. WHEN [not][my enemy][is dead] DO [move][toward][objvar:my enemy][min distance][2]
  7. …WHEN [not][boolvar:throw ability active]
  8. …/…WHEN [countdown timer][#pause attack][loop]
  9. …/…/…WHEN [distance to][objbvar:my enemy][less than or equal to][3]
  10. …/…/…/…WHEN DO [attack][objvar:my enemy][light][end combo]
  11. …/…/…/…WHEN [else][distance to][my enemy][greater than][6]
  12. …/…/…/…/…WHEN [started to] DO [boolvar:throw ability active][equals][true]
  13. …/…/…/WHEN DO [#pause attack][equals][random number][1.5][to][3]
  14. WHEN [boolvar:throw ability active] DO [call page][page:@Ability Logic]
  15. WHEN [no longer][attacking] DO [dodge][in direction][backward][distance][6][invulnerable][with strafing]
  16. WHEN [my enemy][not equal to][nothing] DO [objvar:my weapon][power on]
  17. …WHEN [else] DO [objvar:my weapon][power off]
  18. WHEN [dodging] DO [visible][equals][false]
  19. …WHEN [started to] DO [play fx][fx:Death Impact][at position][center][overlapping]
  20. …/…WHEN DO [play sound][Magic Teleport Diamond][overlapping]
  21. …WHEN DO [objvar:my weapon][visible][equals][false]
  22. …WHEN [else] DO [visible][equals][true]
  23. …/…WHEN [started to] DO [play fx][fx:Death impact][at position][center][overlapping]
  24. …/…/…WHEN DO [play sound][Magic Teleport Diamond][overlapping]
  25. …/…WHEN DO [objvar:my weapon][visible][equals][true]
  26. WHEN [attacking] DO [hit reaction][equals][2]
  27. …WHEN [else] DO [hit reaction][equals][0.5]

page 2 @Ability Logic

  1. WHEN [started to]
  2. …WHEN DO [boolvar:end throw][equals][false]
  3. …WHEN DO [objvar:my weapon][cillidable][equals][false]
  4. …WHEN DO [vectorvar:target position][equals][objvar:my enemy][center]
  5. …WHEN [objvar:my enemy][equals to][nothing] DO [shoot][objvar:my weapon][with windup][in direction][toward][with damage][0][at speed][12][bounce on impact][disallow friendly fire]
  6. …/…WHEN [else] DO [shoot][objvar:my weapon][with windup][t][vectorvar:target position][with damage][0][at speed][12][bounce on impact][disallow friendly fire]
  7. WHEN [objvar:my weapon][is projectile]
  8. …WHEN [started to] DO [objvar:my weapon][deactivate brain]
  9. …/…WHEN DO [boolvar:weapon thrown][equals][true]
  10. …WHEN [enemies][objects closer than][(][objvar:My weapon][height][multiplied by][2.5][)][from][objvar:my weapon] DO [damage][them][heavy damage][cooldown][1]
  11. …/…WHEN DO [boolvar:end throw][equals][true]
  12. …WHEN [raycast hot][9][all visible objects][minus][me][minus][objvar:my weapon][minus][attachments][minus][equipment][minus][enemies][minus][allies][)][from][objvar:my weapon][direction][objvar:my weapon][up][length][objvar:my weapon][height][multiplied by][1.35]
  13. …/…WHEN DO [boolvar:end throw][equals][true]
  14. …WHEN DO [objvar:my weapon][up][equals][objvar:my weapon][velocity]
  15. …WHEN DO [objvar:my weapon][yaw][40]
  16. …WHEN DO [play fx][fx:Energy Projectile][at position][objvar: my weapon]
  17. …WHEN DO [objvar:my weapon][collidable][equals][true]
  18. WHEN [countdown timer][1.5] DO [boolvar:end throw][equals][true]
  19. WHEN [boolvar:end throw] DO [play fx:][fx:Death impact][at position][center][scale][1.2][overlapping]
  20. …WHEN DO [play sound][sound:Magic Teleport Diamond][overlapping]
  21. …WHEN DO [play fx][fx:Death Impact][at position][objvar:my weapon][center][scale][1.2][overlapping]
  22. …WHEN DO [objvar:my weapon][collidable][equals][false]
  23. …WHEN DO [objvar:my weapon][velocity][equals][zero]
  24. …WHEN DO [position][equals][objvar:my weapon][position]
  25. …WHEN DO [velocity][equals][zero]
  26. …WHEN [countdown timer][1][in frames]
  27. …/….WHEN DO [equip][objvar:my weapon]
  28. …/…WHEN DO [objvar:my weapon][collidable][equals][true]
  29. …/…WHEN DO [objvar:my weapon][activate brain]
  30. …/…WHEN DO [boolvar:end throw][equals][false]
  31. WHEN [no longer][boolvar:end throw] DO [boolvar:throw ability active][equals][false]

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: