GraceCB

Untitled

Dec 15th, 2021
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1. scn NVDLC01SMGateMojaveSCRIPT
  2. ; JSH 10.11.10
  3. ; Script that returns player to BoS Bunker in Mojave Wasteland.
  4.  
  5. ; CES 10/26/10
  6. ; Updating the script to move the ending slideshow from here to the Vault Elevator
  7.  
  8. ;Variables
  9.  
  10. Short bButton ;Grabs the button pressed for the message box
  11. short bActivated ;Tracks if the player has exited the DLC
  12.  
  13. short sButtons
  14. float sEnds
  15. float sSurvs
  16. float sIngestPenalty
  17. float sSleepPenalty
  18. string_var TestEditorID
  19.  
  20. ; Ending must have played at least once
  21. short bEndingDone
  22. ref rCountryRadio
  23.  
  24. BEGIN OnActivate
  25.  
  26. if (IsActionRef player) && (GetLocked == 0)
  27.  
  28. ShowMessage NVDLC01TravelToMojaveMsg
  29.  
  30. endif
  31.  
  32. END
  33.  
  34. BEGIN gamemode
  35.  
  36. set bButton to GetButtonPressed
  37.  
  38. if ( bButton == 1 ) && (bActivated == 0)
  39.  
  40. set bActivated to 1
  41. printc "bactivated was zero, set to 1"
  42.  
  43. ;DisablePlayerControls 1 1 1 1 1 1 1
  44. ;StartQuest NVDLC01Ending
  45.  
  46. ; Enable FNV Radio Stations on DLC end
  47. RNVTARef.Enable; ;Enable Radio New Vegas
  48. set rCountryRadio to vCountryRadioREF.GetLinkedRef; ;Country Radio has no ref name, so getlinked
  49. rCountryRadio.Enable; ;Disable Country Radio
  50.  
  51. ;NVDLC01Bartender.AlwaysShowActorSubtitles 0; ;Set up hologram vendors to stop showing subtitles
  52. ;NVDLC01HologramVendor1REF.AlwaysShowActorSubtitles 0;
  53. ;NVDLC01HologramVendor2REF.AlwaysShowActorSubtitles 0;
  54. ;NVDLC01HologramVendor3REF.AlwaysShowActorSubtitles 0;
  55. ;NVDLC01HoloDealer03.AlwaysShowActorSubtitles 0;
  56. ;NVDLC01HoloDealer02.AlwaysShowActorSubtitles 0;
  57. ;NVDLC01HoloDealer01.AlwaysShowActorSubtitles 0;
  58. StarletHologramVillaRef.SetNPCRadio 0 NVDLC01RadioStationRef; ;Stop the Starlet Hologram playing the Starlet Radio audio at the fountain
  59.  
  60. ; NVDLC01RadioDisable ; Disable DLC Radio Stations on DLC End
  61. NVDLC01RadioStationChristineREF.disable;
  62. StopQuest NVDLC01RadioChristine;
  63. NVDLC01RadioStationDeanREF.disable;
  64. StopQuest NVDLC01RadioDeanQuest;
  65. NVDLC01RadioStationDogREF.disable;
  66. StopQuest NVDLC01RadioDog;
  67. NVDLC01RadioStationSpeakersREF.disable;
  68. StopQuest NVDLC01RadioSpeakers;
  69. NVDLC01RadioStationDeanMusicREF.disable;
  70. StopQuest NVDLC01RadioDeanMusic;
  71. NVDLC01RadioStationElijahREF.disable;
  72. StopQuest NVDLC01RadioElijah;
  73.  
  74. RemoveImageSpaceModifier FriendOfTheNightInteriorISFX
  75. RemoveImageSpaceModifier FriendOfTheNightISFX
  76. player.DispelAllSpells ; Removes all chem effects.
  77. PipBoyRadioOff ; Turn off PipBoy radio.
  78. Player.ResetHealth;
  79. PlayMusic EndSlideShow;
  80.  
  81. StopQuest NVDLC01ChristineBarkTimer;
  82.  
  83. ; Activate End Game Slides
  84. DisablePlayerControls 1 1 1 1 1 1 1
  85. StartQuest NVDLC01Ending
  86.  
  87.  
  88.  
  89. player.MoveTo NVDLC01SlideshowMarker
  90. elseif ( bButton == 1 ) && (bActivated == 1)
  91. printc "bactivated was 1 already"
  92. RemoveImageSpaceModifier FriendOfTheNightInteriorISFX
  93. RemoveImageSpaceModifier FriendOfTheNightISFX
  94. player.DispelAllSpells ; Removes all chem effects.
  95. PipBoyRadioOff ; Turn off PipBoy radio.
  96. NVDLC01RadioStationChristineREF.disable;
  97. StopQuest NVDLC01RadioChristine;
  98. NVDLC01RadioStationDeanREF.disable;
  99. StopQuest NVDLC01RadioDeanQuest;
  100. NVDLC01RadioStationDogREF.disable;
  101. StopQuest NVDLC01RadioDog;
  102. NVDLC01RadioStationSpeakersREF.disable;
  103. StopQuest NVDLC01RadioSpeakers;
  104. NVDLC01RadioStationDeanMusicREF.disable;
  105. StopQuest NVDLC01RadioDeanMusic;
  106. RNVTARef.Enable; ;Enable Radio New Vegas
  107. set rCountryRadio to vCountryRadioREF.GetLinkedRef; ;Country Radio has no ref name, so getlinked
  108. rCountryRadio.Enable;
  109. StopQuest NVDLC01GlobalToxicDamage
  110. set sIngestPenalty to 500
  111. set sSleepPenalty to 500
  112. set sEnds to player.getpermanentactorvalue Endurance
  113. set sSurvs to player.getpermanentactorvalue Survival
  114. set sEnds to 1 - (sEnds / 10)
  115. set sSurvs to 1 - (sSurvs / 100)
  116. set sIngestPenalty to (sIngestPenalty * sEnds * sSurvs)
  117. set sSleepPenalty to (sSleepPenalty * sEnds * sSurvs)
  118. player.damageAV hunger sIngestPenalty
  119. player.damageAV dehydration sIngestPenalty
  120. player.damageAV SleepDeprevation sSleepPenalty
  121. PCB
  122. player.moveto sDMDryCFromDMMapMarkerREF
  123. elseif ( bButton == 2 )
  124. return
  125. endif
  126.  
  127. END
Advertisement
Add Comment
Please, Sign In to add comment