Initial commit version 0.1.0

This commit is contained in:
2025-06-04 22:11:31 -04:00
commit f5fd13eb8a
45 changed files with 2575 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
; RYB Stage 10 DragTargetAngle atan2
; atan2 approximation in radians from https://math.stackexchange.com/a/1105038
if (RYB.dXAbs >= RYB.dYAbs)
set RYB.a to RYB.dYAbs / RYB.dXAbs
else
set RYB.a to RYB.dXAbs / RYB.dYAbs
endif
set RYB.s to RYB.a * RYB.a
set RYB.r to ((-0.0464964749 * RYB.s + 0.15931422) * RYB.s - 0.327622764) * RYB.s * RYB.a + RYB.a
if (RYB.dYAbs > RYB.dXAbs)
set RYB.r to RYB.halfPi - RYB.r
endif
if (RYB.dX < 0)
set RYB.r to RYB.pi - RYB.r
endif
if (RYB.dY < 0)
set RYB.r to -RYB.r
endif
set RYB.DragTargetAngle to RYB.r * RYB.radToDeg ; radians→deg
; convert mathematical angle → Oblivion heading: heading = (90 angle) mod 360
set RYB.DragTargetAngle to 90.0 - RYB.DragTargetAngle
if (RYB.DragTargetAngle < 0)
set RYB.DragTargetAngle to RYB.DragTargetAngle + 360
endif

View File

@@ -0,0 +1,13 @@
; RYB Quest Stage 11 Update Boat Position and Angle
set RYB.BoatX to RYBBoatRef.GetPos x
set RYB.BoatY to RYBBoatRef.GetPos y
set RYB.BoatZ to RYBBoatRef.GetPos z
set RYB.BoatZ to RYB.BoatZ - RYB.RockZOffset ; remove rocking offset from last frame to get "true" Z
set RYB.BoatAngle to RYBBoatRef.GetAngle z
set RYB.BoatAngle to RYB.BoatAngle - 90
if (RYB.BoatAngle < 0)
set RYB.BoatAngle to RYB.BoatAngle + 360
elseif (RYB.BoatAngle >= 360)
set RYB.BoatAngle to RYB.BoatAngle - 360
endif

View File

@@ -0,0 +1,16 @@
; RYB Quest Stage 12 Boat Yaw Angle Trigonometry (sin/cos/tan approximation)
; Script originally by Galsiah.
; See: https://cs.uesp.net/wiki/Trigonometry_Functions#Galsiah_Version
set RYB.ang to (RYB.ang * RYB.degToRad)
set RYB.n to 1
if (RYB.ang > 4.7123)
set RYB.ang to (RYB.ang - 6.2832)
elseif (RYB.ang > 1.5708)
set RYB.ang to (RYB.ang - 3.1416)
set RYB.n to -1
endif
set RYB.t2 to (RYB.ang * RYB.ang)
set RYB.sin to RYB.n*(RYB.ang*(1 - RYB.t2*0.16605 + 0.00761*RYB.t2*RYB.t2))
set RYB.cos to RYB.n*(1 - RYB.t2*0.4967 + 0.03705*RYB.t2*RYB.t2)
set RYB.tan to (RYB.sin/RYB.cos)

View File

@@ -0,0 +1,16 @@
; RYB Quest Stage 13 Boat Pitch Angle Trigonometry (sin/cos approximation)
; Script originally by Galsiah.
; See: https://cs.uesp.net/wiki/Trigonometry_Functions#Galsiah_Version
set RYB.PitchRadians to RYB.BoatPitchAngle * RYB.degToRad
set RYB.rockAng to RYB.PitchRadians
set RYB.rockN to 1
if (RYB.rockAng > 4.7123)
set RYB.rockAng to (RYB.rockAng - 6.2832)
elseif (RYB.rockAng > 1.5708)
set RYB.rockAng to (RYB.rockAng - 3.1416)
set RYB.rockN to -1
endif
set RYB.rockT2 to (RYB.rockAng * RYB.rockAng)
set RYB.SinPitch to RYB.rockN * (RYB.rockAng * (1 - RYB.rockT2 * 0.16605 + 0.00761 * RYB.rockT2 * RYB.rockT2))
set RYB.CosPitch to RYB.rockN * (1 - RYB.rockT2 * 0.4967 + 0.03705 * RYB.rockT2 * RYB.rockT2)

View File

@@ -0,0 +1,16 @@
; RYB Quest Stage 14 Roll Pitch Angle Trigonometry (sin/cos approximation)
; Script originally by Galsiah.
; See: https://cs.uesp.net/wiki/Trigonometry_Functions#Galsiah_Version
set RYB.RollRadians to RYB.BoatRollAngle * RYB.degToRad
set RYB.rockAng to RYB.RollRadians
set RYB.rockN to 1
if (RYB.rockAng > 4.7123)
set RYB.rockAng to (RYB.rockAng - 6.2832)
elseif (RYB.rockAng > 1.5708)
set RYB.rockAng to (RYB.rockAng - 3.1416)
set RYB.rockN to -1
endif
set RYB.rockT2 to (RYB.rockAng * RYB.rockAng)
set RYB.SinRoll to RYB.rockN * (RYB.rockAng * (1 - RYB.rockT2 * 0.16605 + 0.00761 * RYB.rockT2 * RYB.rockT2))
set RYB.CosRoll to RYB.rockN * (1 - RYB.rockT2 * 0.4967 + 0.03705 * RYB.rockT2 * RYB.rockT2)

View File

@@ -0,0 +1,14 @@
; RYB Quest Stage 15 Rocking Phase 1 (Primary) Angle Trigonometry (sin/cos approximation)
; Script originally by Galsiah.
; See: https://cs.uesp.net/wiki/Trigonometry_Functions#Galsiah_Version
set RYB.rockAng to RYB.RockPhase * RYB.degToRad
set RYB.rockN to 1
if (RYB.rockAng > 4.7123)
set RYB.rockAng to (RYB.rockAng - 6.2832)
elseif (RYB.rockAng > 1.5708)
set RYB.rockAng to (RYB.rockAng - 3.1416)
set RYB.rockN to -1
endif
set RYB.rockT2 to (RYB.rockAng * RYB.rockAng)
set RYB.rockSin to RYB.rockN * (RYB.rockAng * (1 - RYB.rockT2 * 0.16605 + 0.00761 * RYB.rockT2 * RYB.rockT2))

View File

@@ -0,0 +1,14 @@
; RYB Quest Stage 16 Rocking Phase 2 (Secondary) Angle Trigonometry (sin/cos approximation)
; Script originally by Galsiah.
; See: https://cs.uesp.net/wiki/Trigonometry_Functions#Galsiah_Version
set RYB.rockAng to RYB.RockPhase2 * RYB.degToRad
set RYB.rockN to 1
if (RYB.rockAng > 4.7123)
set RYB.rockAng to (RYB.rockAng - 6.2832)
elseif (RYB.rockAng > 1.5708)
set RYB.rockAng to (RYB.rockAng - 3.1416)
set RYB.rockN to -1
endif
set RYB.rockT2 to (RYB.rockAng * RYB.rockAng)
set RYB.rockSin2 to RYB.rockN * (RYB.rockAng * (1 - RYB.rockT2 * 0.16605 + 0.00761 * RYB.rockT2 * RYB.rockT2))

View File

@@ -0,0 +1,15 @@
; RYB Quest Stage 17 Rocking Phase 3 (Roll) Angle Trigonometry (sin/cos approximation)
; Script originally by Galsiah.
; See: https://cs.uesp.net/wiki/Trigonometry_Functions#Galsiah_Version
set RYB.rockAng to RYB.RockPhase3 * RYB.degToRad
set RYB.rockN to 1
if (RYB.rockAng > 4.7123)
set RYB.rockAng to (RYB.rockAng - 6.2832)
elseif (RYB.rockAng > 1.5708)
set RYB.rockAng to (RYB.rockAng - 3.1416)
set RYB.rockN to -1
endif
set RYB.rockT2 to (RYB.rockAng * RYB.rockAng)
set RYB.rockSin3 to RYB.rockN * (RYB.rockAng * (1 - RYB.rockT2 * 0.16605 + 0.00761 * RYB.rockT2 * RYB.rockT2))
set RYB.rockCos3 to RYB.rockN * (1 - RYB.rockT2 * 0.4967 + 0.03705 * RYB.rockT2 * RYB.rockT2)

View File

@@ -0,0 +1,15 @@
; RYB Quest Stage 18 Player Yaw Angle Trigonometry (sin/cos approximation)
; Script originally by Galsiah.
; See: https://cs.uesp.net/wiki/Trigonometry_Functions#Galsiah_Version
set RYB.ang to (RYB.ang * RYB.degToRad)
set RYB.n to 1
if (RYB.ang > 4.7123)
set RYB.ang to (RYB.ang - 6.2832)
elseif (RYB.ang > 1.5708)
set RYB.ang to (RYB.ang - 3.1416)
set RYB.n to -1
endif
set RYB.t2 to (RYB.ang * RYB.ang)
set RYB.PlayerSin to RYB.n*(RYB.ang*(1 - RYB.t2*0.16605 + 0.00761*RYB.t2*RYB.t2))
set RYB.PlayerCos to RYB.n*(1 - RYB.t2*0.4967 + 0.03705*RYB.t2*RYB.t2)

View File

@@ -0,0 +1,23 @@
; RYB Stage 1 Initialize Constants
set RYB.ModVersion to 0.1
set RYB.pi to 3.1415927
set RYB.halfPi to RYB.pi / 2
set RYB.radToDeg to 180.0/RYB.pi ; always multiply to convert
set RYB.degToRad to 1/RYB.radToDeg
set RYB.TargetDeltaTime to 0.0166
set RYB.DeltaSmoothingFactor to 0.1
set RYB.BoatMaxVelocity to 6.0
set RYB.VelocityDecayLnRetentionFactor to -0.01005 ; approx. natural log of the retention factor of 0.99
set RYB.BaseTurnRate to 0.4
set RYB.BaseRowForce to 0.05
set RYB.TurnDeadzone to 10
set RYB.RowSpellDuration to 1.5
set RYB.OverboardDistance to 300
set RYB.TurnRateAcceleration to 0.15
set RYB.TurnRateDeceleration to 0.92
set RYB.LandZThreshold to 10
set RYB.WaterLevelZ to 0
set RYB.HighUpdateRate to 0.0166
set RYB.MediumUpdateRate to 0.1
set RYB.LowUpdateRate to 0.5

View File

@@ -0,0 +1,15 @@
; RYB Stage 20 Enable and Position Collider
RYBColliderRef.Enable
RYBColliderRef.SetActorAlpha 0.0
RYBColliderRef.SetActorRefraction 10.0
RYBColliderRef.AddSpell MG14JskarInvis
RYBColliderRef.SetActorValue Aggression 0
RYBColliderRef.SetActorValue Blindness 100
RYBColliderRef.ModActorValue Sneak 0
RYBColliderRef.SetActorsAI 0
RYBColliderRef.MoveTo Player
RYBColliderRef.SetPos x, RYB.ColliderX
RYBColliderRef.SetPos y, RYB.ColliderY
RYBColliderRef.SetPos z, 0
RYBColliderRef.SetDestroyed 1

View File

@@ -0,0 +1,18 @@
; RYB Stage 21 Collider Collision
set RYB.BaseBoatVelocity to 0
set RYB.CurrentTurnRate to 0
set RYB.BoatMoving to 0
set RYB.AutoRowing to 0
set RYB.Rowing to 0
RYBColliderRef.Disable
RYBSeatRef.SetDestroyed 0
RYBBoatMapMarker.Enable
set RYB.CollisionDetectTimer to RYB.CollisionDetectDelay
if (RYB.BaseBoatVelocity > (RYB.BoatMaxVelocity * 0.9) || RYB.BaseBoatVelocity < -(RYB.BoatMaxVelocity * 0.9))
RYBBoatRef.PlaySound3D TRPImpactStone
else
RYBBoatRef.PlaySound3D TRPMineExplode
endif
set RYB.Grounded to 1
Message "The boat has grounded."

View File

@@ -0,0 +1,19 @@
; RYB Stage 2 Initialize References
set RYB.BoatRef to RYBBoatRef
set RYB.Seat to RYBSeatRef
set RYB.SeatForwardOffset to -187
set RYB.SeatZOffset to 21
set RYB.Chest to RYBChestRef
set RYB.ChestForwardOffset to -184
set RYB.ChestZOffset to 14
set RYB.ChestAngleOffset to -180
set RYB.BoatMarker to RYBBoatMapMarker
set RYB.BoatMarkerZOffset to 20
set RYB.Ladder to RYBLadderRef
set RYB.LadderZOffset to -28
set RYB.LadderForwardOffset to -213
set RYB.LampLit to RYBLampOnRef
set RYB.LampUnlit to RYBLampOffRef
set RYB.LampForwardOffset to 183
set RYB.LampZOffset to 86

View File

@@ -0,0 +1,20 @@
; RYB Stage 30 Seat Position Calculation
; yaw
set RYB.TempX to RYB.SeatSideOffset * RYB.cos + RYB.SeatForwardOffset * RYB.sin
set RYB.TempY to RYB.SeatForwardOffset * RYB.cos - RYB.SeatSideOffset * RYB.sin
set RYB.TempZ to RYB.SeatZOffset
; roll
set RYB.OrigX to RYB.TempX
set RYB.OrigZ to RYB.TempZ
set RYB.TempX to RYB.OrigX * RYB.CosRoll - RYB.OrigZ * RYB.SinRoll
set RYB.TempZ to RYB.OrigX * RYB.SinRoll + RYB.OrigZ * RYB.CosRoll
; pitch
set RYB.OrigY to RYB.TempY
set RYB.OrigZ to RYB.TempZ
set RYB.TempY to RYB.OrigY * RYB.CosPitch + RYB.OrigZ * RYB.SinPitch
set RYB.TempZ to -RYB.OrigY * RYB.SinPitch + RYB.OrigZ * RYB.CosPitch
; to world coords
set RYB.SeatX to RYB.BoatX + RYB.TempX
set RYB.SeatY to RYB.BoatY + RYB.TempY
set RYB.SeatZ to RYB.BoatZ + RYB.TempZ + RYB.RockZOffset

View File

@@ -0,0 +1,26 @@
; RYB Stage 31 Chest Position Calculation
; yaw
set RYB.TempX to RYB.ChestSideOffset * RYB.cos + RYB.ChestForwardOffset * RYB.sin
set RYB.TempY to RYB.ChestForwardOffset * RYB.cos - RYB.ChestSideOffset * RYB.sin
set RYB.TempZ to RYB.ChestZOffset
; roll
set RYB.OrigX to RYB.TempX
set RYB.OrigZ to RYB.TempZ
set RYB.TempX to RYB.OrigX * RYB.CosRoll - RYB.OrigZ * RYB.SinRoll
set RYB.TempZ to RYB.OrigX * RYB.SinRoll + RYB.OrigZ * RYB.CosRoll
; pitch
set RYB.OrigY to RYB.TempY
set RYB.OrigZ to RYB.TempZ
set RYB.TempY to RYB.OrigY * RYB.CosPitch + RYB.OrigZ * RYB.SinPitch
set RYB.TempZ to -RYB.OrigY * RYB.SinPitch + RYB.OrigZ * RYB.CosPitch
; to world coords
set RYB.ChestX to RYB.BoatX + RYB.TempX
set RYB.ChestY to RYB.BoatY + RYB.TempY
set RYB.ChestZ to RYB.BoatZ + RYB.TempZ + RYB.RockZOffset
set RYB.ChestAngle to RYB.BoatAngle - RYB.ChestAngleOffset
if (RYB.ChestAngle < 0)
set RYB.ChestAngle to RYB.ChestAngle + 360
elseif (RYB.ChestAngle >= 360)
set RYB.ChestAngle to RYB.ChestAngle - 360
endif

View File

@@ -0,0 +1,20 @@
; RYB Stage 32 Lamp Position Calculation
; yaw
set RYB.TempX to RYB.LampSideOffset * RYB.cos + RYB.LampForwardOffset * RYB.sin
set RYB.TempY to RYB.LampForwardOffset * RYB.cos - RYB.LampSideOffset * RYB.sin
set RYB.TempZ to RYB.LampZOffset
; roll
set RYB.OrigX to RYB.TempX
set RYB.OrigZ to RYB.TempZ
set RYB.TempX to RYB.OrigX * RYB.CosRoll - RYB.OrigZ * RYB.SinRoll
set RYB.TempZ to RYB.OrigX * RYB.SinRoll + RYB.OrigZ * RYB.CosRoll
; pitch
set RYB.OrigY to RYB.TempY
set RYB.OrigZ to RYB.TempZ
set RYB.TempY to RYB.OrigY * RYB.CosPitch + RYB.OrigZ * RYB.SinPitch
set RYB.TempZ to -RYB.OrigY * RYB.SinPitch + RYB.OrigZ * RYB.CosPitch
; to world coords
set RYB.LampX to RYB.BoatX + RYB.TempX
set RYB.LampY to RYB.BoatY + RYB.TempY
set RYB.LampZ to RYB.BoatZ + RYB.TempZ + RYB.RockZOffset

View File

@@ -0,0 +1,20 @@
; RYB Stage 33 Ladder Position Calculation
; yaw
set RYB.TempX to RYB.LadderSideOffset * RYB.cos + RYB.LadderForwardOffset * RYB.sin
set RYB.TempY to RYB.LadderForwardOffset * RYB.cos - RYB.LadderSideOffset * RYB.sin
set RYB.TempZ to RYB.LadderZOffset
; roll
set RYB.OrigX to RYB.TempX
set RYB.OrigZ to RYB.TempZ
set RYB.TempX to RYB.OrigX * RYB.CosRoll - RYB.OrigZ * RYB.SinRoll
set RYB.TempZ to RYB.OrigX * RYB.SinRoll + RYB.OrigZ * RYB.CosRoll
; pitch
set RYB.OrigY to RYB.TempY
set RYB.OrigZ to RYB.TempZ
set RYB.TempY to RYB.OrigY * RYB.CosPitch + RYB.OrigZ * RYB.SinPitch
set RYB.TempZ to -RYB.OrigY * RYB.SinPitch + RYB.OrigZ * RYB.CosPitch
; to world coords
set RYB.LadderX to RYB.BoatX + RYB.TempX
set RYB.LadderY to RYB.BoatY + RYB.TempY
set RYB.LadderZ to RYB.BoatZ + RYB.TempZ + RYB.RockZOffset

View File

@@ -0,0 +1,17 @@
; RYB Stage 3 Initialize Collider
set RYB.Collider to RYBColliderRef
set RYB.ColliderOffset to 300
set RYB.ColliderOffsetReverse to 350
set RYB.ColliderMoveFreq to 0.05
set RYB.ColliderZ to 1
RYBColliderRef.SetActorAlpha 0.0
RYBColliderRef.SetActorRefraction 10.0
RYBColliderRef.AddSpell MG14JskarInvis
RYBColliderRef.SetActorValue Aggression 0
RYBColliderRef.SetActorValue Blindness 100
RYBColliderRef.ModActorValue Sneak 0
RYBColliderRef.SetActorsAI 0
RYBColliderRef.SetDestroyed 1
set RYB.CollisionDetectDelay to 2
set RYB.CollisionDetectZThreshold to 10

View File

@@ -0,0 +1,13 @@
; RYB Stage 40 Seat Position Execution
if (RYB.Resetting == 2)
RYBSeatRef.MoveTo RYBBoatRef
else
RYBSeatRef.MoveTo Player
endif
RYBSeatRef.SetPos x, RYB.SeatX
RYBSeatRef.SetPos y, RYB.SeatY
RYBSeatRef.SetPos z, RYB.SeatZ
RYBSeatRef.SetAngle z, RYB.BoatAngle
RYBSeatRef.SetAngle x, RYB.BoatPitchAngle
RYBSeatRef.SetAngle y, RYB.BoatRollAngle

View File

@@ -0,0 +1,13 @@
; RYB Stage 41 Chest Position Execution
if (RYB.Resetting == 2)
RYBChestRef.MoveTo RYBBoatRef
else
RYBChestRef.MoveTo Player
endif
RYBChestRef.SetPos x, RYB.ChestX
RYBChestRef.SetPos y, RYB.ChestY
RYBChestRef.SetPos z, RYB.ChestZ
RYBChestRef.SetAngle z, RYB.ChestAngle
RYBChestRef.SetAngle x, RYB.BoatPitchAngle
RYBChestRef.SetAngle y, RYB.BoatRollAngle

View File

@@ -0,0 +1,26 @@
; RYB Stage 42 Lamp Position Execution
if (RYB.Resetting == 2)
RYBLampOffRef.MoveTo RYBBoatRef
else
RYBLampOffRef.MoveTo Player
endif
RYBLampOffRef.SetPos x, RYB.LampX
RYBLampOffRef.SetPos y, RYB.LampY
RYBLampOffRef.SetPos z, RYB.LampZ
RYBLampOffRef.SetAngle z, RYB.BoatAngle
RYBLampOffRef.SetAngle x, RYB.BoatPitchAngle
RYBLampOffRef.SetAngle y, RYB.BoatRollAngle
if (RYB.LampOn == 1)
if (RYB.Resetting == 2)
RYBLampOnRef.MoveTo RYBBoatRef
else
RYBLampOnRef.MoveTo Player
endif
RYBLampOnRef.SetPos x, RYB.LampX
RYBLampOnRef.SetPos y, RYB.LampY
RYBLampOnRef.SetPos z, RYB.LampZ
RYBLampOnRef.SetAngle z, RYB.BoatAngle
RYBLampOnRef.SetAngle x, RYB.BoatPitchAngle
RYBLampOnRef.SetAngle y, RYB.BoatRollAngle
endif

