mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-04 10:59:22 +00:00
Emotes custom detection
VRIK component checks for desktop mode Disable head rotation when emote is active
This commit is contained in:
parent
71c0068652
commit
4dafd9dcd7
9 changed files with 93 additions and 26 deletions
|
@ -21,6 +21,7 @@ namespace ml_amt
|
|||
Settings.PoseTransitionsChange += this.OnPoseTransitonsChange;
|
||||
Settings.AdjustedMovementChange += this.OnAdjustedMovementChange;
|
||||
Settings.IKOverrideFlyChange += this.OnIKOverrideFlyChange;
|
||||
Settings.DetectEmotesChange += this.OnDetectEmotesChange;
|
||||
|
||||
HarmonyInstance.Patch(
|
||||
typeof(PlayerSetup).GetMethod(nameof(PlayerSetup.ClearAvatar)),
|
||||
|
@ -49,6 +50,7 @@ namespace ml_amt
|
|||
m_localTweaker.SetPoseTransitions(Settings.PoseTransitions);
|
||||
m_localTweaker.SetAdjustedMovement(Settings.AdjustedMovement);
|
||||
m_localTweaker.SetIKOverrideFly(Settings.IKOverrideFly);
|
||||
m_localTweaker.SetDetectEmotes(Settings.DetectEmotes);
|
||||
}
|
||||
|
||||
void OnIKOverrideCrouchChange(bool p_state)
|
||||
|
@ -86,6 +88,11 @@ namespace ml_amt
|
|||
if(m_localTweaker != null)
|
||||
m_localTweaker.SetIKOverrideFly(p_state);
|
||||
}
|
||||
void OnDetectEmotesChange(bool p_state)
|
||||
{
|
||||
if(m_localTweaker != null)
|
||||
m_localTweaker.SetDetectEmotes(p_state);
|
||||
}
|
||||
|
||||
static void OnAvatarClear_Postfix() => ms_instance?.OnAvatarClear();
|
||||
void OnAvatarClear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue