Advertisement
FireWolf3000

Timer

Oct 17th, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.32 KB | None | 0 0
  1. scn bonfireDeathlyEvent
  2.  
  3. int iDead
  4. int iImageStage
  5. float fDeathTimer
  6. int iYesManVictorSurvival
  7. int iStandINI
  8. int iCapsLost
  9. int iRegenAllowed
  10. int iDrugCount1
  11. int iDrugCount2
  12. int iDrugCount3
  13.  
  14. begin GameMode
  15.  
  16. let iDead := 0
  17.  
  18. ;;; v BELOW IS THE CODE FOR THE BASIC DEATH FUNCTION
  19.  
  20. if bonfireDeathEventRun == 1
  21.  
  22. let iDead := 1
  23. player.PushActorAwayAlt 5
  24. DisablePlayerControls 1 1 1 1 0 1 1
  25. FadeSFX 5
  26. imod FadeToBlack5sISFX
  27. let iImageStage := 1
  28. let fDeathTimer := 0
  29.  
  30. if iImageStage == 1
  31. set fDeathTimer to fDeathTimer + GetSecondsPassed
  32. if fDeathTimer >= 5
  33.  
  34. imod BlackSexISFX
  35. FreezeTime 1
  36. print "Stage 1 success."
  37.  
  38. if iYesManVictorSurvival == 1 ;Yes Man
  39. MessageBoxEx "In the midst of your unconscious spiel, you can faintly remember a rather chipper (and agreeable) voice carrying you back through the desert..."
  40. elseif iYesManVictorSurvival == 0 ; Victor
  41. MessageBoxEx "A faint 'Woah there, pardner!' drifts through your shifting memories as a metal hand is felt carrying you to safety..."
  42. endif
  43.  
  44. if (GetINIFloat "Drawbacks:fCNDVibe" "deathlyalt.ini" == 1) ; CONDITION VIBE CHECK
  45. player.SetEquippedCurrentHealth 0 5
  46. player.SetEquippedCurrentHealth 0 2
  47. player.SetEquippedCurrentHealth 0 10
  48. else
  49. MessageEx "Thankfully, your equipment makes it back with you safely."
  50. endif
  51.  
  52. if (GetINIFloat "Drawbacks:fSpilledCaps" "deathlyalt.ini" == 1) ; YOU SPILLED YOUR CAPS, ASSHOLE
  53. let iCapsLost := (player.GetLevel * (GetINIFloat "Drawbacks:fSpilledAmount" "deathlyalt.ini") )
  54. player.RemoveItem Caps001 iCapsLost
  55. else
  56. MessageEx "After checking your pockets carefully, it looks like your caps are all here."
  57. endif
  58.  
  59. if (GetINIFloat "Drawbacks:fOwBones" "deathlyalt.ini" == 1) && (player.GetAV CarryWeight < player.GetAV InventoryWeight) ; OW, OW, MY POOR ACHING BONES
  60. let iRegenAllowed := 0
  61. elseif (GetINIFloat "Drawbacks:fOwBones" "deathlyalt.ini" == 1)
  62. MessageEx "You're not over-encumbered, and suffer no ailments."
  63. elseif (player.GetAV CarryWeight < player.GetAV InventoryWeight)
  64. MessageEx "Despite your over-encumbrance, you manage to make it to safety with energy to spare."
  65. else
  66. endif
  67.  
  68. if (GetINIFloat "Drawbacks:fAtomBaby" "deathlyalt.ini" == 1) ; ATOM BOMB BABY
  69. if (player.GetAV RadiationRads >= 200) && (player.GetAV RadiationRads <= 399)
  70. let iDrugCount1 := ( (player.GetItemCount Morphine) / 3)
  71. let iDrugCount2 := ( (player.GetItemCount Jet) / 3)
  72. let iDrugCount3 := ( (player.GetItemCount Buffout) / 3)
  73. player.RemoveItem Morphine iDrugCount1 1
  74. player.RemoveItem Jet iDrugCount2 1
  75. player.RemoveItem Buffout iDrugCount3 1
  76. player.AddItem SurgicalSyringe01 iDrugCount1
  77. player.AddItem JetEmpty iDrugCount2
  78.  
  79. MessageEx "What a bad day for Radiation... "
  80.  
  81. elseif (player.GetAV RadiationRads <=199)
  82.  
  83. elseif (player.GetAV RadiationRads >= 400) && (player.GetAV RadiationRads <= 599)
  84. let iDrugCount1 := ( (player.GetItemCount Morphine) / 2)
  85. let iDrugCount2 := ( (player.GetItemCount NVSteadyChem) / 3)
  86. let iDrugCount3 := ( (player.GetItemCount WaterPurified) / 3)
  87. player.RemoveItem Morphine iDrugCount1 1
  88. player.RemoveItem NVSteadyChem iDrugCount2 1
  89. player.RemoveItem WaterPurified iDrugCount3 1
  90. player.AddItem SurgicalSyringe01 iDrugCount1
  91. player.AddItem IrradiatedWaterUnpurified iDrugCount3
  92.  
  93. MessageEx "As if the Rads seeping into your system alone weren't enough... "
  94.  
  95. elseif (player.GetAV RadiationRads >= 600) && (player.GetAV RadiationRads <= 799)
  96. let iDrugCount1 := ( (player.GetItemCount WaterPurified) / 2)
  97. let iDrugCount2 := ( (player.GetItemCount NVHydra) / 3)
  98. let iDrugCount3 := ( (player.GetItemCount Stimpak) / 2)
  99. player.RemoveItem WaterPurified iDrugCount1 1
  100. player.RemoveItem NVHydra iDrugCount2 1
  101. player.RemoveItem Stimpak iDrugCount3 1
  102. player.AddItem IrradiatedWaterUnpurified iDrugCount1
  103. player.AddItem SurgicalSyringe01 iDrugCount3
  104.  
  105. MessageEx "What a b-, no, what a terrible day for Radiation... "
  106.  
  107. elseif (player.GetAV RadiationRads >= 800) && (player.GetAV RadiationRads <= 999)
  108. let iDrugCount1 := ( (player.GetItemCount WaterPurified) / 1)
  109. let iDrugCount2 := ( (player.GetItemCount Stimpak) / 1)
  110. let iDrugCount3 := ( (player.GetItemCount StealthBoy) / 2)
  111. player.RemoveItem WaterPurified iDrugCount1 1
  112. player.RemoveItem Stimpak iDrugCount2 1
  113. player.RemoveItem StealthBoy iDrugCount3 1
  114. player.AddItem IrradiatedWaterUnpurified iDrugCount1
  115. player.AddItem SurgicalSyringe01 iDrugCount2
  116.  
  117. MessageEx "At this point, you count yourself lucky the Radiation didn't destroy you first."
  118. endif
  119.  
  120. elseif (player.GetAV RadiationRads >= 200)
  121. MessageEx "Miraculously, the Radiation which has seeped into your bones wasn't quite able to get ahold of your items."
  122.  
  123. else
  124. endif
  125.  
  126. ;; NOW TO TELEPORT BACK AND COMPLETE THE DEATH SEQUENCE
  127.  
  128. if fDeathTimer >= 10
  129. player.MoveTo XMarkerDeath
  130. FreezeTime 0
  131. FadeSFX -1
  132. rimod BlackSexISFX
  133. EnablePlayerControls
  134. let iDead := 0
  135. let iImageStage := 0
  136. player.RestoreAV Health 2
  137.  
  138. if iRegenAllowed == 1
  139. player.RestoreAV Health 25
  140. endif
  141.  
  142. endif
  143.  
  144. let bonfireDeathEventRun := 0
  145.  
  146. ;endif ;timer end
  147.  
  148. endif ; imagestage if
  149. endif ; IMOD timer if
  150.  
  151. endif
  152.  
  153. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement