Bombard Cannon

Type: Weapon Brain
Level: not in gallery
Pages: 3
Description: An adjustable mounted weapon that fires cannonballs that explode and make craters. This comes as part of the Bombard Cannon Assembly. There are other brains required for this assembly, including a camera gizmo and the cannon base.


page 1 @Interacted – Mount Cannon

  1. WHEN [once]
  2. …WHEN DO [team][equals][team 1]
  3. …WHEN DO [vectorvar:offset][equals][world up][multiplied by][1.5]
  4. WHEN [countdown timer][1]
  5. …WHEN [interacted] DO [objvar:player][equals][it]
  6. …/…WHEN DO [deactivate brain][objvar:player] // turns the brain off on the player so they are now seeing as the cannon
  7. …/…WHEN DO [power off]
  8. …/…WHEN DO [pick up][objvar:player]
  9. …/…WHEN DO [switch page][page:@Cannon Controls]

page 2 @Cannon Controls

  1. WHEN [angle between][forward][world up][greater than][10[
  2. …WHEN [right stick][y][greater than][0.5] DO [pitch][right stick][multiplied by][0.07]
  3. WHEN [angle between][forward][world up][less than][95]
  4. …WHEN [right stick][y][less than][-0.5] DO [pitch][right stick][multiplied by][0.07]
  5. WHEN [right stick][x][greater than][0.5][or][right stick][x][less than]-0.5]
  6. …WHEN DO [IWP:Cannon base][yaw][right stick][multiplied by][0.2]
  7. WHEN DO [display meter][IWP:Cannon base][health][screen top left]
  8. WHEN [control:B][pressed][or][control E][pressed][or][owner][is dead]
  9. …WHEN DO [drop][objvar:player][at][position][plus][backward][multiplied by][2]
  10. …WHEN DO [objvar:player][up][equals][world up]
  11. …WHEN DO [activate brain][objvar:player]
  12. …WHEN DO [switch page][page:@interacted – Mount Cannon]
  13. WHEN [has power]
  14. …WHEN [right trigger][or][control:X] DO [call page][page:@Fire Cannon]
  15. …WHEN [else][countdown timer][1.5] DO [power on]
  16. WHEN [is using controller] DO [display][icon:B][screen bottom left]
  17. …WHEN DO [display][text:Dismount][large font][screen bottom left]
  18. …WHEN DO [display][icon:right trigger][screen bottom right]
  19. …WHEN DO [display][text:Fire][large font][screen bottom right]
  20. WHEN [is using keyboard] DO [display][icon:middle mouse button][screen bottom left]
  21. …WHEN DO [display][text:Dismount][large font][screen bottom left]
  22. …WHEN DO [display][icon:left mouse button][screen bottom right]
  23. …WHEN DO [display][text:Fire][large font][screen bottomright]

page 3 @Fire Cannon

  1. WHEN DO [shoot][with gravity][without targeting][at speed][50]
  2. …WHEN DO [play fx][fx:Muzzle Blast][at socket][fire point]
  3. …WHEN DO [play sound][sound:Weapon artillery Fire][pitch][random number][negative][2][to][2][as integer][overlapping]
  4. …WHEN DO [play sound][sound:Explosion Fire Small][volume][60][overlapping]
  5. …WHEN DO [camera shake][strength][5][duration][0.4]
  6. …WHEN DO [vibrate][at spped][1][duration][0.25]
  7. …WHEN DO [power off]

Cannon Base

  1. WHEN [once] DO [team][equals][team 1]
  2. …WHEN DO [vectorvar:offset][equals][world up][multiplied by][1.5]
  3. WHEN [IWP:Bombard Cannon][inventory][count][equal to][0][and][is dead] DO [destroy after death][equals][true] // this will destroy the base with the cannon

Camera Gizmo (attached)

  1. WHEN [IWP:Bombard Cannon][inventory][count][not equal to][0] DO [1st person camera][without controls] // this camera activates once the player is picked up by the cannon (see line 8 on page 1 of the cannon)

Comments are closed.

Website Powered by

Up ↑

%d bloggers like this: