GraceCB

Untitled

Dec 15th, 2021
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | None | 0 0
  1. scn NVDLC01VillaTravelTriggerScript
  2. ; JSH
  3. ; Knocks the player out and transports him to the Villa.
  4.  
  5. ;CES 10/18/10
  6. ;Fine tuning and polishing the gassing part of the script
  7.  
  8.  
  9. short StartUp ;1= Player has tripped the trigger zone
  10. short EndStartUp
  11. float TimerA
  12. float TimerB
  13. float TimerC
  14. float TimerD
  15. float TimerE
  16. float TimerZ ;Added for first timer to trigger player teleportation
  17.  
  18. short bTimerZDone
  19.  
  20. BEGIN OnTrigger player
  21.  
  22. ; Complete NVDLC01MQ00 and get the player set up to be knocked out.
  23. if (StartUp == 0) && (GetStageDone NVDLC01MQ00 10 == 1)
  24.  
  25. if (VNPCFollowers.bBooneHired == 1)
  26. ;set CraigBooneRef.Waiting to 1
  27. elseif (VNPCFollowers.ArcadeHired == 1)
  28. ;set ArcadeRef.Waiting to 1
  29. elseif (VNPCFollowers.RaulHired == 1)
  30. ;set RaulRef.Waiting to 1
  31. elseif (VNPCFollowers.bVeronicaHired == 1)
  32. ;set VeronicaRef.Waiting to 1
  33. elseif (VNPCFollowers.bLilyHired == 1)
  34. ;set LilyRef.Waiting to 1
  35. elseif (VNPCFollowers.bCassHired == 1)
  36. ;set RoseOfSharonCassidyRef.Waiting to 1
  37. endif
  38.  
  39. if (VNPCFollowers.RexHired == 1)
  40. ;set RexRef.Waiting to 1
  41. elseif (VNPCFollowers.bEdEHired == 1)
  42. ;set EDE1Ref.Waiting to 1
  43. ;set EDE2Ref.Waiting to 1
  44. ;set EDE3Ref.Waiting to 1
  45. endif
  46.  
  47. SetObjectiveCompleted NVDLC01MQ00 10 1
  48. SetStage NVDLC01MQ00 100
  49. DisablePlayerControls 1 1 1 1 1 1 1
  50. Set TimerA to 1
  51. Set TimerA to .2
  52. Set StartUp to 1
  53. ApplyImageSpaceModifier ExplosionInFace
  54.  
  55. PlaySound QSTNVDLC01OpeningStinger
  56. PlaySound QSTDLCTrap
  57.  
  58. endif
  59.  
  60. END
  61.  
  62.  
  63. BEGIN GameMode
  64.  
  65. ; Player gets gassed.
  66.  
  67. if ( StartUp == 1 )
  68.  
  69. if ( TimerZ > 0 ) && (bTimerZDone== 0)
  70. Set TimerZ to ( TimerZ - GetSecondsPassed )
  71. else
  72. set bTimerZDone to 1
  73. Player.Moveto NVDLC01PlayerGasMarker
  74. endif
  75.  
  76. if ( TimerA > 0 )
  77. Set TimerA to ( TimerA - GetSecondsPassed )
  78. else
  79. player.AddScriptPackage NVDLC01PlayerKnockedOut
  80. PipboyRadioOff
  81. Set TimerB to 2
  82. Set StartUp to 2
  83. endif
  84. endif
  85.  
  86. ; Player hits the ground, dazed.
  87.  
  88. if ( StartUp == 2 )
  89. if ( TimerB > 0 )
  90. Set TimerB to ( TimerB - GetSecondsPassed )
  91. ;BeginFX
  92. FXSprayJet0101Ref.enable
  93. FXSprayJet0102Ref.enable
  94. FXSprayJet0103Ref.enable
  95. FXSprayJet0104Ref.enable
  96. ;EndFX
  97. else
  98. Set TimerC to 8
  99. Set StartUp to 3
  100. endif
  101. endif
  102.  
  103. ; Player slowly passes out.
  104.  
  105. if ( StartUp == 3 )
  106. if ( TimerC > 0 )
  107. Set TimerC to ( TimerC - GetSecondsPassed )
  108. else
  109.  
  110. StartQuest NVDLC01NewVegasFollowerFireQuest;
  111. if GetINIFloat "CustomSettings:sEquipmentRemoval" "DMT Config.ini" == 1
  112. player.RemoveAllItems NVDLC01PlayerEquipmentContainerRef
  113. endif
  114. imod FadeToBlackPermanent
  115. Set TimerC to 5
  116. Set StartUp to 4
  117. endif
  118. endif
  119.  
  120. ; Player wakes up.
  121. if ( StartUp == 4 )
  122. if ( TimerC > 0 )
  123. Set TimerC to ( TimerC - GetSecondsPassed )
  124. else
  125. StartQuest NVDLC01Intro
  126. Set TimerE to 5
  127. Set StartUp to 5
  128. endif
  129. endif
  130.  
  131. if ( StartUp == 5 )
  132. if ( TimerC > 0 )
  133. Set TimerC to ( TimerC - GetSecondsPassed )
  134. else
  135. Player.RemoveScriptPackage
  136. Set StartUp to 6
  137. ;EnablePlayerControls
  138. ;DisableFX
  139. FXSprayJet0101Ref.disable
  140. FXSprayJet0102Ref.disable
  141. FXSprayJet0103Ref.disable
  142. FXSprayJet0104Ref.disable
  143. ;DisableFX
  144. endif
  145. endif
  146.  
  147.  
  148. END
  149.  
  150.  
Advertisement
Add Comment
Please, Sign In to add comment