Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scn NVDLC01BunkerTransitionTimerSCRIPT
- ; JSH 10.11.10
- ; Timer for fade-to-black transition to the Brotherhood Bunker.
- short bDoOnce ;Script blocker
- float fTimer ;Timer used for animation control
- short bFadeOutDone
- short sButtons
- float sEnds
- float sSurvs
- float sIngestPenalty
- float sSleepPenalty
- BEGIN GameMode
- if (bFadeOutDone == 1)
- return;
- endif
- if (bDoOnce== 0)
- PlaySound QSTEndTransitionStinger
- PlayMusic EndTransitionStinger
- set fTimer to 4;
- set bDoOnce to 1;
- endif
- set fTimer to ( fTimer - GetSecondsPassed )
- if ( fTimer <= 4 ) && (bDoOnce == 1)
- IMod FadeToBlackPermanent;
- set bDoOnce to 2;
- endif
- if ( fTimer <= 0 )
- set bFadeOutDone to 1;
- set sIngestPenalty to 300
- set sSleepPenalty to 300
- 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
- ;set GameHour to (GameHour + 36)
- player.moveto sDMDryCMapMarkerREF
- Player.RemoveScriptPackage;
- EnablePlayerControls;
- SetInCharGen 0;
- SetNumericGameSetting fCombatTeammateFollowRadiusMult 3
- if (NVDLC01ElijahREF.GetDead == 0)
- StartQuest NVDLC01RadioElijah;
- NVDLC01RadioStationElijahREF.enable;
- NVDLC01RadioStationElijahREF.SetBroadcastState 1;
- endif
- StopQuest NVDLC01Ending;
- StopQuest NVDLC01BunkerTransitionTimer;
- endif
- END
Advertisement
Add Comment
Please, Sign In to add comment