Head.gd 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. extends Listenable
  2. var first_mono_done = false
  3. onready var stabody = $"Spatial/Head"
  4. onready var clock = find_parent("MAIN").find_node("Clock")
  5. var monologue1 = [
  6. "\"...oh, really?\" he said",
  7. "and it was that moment",
  8. "when Konk finally realised",
  9. "that for his dreams",
  10. "to come true",
  11. "all of this bs",
  12. "was completely unnecessary",
  13. "...",
  14. "ladies n gentlemen",
  15. "my neuromorphic overheated",
  16. "give me a sec",
  17. ]
  18. var piece1 = [
  19. "\"gorgeously flying nuke\"",
  20. "read the fuselage sign",
  21. "sound of engines",
  22. "ripped ears apart",
  23. "\"are we still fertile?\"",
  24. "asked the boy",
  25. "\"idk\"",
  26. "\"more importantly\"",
  27. "\"build quality is crap\"",
  28. "\"can crash anytime\"",
  29. "\"right on us\"",
  30. "\"better go in subway\"",
  31. ]
  32. var piece2 = [ #TODO: now that i think of it. Guests can provide interpretations and comments"
  33. "\"John, please\"",
  34. "\"stop poking people\"",
  35. "\"with your magic wand\"",
  36. "\"better go to elevator\"",
  37. "\"with me\"",
  38. "she said",
  39. "\"but...but...\"",
  40. "\"they are so pokey!\"",
  41. "\"can't stop!\"",
  42. "...",
  43. "\"that was president, John!\"",
  44. "\"don't leave him as a bat!\"",
  45. "accountant chorus:",
  46. "\"that's totally fine!\"",
  47. "\"leave him to us!\"",
  48. ]
  49. var piece3 = [
  50. "her eyes were swampy green",
  51. "surrounded by lack of sleep",
  52. "and when she talked to me",
  53. "i knew",
  54. "she just wants",
  55. "the work done",
  56. ]
  57. var piece4 = [
  58. "mirrored in the water",
  59. "there was a glowing spire",
  60. "distoring space and time",
  61. "\"idk what he is doing\"",
  62. "\"galaxy is big enough\"",
  63. "\"also\"",
  64. "\"why on a planet?\"",
  65. "but apparently",
  66. "HellSmith34",
  67. "thought otherwise",
  68. ]
  69. var schedule = [
  70. "piece1",
  71. "piece2",
  72. "piece3",
  73. "piece4",
  74. ]
  75. func _set_noninteractable():
  76. stabody.set_collision_layer_bit(2,false)
  77. func _set_interactable():
  78. stabody.set_collision_layer_bit(2,true)
  79. func root():
  80. if not first_mono_done:
  81. run_buffer("monologue1")
  82. chat.connect("buffer_ended",self,"mono1_end")
  83. else:
  84. run_buffer(schedule[clock.hour])
  85. func run_buffer(buffer):
  86. chat.buffer = get(buffer)
  87. chat.read_buffer()
  88. func mono1_end():
  89. print ("signal received")
  90. find_parent("MAIN").find_node("SECURITY",true).go_for_donut()
  91. first_mono_done = true
  92. _set_noninteractable() #Security.gd will switch it back when he is done