4
Fork 0

Moved AdjustTimePeriodByEngineTimerError() to _00E_TimeControl

remove-levelsystem
Eddoursul 4 months ago
parent 35f8fb2e19
commit 9272916e96
  1. BIN
      scripts/_00e_gaboff_grammophonesc.pex
  2. BIN
      scripts/_00e_mq13a_grammophonesc.pex
  3. BIN
      scripts/_00e_placeablegrammophonplay.pex
  4. BIN
      scripts/_00e_questfunctions.pex
  5. BIN
      scripts/_00e_timecontrol.pex
  6. 2
      source/scripts/_00e_gaboff_grammophonesc.psc
  7. 2
      source/scripts/_00e_mq13a_grammophonesc.psc
  8. 2
      source/scripts/_00e_placeablegrammophonplay.psc
  9. 8
      source/scripts/_00e_questfunctions.psc
  10. 7
      source/scripts/_00e_timecontrol.psc

Binary file not shown.

Binary file not shown.

@ -24,7 +24,7 @@ Function PlayMusic(Sound musicSound, Float fMusicLength)
RegisterForModEvent("BardsLoadGame", "OnBardsLoadGame")
iSoundID = musicSound.Play(Self)
Sound.SetInstanceVolume(iSoundID, fVolume)
RegisterForSingleUpdate(_00E_QuestFunctions.AdjustTimePeriodByEngineTimerError(fMusicLength))
RegisterForSingleUpdate(_00E_TimeControl.AdjustTimePeriodByEngineTimerError(fMusicLength))
GoToState("")
_00E_PlayerhousingKoppophonVolume.Show(fVolume * 100.0)
EndFunction

@ -22,7 +22,7 @@ Function PlayMusic(Sound musicSound, Float fMusicLength)
RegisterForModEvent("BardsLoadGame", "OnBardsLoadGame")
iSoundID = musicSound.Play(Self)
Sound.SetInstanceVolume(iSoundID, fVolume)
RegisterForSingleUpdate(_00E_QuestFunctions.AdjustTimePeriodByEngineTimerError(fMusicLength))
RegisterForSingleUpdate(_00E_TimeControl.AdjustTimePeriodByEngineTimerError(fMusicLength))
GoToState("")
_00E_PlayerhousingKoppophonVolume.Show(fVolume * 100.0)
EndFunction

@ -80,7 +80,7 @@ Event OnActivate(ObjectReference triggerRef)
volume = 0.5
EndIf
Sound.SetInstanceVolume(playbackId, volume)
RegisterForSingleUpdate(_00E_QuestFunctions.AdjustTimePeriodByEngineTimerError(MUSIC_LENGTH))
RegisterForSingleUpdate(_00E_TimeControl.AdjustTimePeriodByEngineTimerError(MUSIC_LENGTH))
GoToState("")

@ -163,14 +163,6 @@ Function WaitForReferenceToLoad(ObjectReference ref) Global
EndFunction
Float Function AdjustTimePeriodByEngineTimerError(Float fUnadjustedPeriod) Global
; In SE, the game time runs slower than the real time by about 2.5/60 second
Return fUnadjustedPeriod - (2.5 * Math.Floor(fUnadjustedPeriod) / 60.0)
EndFunction
;=====================================================================================
; GENERAL NON-GLOBAL FUNCTIONS

@ -57,3 +57,10 @@ Bool Function HourIsInRange(Float fHour, Float fHourStart, Float fHourEnd) Globa
EndIf
EndFunction
Float Function AdjustTimePeriodByEngineTimerError(Float fUnadjustedPeriod) Global
; In SE, the game time runs slower than the real time by about 2.5/60 second
Return fUnadjustedPeriod - (2.5 * Math.Floor(fUnadjustedPeriod) / 60.0)
EndFunction

Loading…
Cancel
Save