mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-12 09:39:51 +00:00
update OW code references
This commit is contained in:
parent
7732a63b5a
commit
efb000c524
@ -41,7 +41,7 @@ namespace QSB.Animation.Player
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var jumpChargeFraction = _playerController.GetJumpChargeFraction();
|
var jumpChargeFraction = _playerController.GetJumpCrouchFraction();
|
||||||
_crouchValue = jumpChargeFraction;
|
_crouchValue = jumpChargeFraction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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());
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user