euwinpro

HUD delay by Hjid - script

Sep 22nd, 2021 (edited)
21
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var v_first
  2.  
  3. fileManager.fileExists vars/first -> v_first
  4.  
  5. if v_arg1 == first
  6. hudBuilder.setActiveObject NotVSSZoom VssUnzoomButton
  7. hudBuilder.setNodePos -1 -1
  8. hudBuilder.setActiveObject VSSFirst FirstButton
  9. hudBuilder.setNodeShowVariable DemoRecInterfaceShow
  10. game.sayAll first
  11. game.sayAll v_first
  12. if v_first == 0
  13. fileManager.copyFile vars/v vars/first
  14. endif
  15. endif
  16.  
  17. if v_arg1 == second
  18. hudBuilder.setActiveObject VSSFirst FirstButton
  19. hudBuilder.setNodePos -1000 -1000
  20. hudBuilder.setActiveObject VSSSecond SecondButton
  21. hudBuilder.setNodePos -1000 -1000
  22.  
  23. game.sayAll second
  24. game.sayAll v_first
  25.  
  26. if v_first == 0
  27. game.sayAll delayEnd
  28. endif
  29. if v_first == 1
  30. hudBuilder.setActiveObject VSSZoom VssResetButton
  31. hudBuilder.setNodePos -1 -1
  32. endif
  33. endif
  34.  
  35. if v_arg1 == reset
  36.  
  37. game.sayAll reset
  38. game.sayAll v_first
  39. if v_first == 1
  40. fileManager.deleteFile vars/first
  41. endif
  42.  
  43. hudBuilder.setActiveObject VSSFirst FirstButton
  44. hudBuilder.setNodePos -1 -1
  45. hudBuilder.setActiveObject VSSSecond SecondButton
  46. hudBuilder.setNodePos -1 -1
  47. hudBuilder.setActiveObject VSSZoom VssResetButton
  48. hudBuilder.setNodePos -1000 -1000
  49. endif
  50.  
  51. if v_arg1 == unzoom
  52. hudBuilder.setActiveObject VSSFirst FirstButton
  53. hudBuilder.setNodeShowVariable ShowIngameHud
  54. hudBuilder.setNodePos -1000 -1000
  55. rem hudBuilder.setNodePos -1 -1
  56. hudBuilder.setActiveObject VSSSecond SecondButton
  57. hudBuilder.setNodeShowVariable ShowIngameHud
  58. hudBuilder.setNodePos -1000 -1000
  59. rem hudBuilder.setNodePos -1 -1
  60.  
  61. hudBuilder.setActiveObject VSSZoom VssResetButton
  62. hudBuilder.setNodePos -1000 -1000
  63. rem hudBuilder.setNodePos -1 -1
  64.  
  65. hudBuilder.setActiveObject NotVSSZoom VssUnzoomButton
  66. hudBuilder.setNodePos -1000 -1000
  67. hudBuilder.setActiveObject VSSZoom VssZoomButton
  68. hudBuilder.setNodePos -1 -1
  69.  
  70. fileManager.copyFile vars/v vars/first
  71.  
  72. game.sayAll unzoom
  73. game.sayAll finish
  74.  
  75. endif
  76.  
  77. if v_arg1 == zoom
  78. game.sayAll zoom
  79.  
  80. hudBuilder.setActiveObject NotVSSZoom VssUnzoomButton
  81. hudBuilder.setNodePos -1 -1
  82. hudBuilder.setActiveObject VSSZoom VssZoomButton
  83. hudBuilder.setNodePos -1000 -1000
  84.  
  85. hudBuilder.setActiveObject VSSFirst FirstButton
  86. rem hudBuilder.setNodeShowVariable ShowIngameHud
  87. hudBuilder.setNodePos -1 -1
  88. hudBuilder.setActiveObject VSSSecond SecondButton
  89. rem hudBuilder.setNodeShowVariable ShowIngameHud
  90. hudBuilder.setNodePos -1 -1
  91.  
  92. hudBuilder.setActiveObject VSSZoom VssResetButton
  93. hudBuilder.setNodePos -1000 -1000
  94. endif
RAW Paste Data