using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using ModelReplacement;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: AssemblyCompany("ShyGalPlayermodelsMod")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("ShyGalPlayermodelsMod")]
[assembly: AssemblyTitle("ShyGalPlayermodelsMod")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
internal sealed class NullableAttribute : Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
internal sealed class NullableContextAttribute : Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
}
namespace ShyGalModelReplacement
{
public class MRSHYGALRED : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shygal Red";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void OnEmoteStart(int emoteId)
{
if (Plugin.enableEmoteExpressions.Value)
{
((BodyReplacementBase)this).OnEmoteEnd();
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
switch (emoteId)
{
case 1:
case 51:
case 128:
case 193:
case 226:
case 301:
componentInChildren.SetBlendShapeWeight(10, 100f);
break;
case 2:
case 154:
componentInChildren.SetBlendShapeWeight(7, 50f);
break;
case -2:
case 88:
componentInChildren.SetBlendShapeWeight(4, 100f);
break;
case 17:
case 35:
case 45:
case 132:
case 169:
componentInChildren.SetBlendShapeWeight(5, 75f);
componentInChildren.SetBlendShapeWeight(10, 65f);
break;
}
}
}
protected override void OnEmoteEnd()
{
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 0f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 0f);
componentInChildren.SetBlendShapeWeight(11, 0f);
}
protected override void OnDeath()
{
if (Plugin.enableDeathExpressions.Value)
{
SkinnedMeshRenderer componentInChildren = base.replacementDeadBody.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 100f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 25f);
componentInChildren.SetBlendShapeWeight(11, 0f);
componentInChildren.SetBlendShapeWeight(13, 40f);
}
}
}
public class MRSHYGALBLUE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shygal Blue";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void OnEmoteStart(int emoteId)
{
if (Plugin.enableEmoteExpressions.Value)
{
((BodyReplacementBase)this).OnEmoteEnd();
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
switch (emoteId)
{
case 128:
case 226:
case 301:
componentInChildren.SetBlendShapeWeight(10, 100f);
break;
case 2:
case 154:
componentInChildren.SetBlendShapeWeight(7, 50f);
break;
case -2:
case 88:
componentInChildren.SetBlendShapeWeight(4, 100f);
break;
case 1:
case 17:
case 35:
case 45:
case 51:
case 132:
case 169:
case 193:
componentInChildren.SetBlendShapeWeight(5, 75f);
componentInChildren.SetBlendShapeWeight(10, 65f);
break;
}
}
}
protected override void OnEmoteEnd()
{
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 0f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 20f);
componentInChildren.SetBlendShapeWeight(11, 0f);
}
protected override void OnDeath()
{
if (Plugin.enableDeathExpressions.Value)
{
SkinnedMeshRenderer componentInChildren = base.replacementDeadBody.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 100f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 25f);
componentInChildren.SetBlendShapeWeight(11, 0f);
componentInChildren.SetBlendShapeWeight(13, 40f);
}
}
}
public class MRSHYGALBLACK : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shygal Black";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void OnEmoteStart(int emoteId)
{
if (Plugin.enableEmoteExpressions.Value)
{
((BodyReplacementBase)this).OnEmoteEnd();
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
switch (emoteId)
{
case 1:
case 51:
case 128:
case 193:
case 226:
case 301:
componentInChildren.SetBlendShapeWeight(6, 50f);
componentInChildren.SetBlendShapeWeight(10, 100f);
break;
case 2:
case 154:
componentInChildren.SetBlendShapeWeight(6, 60f);
break;
case -2:
case 88:
componentInChildren.SetBlendShapeWeight(4, 100f);
componentInChildren.SetBlendShapeWeight(6, 20f);
break;
case 17:
case 35:
case 45:
case 132:
case 169:
componentInChildren.SetBlendShapeWeight(5, 90f);
componentInChildren.SetBlendShapeWeight(6, 10f);
break;
}
}
}
protected override void OnEmoteEnd()
{
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 35f);
componentInChildren.SetBlendShapeWeight(7, 0f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 0f);
componentInChildren.SetBlendShapeWeight(11, 0f);
}
protected override void OnDeath()
{
if (Plugin.enableDeathExpressions.Value)
{
SkinnedMeshRenderer componentInChildren = base.replacementDeadBody.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 100f);
componentInChildren.SetBlendShapeWeight(8, 10f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 0f);
componentInChildren.SetBlendShapeWeight(11, 0f);
componentInChildren.SetBlendShapeWeight(13, 40f);
}
}
}
public class MRSHYGALGREEN : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shygal Green";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void OnEmoteStart(int emoteId)
{
if (Plugin.enableEmoteExpressions.Value)
{
((BodyReplacementBase)this).OnEmoteEnd();
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
switch (emoteId)
{
case 1:
case 51:
case 128:
case 226:
case 301:
componentInChildren.SetBlendShapeWeight(10, 100f);
break;
case 2:
case 154:
componentInChildren.SetBlendShapeWeight(3, 20f);
break;
case -2:
case 88:
componentInChildren.SetBlendShapeWeight(3, 20f);
componentInChildren.SetBlendShapeWeight(4, 100f);
break;
case 17:
case 35:
case 45:
case 132:
case 169:
case 193:
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(5, 85f);
componentInChildren.SetBlendShapeWeight(10, 65f);
break;
}
}
}
protected override void OnEmoteEnd()
{
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 50f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 0f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 0f);
componentInChildren.SetBlendShapeWeight(11, 0f);
}
protected override void OnDeath()
{
if (Plugin.enableDeathExpressions.Value)
{
SkinnedMeshRenderer componentInChildren = base.replacementDeadBody.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 100f);
componentInChildren.SetBlendShapeWeight(8, 100f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 100f);
componentInChildren.SetBlendShapeWeight(11, 0f);
componentInChildren.SetBlendShapeWeight(13, 40f);
componentInChildren.SetBlendShapeWeight(14, 65f);
}
}
}
public class MRSHYGALYELLOW : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shygal Yellow";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void OnEmoteStart(int emoteId)
{
if (Plugin.enableEmoteExpressions.Value)
{
((BodyReplacementBase)this).OnEmoteEnd();
if (emoteId == 2)
{
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(0, 100f);
}
}
}
protected override void OnEmoteEnd()
{
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(0, 0f);
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 0f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 0f);
componentInChildren.SetBlendShapeWeight(11, 100f);
}
protected override void OnDeath()
{
if (Plugin.enableDeathExpressions.Value)
{
SkinnedMeshRenderer componentInChildren = base.replacementDeadBody.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(0, 0f);
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 100f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 30f);
componentInChildren.SetBlendShapeWeight(11, 0f);
componentInChildren.SetBlendShapeWeight(13, 100f);
}
}
}
public class MRSHYGALWHITE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shygal White";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void OnEmoteStart(int emoteId)
{
if (Plugin.enableEmoteExpressions.Value)
{
((BodyReplacementBase)this).OnEmoteEnd();
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
switch (emoteId)
{
case 1:
case 51:
case 128:
case 193:
case 226:
case 301:
componentInChildren.SetBlendShapeWeight(10, 100f);
break;
case 2:
case 154:
componentInChildren.SetBlendShapeWeight(7, 50f);
componentInChildren.SetBlendShapeWeight(8, 0f);
break;
case -2:
case 88:
componentInChildren.SetBlendShapeWeight(3, 40f);
componentInChildren.SetBlendShapeWeight(4, 75f);
componentInChildren.SetBlendShapeWeight(8, 15f);
break;
case 45:
case 132:
case 169:
componentInChildren.SetBlendShapeWeight(5, 100f);
componentInChildren.SetBlendShapeWeight(8, 15f);
break;
case 17:
case 35:
componentInChildren.SetBlendShapeWeight(5, 50f);
componentInChildren.SetBlendShapeWeight(8, 5f);
componentInChildren.SetBlendShapeWeight(10, 75f);
break;
}
}
}
protected override void OnEmoteEnd()
{
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 0f);
componentInChildren.SetBlendShapeWeight(8, 35f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 0f);
componentInChildren.SetBlendShapeWeight(11, 0f);
}
protected override void OnDeath()
{
if (Plugin.enableDeathExpressions.Value)
{
SkinnedMeshRenderer componentInChildren = base.replacementDeadBody.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 10f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 100f);
componentInChildren.SetBlendShapeWeight(8, 100f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 0f);
componentInChildren.SetBlendShapeWeight(11, 0f);
componentInChildren.SetBlendShapeWeight(14, 100f);
}
}
}
public class MRSHYGALPURPLE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shygal Purple";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void OnEmoteStart(int emoteId)
{
if (Plugin.enableEmoteExpressions.Value)
{
((BodyReplacementBase)this).OnEmoteEnd();
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
switch (emoteId)
{
case 1:
case 51:
case 128:
case 193:
case 226:
case 301:
componentInChildren.SetBlendShapeWeight(3, 30f);
componentInChildren.SetBlendShapeWeight(10, 70f);
componentInChildren.SetBlendShapeWeight(11, 0f);
break;
case 2:
case 154:
componentInChildren.SetBlendShapeWeight(7, 50f);
componentInChildren.SetBlendShapeWeight(11, 15f);
break;
case -2:
case 88:
componentInChildren.SetBlendShapeWeight(4, 100f);
componentInChildren.SetBlendShapeWeight(11, 0f);
break;
case 17:
case 35:
case 45:
case 132:
case 169:
componentInChildren.SetBlendShapeWeight(5, 75f);
componentInChildren.SetBlendShapeWeight(10, 65f);
componentInChildren.SetBlendShapeWeight(11, 0f);
break;
}
}
}
protected override void OnEmoteEnd()
{
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 0f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 0f);
componentInChildren.SetBlendShapeWeight(11, 30f);
}
protected override void OnDeath()
{
if (Plugin.enableDeathExpressions.Value)
{
SkinnedMeshRenderer componentInChildren = base.replacementDeadBody.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 100f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 20f);
componentInChildren.SetBlendShapeWeight(11, 0f);
componentInChildren.SetBlendShapeWeight(13, 40f);
}
}
}
public class MRSHYGALPINK : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shygal Pink";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void OnEmoteStart(int emoteId)
{
if (Plugin.enableEmoteExpressions.Value)
{
((BodyReplacementBase)this).OnEmoteEnd();
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
switch (emoteId)
{
case 51:
case 226:
componentInChildren.SetBlendShapeWeight(5, 30f);
componentInChildren.SetBlendShapeWeight(10, 100f);
break;
case 2:
case 154:
componentInChildren.SetBlendShapeWeight(2, 100f);
componentInChildren.SetBlendShapeWeight(7, 20f);
componentInChildren.SetBlendShapeWeight(10, 150f);
break;
case -2:
case 88:
componentInChildren.SetBlendShapeWeight(5, 100f);
break;
case 1:
case 17:
case 35:
case 45:
case 128:
case 132:
case 169:
case 193:
case 301:
componentInChildren.SetBlendShapeWeight(5, 100f);
componentInChildren.SetBlendShapeWeight(10, 30f);
break;
}
}
}
protected override void OnEmoteEnd()
{
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(0, 0f);
componentInChildren.SetBlendShapeWeight(2, 0f);
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 0f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 30f);
componentInChildren.SetBlendShapeWeight(11, 0f);
}
protected override void OnDeath()
{
if (Plugin.enableDeathExpressions.Value)
{
SkinnedMeshRenderer componentInChildren = base.replacementDeadBody.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(0, 0f);
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 95f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 100f);
componentInChildren.SetBlendShapeWeight(8, 50f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 30f);
componentInChildren.SetBlendShapeWeight(11, 0f);
componentInChildren.SetBlendShapeWeight(12, 30f);
componentInChildren.SetBlendShapeWeight(14, 30f);
}
}
}
public class MRSHYGALORANGE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "Shygal Orange";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
protected override void OnEmoteStart(int emoteId)
{
if (Plugin.enableEmoteExpressions.Value)
{
((BodyReplacementBase)this).OnEmoteEnd();
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
switch (emoteId)
{
case 1:
case 51:
case 128:
case 193:
case 226:
case 301:
componentInChildren.SetBlendShapeWeight(10, 100f);
break;
case 2:
case 154:
componentInChildren.SetBlendShapeWeight(7, 100f);
break;
case -2:
case 88:
componentInChildren.SetBlendShapeWeight(4, 100f);
break;
case 17:
case 35:
case 45:
case 132:
case 169:
componentInChildren.SetBlendShapeWeight(5, 75f);
componentInChildren.SetBlendShapeWeight(10, 65f);
break;
}
}
}
protected override void OnEmoteEnd()
{
SkinnedMeshRenderer componentInChildren = base.replacementModel.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 0f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 0f);
componentInChildren.SetBlendShapeWeight(11, 0f);
}
protected override void OnDeath()
{
if (Plugin.enableDeathExpressions.Value)
{
SkinnedMeshRenderer componentInChildren = base.replacementDeadBody.GetComponentInChildren<SkinnedMeshRenderer>();
componentInChildren.SetBlendShapeWeight(3, 0f);
componentInChildren.SetBlendShapeWeight(4, 0f);
componentInChildren.SetBlendShapeWeight(5, 0f);
componentInChildren.SetBlendShapeWeight(6, 0f);
componentInChildren.SetBlendShapeWeight(7, 100f);
componentInChildren.SetBlendShapeWeight(8, 0f);
componentInChildren.SetBlendShapeWeight(9, 0f);
componentInChildren.SetBlendShapeWeight(10, 25f);
componentInChildren.SetBlendShapeWeight(11, 0f);
componentInChildren.SetBlendShapeWeight(13, 40f);
}
}
}
[BepInPlugin("com.cydern.shygalplayermodels", "Shy Gal Playermodels", "0.1.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
public static ConfigFile config;
public static ConfigEntry<bool> enableModelForAllSuits { get; private set; }
public static ConfigEntry<bool> enableModelAsDefault { get; private set; }
public static ConfigEntry<string> suitNamesToEnableModel { get; private set; }
public static ConfigEntry<bool> enableEmoteExpressions { get; private set; }
public static ConfigEntry<bool> enableDeathExpressions { get; private set; }
private static void InitConfig()
{
enableEmoteExpressions = config.Bind<bool>("Expressions (Client-Sided)", "Enable Expressions on Emote", true, "When enabled, ShyGals will change expressions when emoting. Expressions can get stuck if TooManyEmotes is installed!");
enableDeathExpressions = config.Bind<bool>("Expressions (Client-Sided)", "Enable Expressions on Death", true, "When enabled, ShyGals will change expressions on death");
}
private void Awake()
{
//IL_00da: Unknown result type (might be due to invalid IL or missing references)
//IL_00e0: Expected O, but got Unknown
config = ((BaseUnityPlugin)this).Config;
InitConfig();
Assets.PopulateAssets();
ModelReplacementAPI.RegisterSuitModelReplacement("Shygal Red", typeof(MRSHYGALRED));
ModelReplacementAPI.RegisterSuitModelReplacement("Shygal Blue", typeof(MRSHYGALBLUE));
ModelReplacementAPI.RegisterSuitModelReplacement("Shygal Black", typeof(MRSHYGALBLACK));
ModelReplacementAPI.RegisterSuitModelReplacement("Shygal Green", typeof(MRSHYGALGREEN));
ModelReplacementAPI.RegisterSuitModelReplacement("Shygal Yellow", typeof(MRSHYGALYELLOW));
ModelReplacementAPI.RegisterSuitModelReplacement("Shygal White", typeof(MRSHYGALWHITE));
ModelReplacementAPI.RegisterSuitModelReplacement("Shygal Purple", typeof(MRSHYGALPURPLE));
ModelReplacementAPI.RegisterSuitModelReplacement("Shygal Pink", typeof(MRSHYGALPINK));
ModelReplacementAPI.RegisterSuitModelReplacement("Shygal Orange", typeof(MRSHYGALORANGE));
Harmony val = new Harmony("com.cydern.shygalplayermodels");
val.PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.cydern.shygalplayermodels is loaded!");
}
}
public static class Assets
{
public static string mainAssetBundleName = "ShyGalPlayermodels";
public static AssetBundle MainAssetBundle = null;
private static string GetAssemblyName()
{
return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_");
}
public static void PopulateAssets()
{
if ((Object)(object)MainAssetBundle == (Object)null)
{
Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName);
using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName);
MainAssetBundle = AssetBundle.LoadFromStream(stream);
}
}
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}