3rd Person – Glide Fighter

Type: Player Brain
Level: 3 star
Pages: 1
Description: A rather inefficient flight mechanic that allows your player to fly very short distances while falling towards the ground with his arm outstretched like Superman. Requires player to jump twice and hold the A button to maintain flight. Flight lasts a couple of seconds at most.

  1. WHEN [once] DO [team][equals][team 1]

    Set up situations when you can glide

  2. …WHEN DO [multi jump count][equals][2]
  3. WHEN DO [allow quick turn][equals][not][boolvar:gliding]
  4. WHEN [started to][not][(][on ground][or][swimming][)] DO [boolvar:can glide][equals][true]

    Camera settings

  5. WHEN DO [follow camera][deadzone][0.3][ignore prop collision][transition easing][ease between]
  6. WHEN DO [display meter][health][screen top left]

    Button press to activate gliding

  7. WHEN [button A][pressed]
  8. …WHEN [not][(][jumping][or][falling][or][flying][)] DO [jump]
  9. …/…WHEN [else]
  10. …/…/…WHEN [boolvar:can glide] DO [boolvar: gliding][equals][true]

    Gliding mechanic

  11. WHEN [boolvar: gliding]
  12. …WHEN [started to]
  13. …/…WHEN DO [jump]1.8]
  14. …WHEN DO [boolvar:can glide][equals][false]
  15. …WHEN [raycast hit][direction][world down][length][1.2] DO [boolvar:fall][equals][true]
  16. …WHEN [button:A][released] DO [boolvar:fall][equals][true]
  17. …WHEN [countdown timer][2] DO [boolvar: fall][equals][true]
  18. …WHEN [not][boolvar: fall]
  19. …/…WHEN [countdown timer][6][in frames]
  20. …/…/…WHEN [started to] DO [velocity][equals][velocity][multiplied by][0.7]
  21. …/…/…WHEN [left stick] DO [vectorvar:stick direction][equals][left stick]
  22. …/…/…/…WHEN DO [vectorvar:stick direction][equals] [vectorvar:stick direction][from camera space]
  23. …/…/…/…WHEN DO [ [vectorvar:stick direction][y][equals][forward][y]
  24. …/…/…/…WHEN DO [move][at speed][1.5][in direction] [vectorvar:stick direction][with flying]
  25. …/…/…WHEN DO [move][at speed][0.5][in direction][world down][with flying]
  26. …WHEN [else][left stick] DO [move]
  27. WHEN [boolvar:fall]
  28. …WHEN DO [boolvar:gliding][equals][false]
  29. …WHEN DO [fall]
  30. …WHEN DO [boolvar:fall][equals][false]

    Firing and combat

  31. WHEN [button:X][pressed] DO [attack][light][heavy]
  32. WHEN [button:Y]
  33. …WHEN [objvar:equipped projectile] DO [throw][objvar:equipped projectile]
  34. …/…WHEN [else] DO [shoot]

    Standard interaction kode

  35. WHEN [detect][interactable][objects in front]
  36. …WHEN DO[highlight it yellow]
  37. …WHEN [is using keyboard] DO [display][middle mouse button][ above ][ it]
  38. …WHEN[using controller][or][is using touch] DO [display][icon:B][above] [it]
  39. …WHEN [button B][pressed] DO [interact]
  40. …WHEN [else]
  41. …/…WHEN [button B][pressed] DO [dodge][with strafing][invulnerable]
Advertisement

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: