mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
push broken mod
This commit is contained in:
parent
742f816d3d
commit
344e3bb6d6
12 changed files with 500 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
using ABI_RC.Core.Savior;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NAK.Melons.ChatBoxExtensions.InputModules;
|
||||
|
||||
internal class InputModuleChatBoxExtensions : CVRInputModule
|
||||
{
|
||||
public bool jump = false;
|
||||
public float emote = -1;
|
||||
public Vector2 lookVector = Vector2.zero;
|
||||
public Vector3 movementVector = Vector3.zero;
|
||||
|
||||
public override void UpdateInput()
|
||||
{
|
||||
CVRInputManager.Instance.jump |= jump;
|
||||
CVRInputManager.Instance.movementVector += movementVector;
|
||||
CVRInputManager.Instance.lookVector += lookVector;
|
||||
if (emote > 0) CVRInputManager.Instance.emote = emote;
|
||||
|
||||
jump = false;
|
||||
emote = -1;
|
||||
lookVector = Vector3.zero;
|
||||
movementVector = Vector3.zero;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue