Laser Cannon

Type: Prop Brain
Level: not in gallery
Pages: 1
Description: This brain is found in the Laser Cannon prop. Creates a firing effect when equipped.

Kode

  1. WHEN [once] DO [team][equals][team 1]
  2. WHEN [owner][shooting]
  3. …WHEN [started to] DO [play fx][fx: Muzzle Flash -Laser Rifle][at socket][fire point][scale][1.5][overlapping]
  4. WHEN [not][ equipped]
  5. …WHEN [started to]
  6. …/…WHEN DO [objvar:my enemy][equals][nothing]
  7. …/…WHEN DO [boolvar:firing][equals][false]
  8. …WHEN DO [right][y][equals][0]
  9. …WHEN [objvar:my enemy][equal to][nothing]
  10. …/…WHEN [enemies][objects closer than][15] DO [objvar:my enemy][equals][it]
  11. …/…WHEN [else]
  12. …/…/…WHEN DO [yaw][15][toward][objvar:my enemy][center]
  13. …/…/…WHEN [not][boolvar:firing]
  14. …/…/…/…WHEN [distance to][objvar:my enemy][greater than or equal to][15] DO [objvar:my enemy][equals][nothing]
  15. …/…/…/…WHEN [countdown timer][#pause attack][loop]
  16. …/…/…/…/…WHEN [started to] Do [#pause attack][equals][random number][2.5][to][3.5]
  17. …/…/…/…/…/…WHEN DO [boolvar:firing][equals][true]
  18. …/…/…WHEN [boolvar:firing]
  19. …/…/…/…WHEN [duration timer][1.5] DO [play fx][fx:Laser Cannon Muzzle Fire][at socket][fire point]
  20. …/…/…/…/…WHEN DO [play sound][sound: Weapon Laser Cannon Fire]
  21. …/…/…/…WHEN [countdown timer][1.5]
  22. …/…/…/…/…WHEN [started to] DO [shoot][in direction][forward][with damage][shoot damage][at speed][30][launch frequency][1][disallow friendly fire][unblockable]
  23. …/…/…/../…/…WHEN DO [play fx][fx:Muzzle Flash – Laser Rifle][at socket][fire point][scale][1.5]
  24. …/…/…/../…/…WHEN DO [boolvar:firing][equals][false]

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: