update OW code references

This commit is contained in:
Mister_Nebula 2021-10-12 15:31:02 +01:00
parent 7732a63b5a
commit efb000c524
6 changed files with 9 additions and 9 deletions

View File

@ -41,7 +41,7 @@ namespace QSB.Animation.Player
return; return;
} }
var jumpChargeFraction = _playerController.GetJumpChargeFraction(); var jumpChargeFraction = _playerController.GetJumpCrouchFraction();
_crouchValue = jumpChargeFraction; _crouchValue = jumpChargeFraction;
} }

View File

@ -66,7 +66,7 @@ namespace QSB.Animation.Patches
____animator.SetFloat("RunSpeedY", movementVector.z / 3f); ____animator.SetFloat("RunSpeedY", movementVector.z / 3f);
____animator.SetFloat("TurnSpeed", ____playerController.GetTurning()); ____animator.SetFloat("TurnSpeed", ____playerController.GetTurning());
____animator.SetBool("Grounded", isGrounded || isAttached || PlayerState.IsRecentlyDetached()); ____animator.SetBool("Grounded", isGrounded || isAttached || PlayerState.IsRecentlyDetached());
____animator.SetLayerWeight(1, ____playerController.GetJumpChargeFraction()); ____animator.SetLayerWeight(1, ____playerController.GetJumpCrouchFraction());
____animator.SetFloat("FreefallSpeed", freefallMagnitude / 15f * (timeInFreefall / 3f)); ____animator.SetFloat("FreefallSpeed", freefallMagnitude / 15f * (timeInFreefall / 3f));
____animator.SetBool("InZeroG", isInZeroG || isFlying); ____animator.SetBool("InZeroG", isInZeroG || isFlying);
____animator.SetBool("UsingJetpack", isInZeroG && PlayerState.IsWearingSuit()); ____animator.SetBool("UsingJetpack", isInZeroG && PlayerState.IsWearingSuit());

View File

@ -164,9 +164,9 @@ namespace QSB.DeathSync.Patches
var zoomInput = 0f; var zoomInput = 0f;
if (canInteractWith) if (canInteractWith)
{ {
XZinput = OWInput.GetValue(InputLibrary.moveXZ, InputMode.All); XZinput = OWInput.GetAxisValue(InputLibrary.moveXZ, InputMode.All);
lookInput = InputLibrary.look.GetValue(false); lookInput = InputLibrary.look.GetAxisValue(false);
zoomInput = OWInput.GetValue(InputLibrary.mapZoom, InputMode.All); zoomInput = OWInput.GetValue(InputLibrary.mapZoomIn, InputMode.All) - OWInput.GetValue(InputLibrary.mapZoomOut, InputMode.All);
lookInput.y *= -1f; lookInput.y *= -1f;
zoomInput *= -1f; zoomInput *= -1f;
} }

View File

@ -55,7 +55,7 @@ namespace QSB.Instruments.QSBCamera
private void UpdateInput() private void UpdateInput()
{ {
var input = OWInput.GetValue(InputLibrary.look, false); var input = InputLibrary.look.GetAxisValue(false);
_degreesX += input.x * 180f * Time.fixedDeltaTime; _degreesX += input.x * 180f * Time.fixedDeltaTime;
_degreesY += input.y * 180f * Time.fixedDeltaTime; _degreesY += input.y * 180f * Time.fixedDeltaTime;
} }

View File

@ -96,7 +96,7 @@ namespace QSB.RoastingSync.Patches
if (____marshmallow.IsBurned()) if (____marshmallow.IsBurned())
{ {
showRemovePrompt = true; showRemovePrompt = true;
if (OWInput.IsNewlyPressed(InputLibrary.cancel, true, InputMode.Roasting)) if (OWInput.IsNewlyPressed(InputLibrary.cancel, InputMode.Roasting))
{ {
____marshmallow.Remove(); ____marshmallow.Remove();
Locator.GetPlayerAudioController().PlayMarshmallowToss(); Locator.GetPlayerAudioController().PlayMarshmallowToss();

View File

@ -228,12 +228,12 @@ namespace QSB.Syncs.Sectored.Rigidbodies
if (isRunningKinematic) if (isRunningKinematic)
{ {
var kinematicRigidbody = rigidbody.GetValue<KinematicRigidbody>("_kinematicRigidbody"); var kinematicRigidbody = rigidbody.GetValue<KinematicRigidbody>("_kinematicRigidbody");
kinematicRigidbody.velocity = relativeVelocity + Locator.GetCenterOfTheUniverse().GetStaticFrameWorldVelocity(); kinematicRigidbody.velocity = relativeVelocity + Locator.GetCenterOfTheUniverse().GetStaticFrameVelocity_Internal();
} }
else else
{ {
var normalRigidbody = rigidbody.GetValue<Rigidbody>("_rigidbody"); var normalRigidbody = rigidbody.GetValue<Rigidbody>("_rigidbody");
normalRigidbody.velocity = relativeVelocity + Locator.GetCenterOfTheUniverse().GetStaticFrameWorldVelocity(); normalRigidbody.velocity = relativeVelocity + Locator.GetCenterOfTheUniverse().GetStaticFrameVelocity_Internal();
} }
rigidbody.SetValue("_lastVelocity", currentVelocity); rigidbody.SetValue("_lastVelocity", currentVelocity);