Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scn NVDLC01SMGateMojaveSCRIPT
- ; JSH 10.11.10
- ; Script that returns player to BoS Bunker in Mojave Wasteland.
- ; CES 10/26/10
- ; Updating the script to move the ending slideshow from here to the Vault Elevator
- ;Variables
- Short bButton ;Grabs the button pressed for the message box
- short bActivated ;Tracks if the player has exited the DLC
- short sButtons
- float sEnds
- float sSurvs
- float sIngestPenalty
- float sSleepPenalty
- string_var TestEditorID
- ; Ending must have played at least once
- short bEndingDone
- ref rCountryRadio
- BEGIN OnActivate
- if (IsActionRef player) && (GetLocked == 0)
- ShowMessage NVDLC01TravelToMojaveMsg
- endif
- END
- BEGIN gamemode
- set bButton to GetButtonPressed
- if ( bButton == 1 ) && (bActivated == 0)
- set bActivated to 1
- printc "bactivated was zero, set to 1"
- ;DisablePlayerControls 1 1 1 1 1 1 1
- ;StartQuest NVDLC01Ending
- ; Enable FNV Radio Stations on DLC end
- RNVTARef.Enable; ;Enable Radio New Vegas
- set rCountryRadio to vCountryRadioREF.GetLinkedRef; ;Country Radio has no ref name, so getlinked
- rCountryRadio.Enable; ;Disable Country Radio
- ;NVDLC01Bartender.AlwaysShowActorSubtitles 0; ;Set up hologram vendors to stop showing subtitles
- ;NVDLC01HologramVendor1REF.AlwaysShowActorSubtitles 0;
- ;NVDLC01HologramVendor2REF.AlwaysShowActorSubtitles 0;
- ;NVDLC01HologramVendor3REF.AlwaysShowActorSubtitles 0;
- ;NVDLC01HoloDealer03.AlwaysShowActorSubtitles 0;
- ;NVDLC01HoloDealer02.AlwaysShowActorSubtitles 0;
- ;NVDLC01HoloDealer01.AlwaysShowActorSubtitles 0;
- StarletHologramVillaRef.SetNPCRadio 0 NVDLC01RadioStationRef; ;Stop the Starlet Hologram playing the Starlet Radio audio at the fountain
- ; NVDLC01RadioDisable ; Disable DLC Radio Stations on DLC End
- NVDLC01RadioStationChristineREF.disable;
- StopQuest NVDLC01RadioChristine;
- NVDLC01RadioStationDeanREF.disable;
- StopQuest NVDLC01RadioDeanQuest;
- NVDLC01RadioStationDogREF.disable;
- StopQuest NVDLC01RadioDog;
- NVDLC01RadioStationSpeakersREF.disable;
- StopQuest NVDLC01RadioSpeakers;
- NVDLC01RadioStationDeanMusicREF.disable;
- StopQuest NVDLC01RadioDeanMusic;
- NVDLC01RadioStationElijahREF.disable;
- StopQuest NVDLC01RadioElijah;
- RemoveImageSpaceModifier FriendOfTheNightInteriorISFX
- RemoveImageSpaceModifier FriendOfTheNightISFX
- player.DispelAllSpells ; Removes all chem effects.
- PipBoyRadioOff ; Turn off PipBoy radio.
- Player.ResetHealth;
- PlayMusic EndSlideShow;
- StopQuest NVDLC01ChristineBarkTimer;
- ; Activate End Game Slides
- DisablePlayerControls 1 1 1 1 1 1 1
- StartQuest NVDLC01Ending
- player.MoveTo NVDLC01SlideshowMarker
- elseif ( bButton == 1 ) && (bActivated == 1)
- printc "bactivated was 1 already"
- RemoveImageSpaceModifier FriendOfTheNightInteriorISFX
- RemoveImageSpaceModifier FriendOfTheNightISFX
- player.DispelAllSpells ; Removes all chem effects.
- PipBoyRadioOff ; Turn off PipBoy radio.
- NVDLC01RadioStationChristineREF.disable;
- StopQuest NVDLC01RadioChristine;
- NVDLC01RadioStationDeanREF.disable;
- StopQuest NVDLC01RadioDeanQuest;
- NVDLC01RadioStationDogREF.disable;
- StopQuest NVDLC01RadioDog;
- NVDLC01RadioStationSpeakersREF.disable;
- StopQuest NVDLC01RadioSpeakers;
- NVDLC01RadioStationDeanMusicREF.disable;
- StopQuest NVDLC01RadioDeanMusic;
- RNVTARef.Enable; ;Enable Radio New Vegas
- set rCountryRadio to vCountryRadioREF.GetLinkedRef; ;Country Radio has no ref name, so getlinked
- rCountryRadio.Enable;
- StopQuest NVDLC01GlobalToxicDamage
- set sIngestPenalty to 500
- set sSleepPenalty to 500
- set sEnds to player.getpermanentactorvalue Endurance
- set sSurvs to player.getpermanentactorvalue Survival
- set sEnds to 1 - (sEnds / 10)
- set sSurvs to 1 - (sSurvs / 100)
- set sIngestPenalty to (sIngestPenalty * sEnds * sSurvs)
- set sSleepPenalty to (sSleepPenalty * sEnds * sSurvs)
- player.damageAV hunger sIngestPenalty
- player.damageAV dehydration sIngestPenalty
- player.damageAV SleepDeprevation sSleepPenalty
- PCB
- player.moveto sDMDryCFromDMMapMarkerREF
- elseif ( bButton == 2 )
- return
- endif
- END
Advertisement
Add Comment
Please, Sign In to add comment