Drill Machine

Type: Assembly Brain
Level: not in gallery
Pages: various
Description: These brains make up the Drilling Machine assembly. It is made up out of the Astro Mining Machine and Astro Terrain Drill. If the drill touches terrain in front of it, then it will remove that terrain with effects.

Kode

Drilling Machine

  1. WHEN [interacted]
  2. …WHEN DO [power on]
  3. …WHEN DO [IWP: Drill Attachment][power on]
  4. …WHEN DO [deactivate brain][me]

Drill Attachment (attached to Drilling Machine with 3 logic cubes and a cone attached to it)

  1. WHEN [once]
  2. …WHEN DO [vectorvar:starting position][equals][position]
  3. …WHEN DO [numvar:terrain subtraction delay][equals][2]
  4. WHEN DO [roll][numvar:current roll speed]
  5. WHEN [has power]
  6. …WHEN [countdown timer][1]
  7. …/…WHEN [numvar:currentrollspeed][less than][25] DO [numvar:current roll speed][increment by][0.1]
  8. …/…WHEN [numvar:current roll speed][greater than or equal to][6]
  9. …/…/…WHEN [distance to][owner][less than 3] DO [move][at speed][0.1][with flying][with strafing] // extends the drill
  10. …/…/…/…WHEN [started to] DO [play sound][sound: Mechanical Servo Large Power On]
  11. …/…/…/…WHEN DO [play sound][sound:Mechanical Servo Large Active Loop][pitch][1]
  12. …/…/…/…WHEN [else] DO [power off]
  13. …/…WHEN [iwp:primitive cone][bump terrain] DO [play fx][fx:Alien Asteroid Drill Debris][offset][backward][multiplied by][5]
  14. …/…/…WHEN DO [play sound][sound: Elemental Earth Rumble Tremor Loop][everywhere]
  15. …/…/…WHEN [countdown timer][numvar: terrain subtraction delay][in frames][loop] DO [subtract terrain][cylinder][height][2][radius][2.5][position][iwp:Subtract Position 1 (logic cube)]
  16. …/…/…WHEN [countdown timer][numvar: terrain subtraction delay][in frames][loop] DO [subtract terrain][cylinder][height][2][radius][2.5][position][iwp:Subtract Position 2 (logic cube)]
  17. …/…/…WHEN [countdown timer][numvar: terrain subtraction delay][in frames][loop] DO [subtract terrain][cylinder][height][2][radius][2.5][position][iwp:Subtract Position 3 (logic cube)]
  18. …WHEN [else]
  19. …/…WHEN [countdown timer][1]
  20. …/…/…WHEN [moving]
  21. …/…/…/…WHEN [started to] DO [play sound][sound: Mechanical Servo Large Power On]
  22. …/…/…/…WHEN DO  [play sound][sound: Mechanical Servo Large Active Loop][pitch][-1]
  23. …/…/…WHEN [no longer][moving] DO [play sound][sound:Mechanical Servo Large Power Off]
  24. …/…/…WHEN DO [move][toward][vectorvar:starting position][at speed][0.1][with flying][with strafing][min distance][0]
  25. …/…WHEN [numvar: current roll speed][greater than][0] DO [numvar:current roll speed][decrement by][0.05]
  26. …/…/…WHEN [else]
  27. …/../…/…WHEN [not][moving] DO [activate brain][iwp: drilling machine]

 

 

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: