Enemy – Enrage

Type: Enemy brain
Level: not in gallery
Pages: 2
Description: Found in the Troll Character model. This enemy character will melee the player. After 7 seconds of detecting the player the troll will become enraged and will increase in size and launch a heavy attack. After 7 seconds of this they will shrink and return to melee.

Kode

page 1 Normal Behavior

  1. WHEN [once]
  2. …WHEN DO [team][equals][team 2]
  3. …WHEN DO [#original scale][equals][scale]
  4. …WHEN DO [equip][prop:Bone Cudgel]
  5. WHEN [once][is dead] DO [unequip]
  6. WHEN [until][scale][less than or equal to][#original scale] DO [scale][decrement by][0.05]
  7. WHEN [enemies][nearest object][or][player][neutrals][nearest object][or][hit by attack][enemies] DO [objvar:my enemy][equals][it]
  8. WHEN [distance to][objvar:my enemy][less than][20][and][distance to][objvar:my enemy][greater than or equal to][3]
  9. …WHEN DO [move][toward][objvar:my enemy]
  10. WHEN [is ally with][objvar:my enemy] DO [objvar:my enemy][equals][nothing]
  11. WHEN [objvar:my enemy]
  12. …WHEN [started to][countdown timer][7] DO [boolvar:enrage][equals][true]
  13. WHEN [distance to][objvar:my enemy][less than][3]
  14. …WHEN [boolvar:enrage][and][not][attacking] DO [switch page][page:@Enraged Behavior]
  15. …WHEN [countdown timer][#pauseattack][loop]
  16. …/….WHEN DO [toggle][boolvar:attack light]
  17. …/…WHEN [boolvar:attack light] DO [attack][objvar:target][light][with windup][end combo]
  18. …/…/…WHEN [else] DO [attack][objvar:target][with windup][end combo]
  19. …/…WHEN DO [#pause attack][equals][random number][0.5][to][1]

page 2 @Enraged Behavior

  1. WHEN [page enetered] DO [boolvar:enrage][equals][false]
  2. WHEN [once][is dead] DO [unequip]
  3. WHEN DO [highlight][red]
  4. WHEN [duration timer] DO [camera shake][strength]15]
  5. WHEN [until][scale][greater than or equal to][original scale][multiplied by][2] DO [scale][increment by][0.05]
  6. WHEN [after][scale][greater than or equal to][#original scale][multiplied by][2]
  7. …WHEN DO [move][toward][objvar:my enemy]
  8. …WHEN DO [attack][objvar:my enemy][heavy][with windup][end combo]
  9. …WHEN [attacking][heavy] DO [play fx][fx:Projectil trail][at socket][right hand]
  10. …WHEN [countdown timer][7]
  11. …/….WHEN [not][attacking]
  12. …/…/…WHEN DO [switch page][page:@ Normal Behavior]

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: