diff --git a/scripts/_00e_questfunctions.pex b/scripts/_00e_questfunctions.pex index 8f41a404..104b488b 100644 Binary files a/scripts/_00e_questfunctions.pex and b/scripts/_00e_questfunctions.pex differ diff --git a/source/scripts/_00e_questfunctions.psc b/source/scripts/_00e_questfunctions.psc index 90b3bd5d..e07bd827 100644 --- a/source/scripts/_00e_questfunctions.psc +++ b/source/scripts/_00e_questfunctions.psc @@ -326,19 +326,6 @@ Function DisableReferenceFormList(FormList referenceList) Global EndFunction -Float Function SetActorScale(Actor akActor, Float fNewScale) Global - - ; Sets the scale of akActor to fNewScale and returns the old scale. - ; This is a workaround for GetScale() returning the cumulative scale of Race.Height * Actor.Scale for actors. - ; So it results in a messed up scale if the value returned by GetScale() is used to revert the scale change for an actor whose race has a non-1.00 height (for example, HighElfRace) - - Float fOriginalScale = akActor.GetScale() - akActor.SetScale(fNewScale) - ; Now use the known fNewScale and the return of GetScale() to get the race height coeff, and apply that coeff to fOriginalScale to calculate the true actor's reference scale. - Return fOriginalScale * fNewScale / akActor.GetScale() - -EndFunction - Float Function AdjustTimePeriodByEngineTimerError(Float fUnadjustedPeriod) Global ; In SE, the game time runs slower than the real time by about 2.5/60 second @@ -613,32 +600,6 @@ Function FadeToBlackBack() EndFunction -;===================================================================================== -; FAKEHEADTRACK (unused?) -;===================================================================================== - -function FakeHeadtrackStart() - - _00E_HeadtrackGlobal.SetValueInt(1) - game.SetPlayerAIDriven(true) - game.DisablePlayerControls(true, true, true, true, true, true, true, false, 0) - PlayerREF.AddPerk(_00E_VisionPerk) - UpdateSpeed(PlayerREF) - Wait(0.500000) - PlayerREF.RemoveSpell(_00E_Vision_UpdateAb) - -endFunction - -function FakeHeadtrackEnd() - - _00E_HeadtrackGlobal.SetValueInt(0) - game.EnablePlayerControls(true, true, true, true, true, true, true, true, 0) - game.SetPlayerAIDriven(false) - PlayerREF.RemovePerk(_00E_VisionPerk) - UpdateSpeed(PlayerREF) - Wait(0.500000) - -endFunction ;===================================================================================== ; VISION