Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. scn F3NVDNightsScript
  2.  
  3. float fTimer
  4. float fQuestDelayTime
  5. short sDonce1
  6. short sDonce2
  7. float Time
  8.  
  9. Begin gamemode
  10.  
  11.  
  12. set Time to GetCurrentTime
  13.  
  14. If DNightsSwitch == 1 && player.getinworldspace WastelandNV == 1
  15.  
  16. SetQuestDelay F3NVDarkN 0.01
  17.  
  18. if ( Time >= 0.00 && Time < 1.00 )
  19.  
  20. If ( sDonce1 == 0 )
  21.  
  22. if NightSetting == 1 && IsImageSpaceActive F3NVISN2 == 0
  23.  
  24. imod F3NVISN2FadeIn
  25.  
  26. elseif NightSetting == 2 && IsImageSpaceActive F3NVISN3 == 0
  27.  
  28. imod F3NVISN3FadeIn
  29.  
  30. elseif NightSetting == 3 && IsImageSpaceActive F3NVISN4 == 0
  31.  
  32. imod F3NVISN4FadeIn
  33.  
  34. endif
  35.  
  36. set fTimer to 48
  37. set sDonce1 to 1
  38. set sDonce2 to 0
  39.  
  40. endif
  41.  
  42. if ( fTimer > 0 )
  43.  
  44. set fTimer to fTimer - getSecondsPassed
  45.  
  46. else
  47.  
  48. if NightSetting == 1 && IsImageSpaceActive F3NVISN2 == 0
  49.  
  50. rimod F3NVISN3
  51. rimod F3NVISN4
  52. imod F3NVISN2
  53.  
  54. elseif NightSetting == 2 && IsImageSpaceActive F3NVISN3 == 0
  55.  
  56. rimod F3NVISN2
  57. rimod F3NVISN4
  58. imod F3NVISN3
  59.  
  60. elseif NightSetting == 3 && IsImageSpaceActive F3NVISN4 == 0
  61.  
  62. rimod F3NVISN2
  63. rimod F3NVISN3
  64. imod F3NVISN4
  65.  
  66. endif
  67.  
  68. endif
  69.  
  70. elseif ( Time >= 1.00 && Time < 5.00 )
  71.  
  72.  
  73. if NightSetting == 1 && IsImageSpaceActive F3NVISN2 == 0
  74.  
  75. rimod F3NVISN3
  76. rimod F3NVISN4
  77. imod F3NVISN2
  78.  
  79. elseif NightSetting == 2 && IsImageSpaceActive F3NVISN3 == 0
  80.  
  81. rimod F3NVISN2
  82. rimod F3NVISN4
  83. imod F3NVISN3
  84.  
  85. elseif NightSetting == 3 && IsImageSpaceActive F3NVISN4 == 0
  86.  
  87. rimod F3NVISN2
  88. rimod F3NVISN3
  89. imod F3NVISN4
  90.  
  91. endif
  92.  
  93. set sDonce1 to 1
  94. set sDonce2 to 0
  95.  
  96. endif
  97.  
  98. endif
  99.  
  100. If DNightsSwitch == 1 && player.getinworldspace WastelandNV == 1
  101.  
  102.  
  103. if ( Time >= 6.00 && Time < 23.59 )
  104.  
  105. rimod F3NVISN2
  106. rimod F3NVISN3
  107. rimod F3NVISN4
  108.  
  109. set sDonce2 to 1
  110. set sDonce1 to 0
  111.  
  112. elseif ( Time >= 5.00 && Time < 23.59 )
  113.  
  114. If ( sDonce2 == 0 )
  115.  
  116.  
  117. if NightSetting == 1 && IsImageSpaceActive F3NVISN2 == 1
  118.  
  119. rimod F3NVISN2
  120. imod F3NVISN2FadeOut
  121.  
  122. elseif NightSetting == 2 && IsImageSpaceActive F3NVISN3 == 1
  123.  
  124.  
  125. rimod F3NVISN3
  126. imod F3NVISN3FadeOut
  127.  
  128. elseif NightSetting == 3 && IsImageSpaceActive F3NVISN4 == 1
  129.  
  130.  
  131. rimod F3NVISN4
  132. imod F3NVISN4FadeOut
  133.  
  134. endif
  135.  
  136. SetQuestDelay F3NVDarkN 0
  137. set sDonce2 to 1
  138. set sDonce1 to 0
  139.  
  140. endif
  141.  
  142. endif
  143.  
  144. endif
  145.  
  146. If ( DNightsSwitch == 0 )
  147.  
  148. SetQuestDelay F3NVDarkN 0
  149. rimod F3NVISN2
  150. rimod F3NVISN3
  151. rimod F3NVISN4
  152.  
  153. set sDonce2 to 0
  154. set sDonce1 to 0
  155.  
  156.  
  157. endif
  158.  
  159. If player.getinworldspace WastelandNV == 0
  160.  
  161. SetQuestDelay F3NVDarkN 0
  162. rimod F3NVISN2
  163. rimod F3NVISN3
  164. rimod F3NVISN4
  165.  
  166.  
  167. endif
  168.  
  169.  
  170. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement