Melee Weapon – Shockwave

Type: Weapon Brain
Level: 2 star
Pages: 1
Description: When a weapo with this brain is equipped the weapon glows with an effect. When the player attacks there is a random 50% chance that they will hit with a shockwave effect which will damage all enemies with 5 metres by 8 health points.

Kode

  1. WHEN DO [highlight][green][strength][1.5]
  2. WHEN DO [play fx][Charge up B][scale][0.4][at socket][center][volume][10]
  3. WHEN [not][equipped]
  4. …WHEN [interacted] DO [it][equip][me]

    Set up attack

  5. WHEN [equipped]
  6. …WHEN [for each of][owner][attack hit][light][or][owner][attack hit][or][owner][attack hit][heavy]
  7. …/…WHEN [for each of][them][owner][enemies]
  8. …/…/…WHEN [started to] DO [numvar:chance to hit][equals][random number][as integer][1][to][2]

    The shockwave effect

  9. …/…/…WHEN [numvar: chance to hit][equal to][1]
  10. …/…/…/…WHEN DO [shockwave]
  11. …/…/…/…WHEN DO [play sound][sound:Impact Wall Stone Destroyed][overlapping]
  12. …/…/…/…WHEN DO [play fx][fx:Stone Explosion][at position][it][position][scale][0.5]
  13. …/…/…/…WHEN [for each of][owner][enemies][objects closer than][5] DO [damage][it][8]
  14. …/…/…/…WHEN [else] DO [play fx:][fx: Stone Explosion][at position][it][position][scale][0.25]
  15. …/…/…/…/…WHEN DO [play sound][sound: Material Rock Destroyed][overlapping]

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: