mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-07 12:40:02 +00:00
update OW code references
This commit is contained in:
parent
7732a63b5a
commit
efb000c524
@ -41,7 +41,7 @@ namespace QSB.Animation.Player
|
||||
return;
|
||||
}
|
||||
|
||||
var jumpChargeFraction = _playerController.GetJumpChargeFraction();
|
||||
var jumpChargeFraction = _playerController.GetJumpCrouchFraction();
|
||||
_crouchValue = jumpChargeFraction;
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ namespace QSB.Animation.Patches
|
||||
____animator.SetFloat("RunSpeedY", movementVector.z / 3f);
|
||||
____animator.SetFloat("TurnSpeed", ____playerController.GetTurning());
|
||||
____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.SetBool("InZeroG", isInZeroG || isFlying);
|
||||
____animator.SetBool("UsingJetpack", isInZeroG && PlayerState.IsWearingSuit());
|
||||
|
@ -164,9 +164,9 @@ namespace QSB.DeathSync.Patches
|
||||
var zoomInput = 0f;
|
||||
if (canInteractWith)
|
||||
{
|
||||
XZinput = OWInput.GetValue(InputLibrary.moveXZ, InputMode.All);
|
||||
lookInput = InputLibrary.look.GetValue(false);
|
||||
zoomInput = OWInput.GetValue(InputLibrary.mapZoom, InputMode.All);
|
||||
XZinput = OWInput.GetAxisValue(InputLibrary.moveXZ, InputMode.All);
|
||||
lookInput = InputLibrary.look.GetAxisValue(false);
|
||||
zoomInput = OWInput.GetValue(InputLibrary.mapZoomIn, InputMode.All) - OWInput.GetValue(InputLibrary.mapZoomOut, InputMode.All);
|
||||
lookInput.y *= -1f;
|
||||
zoomInput *= -1f;
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ namespace QSB.Instruments.QSBCamera
|
||||
|
||||
private void UpdateInput()
|
||||
{
|
||||
var input = OWInput.GetValue(InputLibrary.look, false);
|
||||
var input = InputLibrary.look.GetAxisValue(false);
|
||||
_degreesX += input.x * 180f * Time.fixedDeltaTime;
|
||||
_degreesY += input.y * 180f * Time.fixedDeltaTime;
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ namespace QSB.RoastingSync.Patches
|
||||
if (____marshmallow.IsBurned())
|
||||
{
|
||||
showRemovePrompt = true;
|
||||
if (OWInput.IsNewlyPressed(InputLibrary.cancel, true, InputMode.Roasting))
|
||||
if (OWInput.IsNewlyPressed(InputLibrary.cancel, InputMode.Roasting))
|
||||
{
|
||||
____marshmallow.Remove();
|
||||
Locator.GetPlayerAudioController().PlayMarshmallowToss();
|
||||
|
@ -228,12 +228,12 @@ namespace QSB.Syncs.Sectored.Rigidbodies
|
||||
if (isRunningKinematic)
|
||||
{
|
||||
var kinematicRigidbody = rigidbody.GetValue<KinematicRigidbody>("_kinematicRigidbody");
|
||||
kinematicRigidbody.velocity = relativeVelocity + Locator.GetCenterOfTheUniverse().GetStaticFrameWorldVelocity();
|
||||
kinematicRigidbody.velocity = relativeVelocity + Locator.GetCenterOfTheUniverse().GetStaticFrameVelocity_Internal();
|
||||
}
|
||||
else
|
||||
{
|
||||
var normalRigidbody = rigidbody.GetValue<Rigidbody>("_rigidbody");
|
||||
normalRigidbody.velocity = relativeVelocity + Locator.GetCenterOfTheUniverse().GetStaticFrameWorldVelocity();
|
||||
normalRigidbody.velocity = relativeVelocity + Locator.GetCenterOfTheUniverse().GetStaticFrameVelocity_Internal();
|
||||
}
|
||||
|
||||
rigidbody.SetValue("_lastVelocity", currentVelocity);
|
||||
|
Loading…
x
Reference in New Issue
Block a user