Removed unused headtrack functions from _00e_questfunctions

This commit is contained in:
Eddoursul 2023-12-01 23:07:16 +01:00
parent df48f74440
commit a78c337559
2 changed files with 0 additions and 39 deletions

Binary file not shown.

View File

@ -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