GraceCB

Untitled

Sep 30th, 2023
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 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. Call TTWFNFireAllFollowers
  48. SetNumericGameSetting fCombatTeammateFollowRadiusMult 1
  49.  
  50. SetObjectiveCompleted NVDLC01MQ00 10 1
  51. SetStage NVDLC01MQ00 100
  52. DisablePlayerControls 1 1 1 1 1 1 1
  53. Set TimerA to 1
  54. Set TimerA to .2
  55. Set StartUp to 1
  56. ApplyImageSpaceModifier ExplosionInFace
  57.  
  58. PlaySound QSTNVDLC01OpeningStinger
  59. PlaySound QSTDLCTrap
  60.  
  61. endif
  62.  
  63. END
  64.  
  65.  
  66. BEGIN GameMode
  67.  
  68. ; Player gets gassed.
  69.  
  70. if ( StartUp == 1 )
  71.  
  72. if ( TimerZ > 0 ) && (bTimerZDone== 0)
  73. Set TimerZ to ( TimerZ - GetSecondsPassed )
  74. else
  75. set bTimerZDone to 1
  76. Player.Moveto NVDLC01PlayerGasMarker
  77. endif
  78.  
  79. if ( TimerA > 0 )
  80. Set TimerA to ( TimerA - GetSecondsPassed )
  81. else
  82. player.AddScriptPackage NVDLC01PlayerKnockedOut
  83. PipboyRadioOff
  84. Set TimerB to 2
  85. Set StartUp to 2
  86. endif
  87. endif
  88.  
  89. ; Player hits the ground, dazed.
  90.  
  91. if ( StartUp == 2 )
  92. if ( TimerB > 0 )
  93. Set TimerB to ( TimerB - GetSecondsPassed )
  94. ;BeginFX
  95. FXSprayJet0101Ref.enable
  96. FXSprayJet0102Ref.enable
  97. FXSprayJet0103Ref.enable
  98. FXSprayJet0104Ref.enable
  99. ;EndFX
  100. else
  101. Set TimerC to 8
  102. Set StartUp to 3
  103. endif
  104. endif
  105.  
  106. ; Player slowly passes out.
  107.  
  108. if ( StartUp == 3 )
  109. if ( TimerC > 0 )
  110. Set TimerC to ( TimerC - GetSecondsPassed )
  111. else
  112.  
  113. StartQuest NVDLC01NewVegasFollowerFireQuest;
  114. player.RemoveAllItems NVDLC01PlayerEquipmentContainerRef
  115. imod FadeToBlackPermanent
  116. Set TimerC to 5
  117. Set StartUp to 4
  118. endif
  119. endif
  120.  
  121. ; Player wakes up.
  122. if ( StartUp == 4 )
  123. if ( TimerC > 0 )
  124. Set TimerC to ( TimerC - GetSecondsPassed )
  125. else
  126. StartQuest NVDLC01Intro
  127. Set TimerE to 5
  128. Set StartUp to 5
  129. endif
  130. endif
  131.  
  132. if ( StartUp == 5 )
  133. if ( TimerC > 0 )
  134. Set TimerC to ( TimerC - GetSecondsPassed )
  135. else
  136. Player.RemoveScriptPackage
  137. Set StartUp to 6
  138. ;EnablePlayerControls
  139. ;DisableFX
  140. FXSprayJet0101Ref.disable
  141. FXSprayJet0102Ref.disable
  142. FXSprayJet0103Ref.disable
  143. FXSprayJet0104Ref.disable
  144. ;DisableFX
  145. endif
  146. endif
  147.  
  148.  
  149. END
  150.  
  151.  
Advertisement
Add Comment
Please, Sign In to add comment