GraceCB

Untitled

Dec 15th, 2021
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. scn NVDLC01BunkerTransitionTimerSCRIPT
  2. ; JSH 10.11.10
  3. ; Timer for fade-to-black transition to the Brotherhood Bunker.
  4.  
  5. short bDoOnce ;Script blocker
  6. float fTimer ;Timer used for animation control
  7. short bFadeOutDone
  8. short sButtons
  9. float sEnds
  10. float sSurvs
  11. float sIngestPenalty
  12. float sSleepPenalty
  13.  
  14. BEGIN GameMode
  15.  
  16. if (bFadeOutDone == 1)
  17. return;
  18. endif
  19.  
  20. if (bDoOnce== 0)
  21. PlaySound QSTEndTransitionStinger
  22. PlayMusic EndTransitionStinger
  23. set fTimer to 4;
  24. set bDoOnce to 1;
  25. endif
  26.  
  27. set fTimer to ( fTimer - GetSecondsPassed )
  28.  
  29. if ( fTimer <= 4 ) && (bDoOnce == 1)
  30. IMod FadeToBlackPermanent;
  31. set bDoOnce to 2;
  32. endif
  33.  
  34. if ( fTimer <= 0 )
  35. set bFadeOutDone to 1;
  36. set sIngestPenalty to 300
  37. set sSleepPenalty to 300
  38. set sEnds to player.getpermanentactorvalue Endurance
  39. set sSurvs to player.getpermanentactorvalue Survival
  40. set sEnds to 1 - (sEnds/10)
  41. set sSurvs to 1 - (sSurvs/100)
  42. set sIngestPenalty to (sIngestPenalty * sEnds * sSurvs)
  43. set sSleepPenalty to (sSleepPenalty * sEnds * sSurvs)
  44. player.damageAV hunger sIngestPenalty
  45. player.damageAV dehydration sIngestPenalty
  46. player.damageAV SleepDeprevation sSleepPenalty
  47. ;set GameHour to (GameHour + 36)
  48. player.moveto sDMDryCMapMarkerREF
  49. Player.RemoveScriptPackage;
  50. EnablePlayerControls;
  51. SetInCharGen 0;
  52.  
  53. SetNumericGameSetting fCombatTeammateFollowRadiusMult 3
  54.  
  55. if (NVDLC01ElijahREF.GetDead == 0)
  56. StartQuest NVDLC01RadioElijah;
  57. NVDLC01RadioStationElijahREF.enable;
  58. NVDLC01RadioStationElijahREF.SetBroadcastState 1;
  59. endif
  60.  
  61. StopQuest NVDLC01Ending;
  62. StopQuest NVDLC01BunkerTransitionTimer;
  63. endif
  64.  
  65. END
  66.  
  67.  
Advertisement
Add Comment
Please, Sign In to add comment