View File

@@ -0,0 +1,13 @@
; RYB Stage 43 Ladder Position Execution
if (RYB.Resetting == 2)
RYBLadderRef.MoveTo RYBBoatRef
else
RYBLadderRef.MoveTo Player
endif
RYBLadderRef.SetPos x, RYB.LadderX
RYBLadderRef.SetPos y, RYB.LadderY
RYBLadderRef.SetPos z, RYB.LadderZ
RYBLadderRef.SetAngle z, RYB.BoatAngle
RYBLadderRef.SetAngle x, RYB.BoatPitchAngle
RYBLadderRef.SetAngle y, RYB.BoatRollAngle

View File

@@ -0,0 +1,4 @@
; RYB Stage 4 Initialize Summoning
set RYB.SummonDistance to 400
set RYB.SummonTimerDelay to 0.5

View File

@@ -0,0 +1,25 @@
; RYB Stage 5 Initialize Dragging
set RYB.DragRopeLength to 250
set RYB.DragFriction to 0.85
set RYB.DragBaseTurnRate to 0.1
set RYB.DragPullStrength to 0.005
set RYB.DragMaxForce to 0.5
set RYB.DragMaxVelocity to 4.0
set RYB.DragZInterpolationRate to 0.1
set RYB.DragMaxTurnPerFrame to 1.0
set RYB.DragTurnDeadzone to 5
set RYB.DragLandPlayerZOffset to 30
set RYB.DragMaxZPerFrame to 2.0
set RYB.DragMaxPlayerDistance to RYB.OverboardDistance * 6
set RYB.DragTurnRateAcceleration to 0.15
set RYB.DragTurnRateDeceleration to 0.92
set RYB.DragMaxPitchAngle to 45
set RYB.DragPitchSmoothingFactor to 0.03
set RYB.DragPathMinDistance to 50
set RYB.DragPathSlopeFactor to 0.7
set RYB.DragPathSlopeDeadzone to 2
set RYB.DragTargetPitchMovingSmoothingFactor to 0.03
set RYB.DragTargetPitchStoppedSmoothingFactor to 0.02
set RYB.DragUphillZAdjustmentFactor to 6
set RYB.DragDownhillZAdjustmentFactor to 4.5

View File

@@ -0,0 +1,19 @@
; RYB Stage 6 Initialize Rocking
set RYB.RockingEnabled to 1
set RYB.RockAmplitudeZ to 0.8
set RYB.RockMaxAbsoluteZ to 3.0
set RYB.RockAmplitudePitch to 2.0
set RYB.RockAmplitudeRoll to 3.0
set RYB.RockFrequency to 30.0
set RYB.RockFrequency2 to 45.0
set RYB.RockFrequency3 to 25.0
set RYB.RockRandomInterval to 3.0
set RYB.RockSpeedFactor to 0.25
set RYB.RockDistanceThreshold to 3000
set RYB.RockSmoothingFactor to 0.1
set RYB.RockWeatherFactor to 0.5
set RYB.RockPhase to GetRandomPercent * 3.6
set RYB.RockPhase2 to GetRandomPercent * 3.6
set RYB.RockPhase3 to GetRandomPercent * 3.6
set RYB.RockRandomPhase to (GetRandomPercent - 50) * 0.02

View File

@@ -0,0 +1,9 @@
; RYB Stage 7 Initialize Player Weight
set RYB.PlayerWeightEnabled to 1
set RYB.PlayerWeightMaxDistanceForward to 240
set RYB.PlayerWeightMaxDistanceSide to 100
set RYB.PlayerWeightMaxDistanceVertical to 60
set RYB.PlayerWeightPitchFactor to 0.07 ; How much forward/back position affects pitch
set RYB.PlayerWeightRollFactor to 0.13 ; How much left/right position affects roll
set RYB.PlayerWeightSmoothingFactor to 0.2 ; How quickly the effect changes