Decompiled source of MonsterParasite v1.9.0
Mods/MonsterParasite.dll
Decompiled 5 hours ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using System.Text; using BoneLib; using BoneLib.BoneMenu; using BoneLib.Notifications; using Il2CppInterop.Runtime.InteropTypes.Arrays; using Il2CppSLZ.Marrow; using Il2CppSLZ.Marrow.Warehouse; using Il2CppSystem; using Il2CppSystem.Collections.Generic; using LabFusion.Entities; using LabFusion.Network; using LabFusion.Network.Serialization; using LabFusion.Player; using LabFusion.SDK.Metadata; using LabFusion.SDK.Modules; using MelonLoader; using MelonLoader.Preferences; using MelonLoader.Utils; using Microsoft.CodeAnalysis; using MonsterParasite; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: MelonInfo(typeof(MonsterParasiteMod), "Monster Parasite", "1.9.0", "YourName", null)] [assembly: MelonGame("Stress Level Zero", "BONELAB")] [assembly: MelonOptionalDependencies(new string[] { "LabFusion" })] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("MonsterParasite")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("MonsterParasite")] [assembly: AssemblyTitle("MonsterParasite")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace MonsterParasite { public enum ParasiteMode { OtherPlayer, SelfInfection } public enum SelfIncubationMode { Random_3_5_10_Min, RandomRange_3_10_Min, Fixed_3_Min, Fixed_5_Min, Fixed_10_Min, ManualOnly } public enum ParasiteTriggerButton { A_Right, X_Left, B_Right, Y_Left } public enum ParasiteDurationMode { Random_30_60_120, RandomRange_30_120, Fixed_30s, Fixed_60s, Fixed_120s } public enum SpookySoundSource { CustomAndGame, CustomOnly, GameOnly } public enum ParasiteSoundKind : byte { Bloom, RoarCustom, RoarGameClip, Pounce, Cry, Cough } public enum TargetSelection { Random, Nearest, Farthest, LowestHealth, LookedAt } public enum NicknameMode { Replace, Prefix, Suffix } public enum SettingsPreset { Custom, Gentle, Classic, Nightmare, TheThing, CadaverBloom, Maneater } public enum ParasiteStyle { Regular, Maneater, CadaverBloom } public enum ManeaterTrigger { Random, WhenUpset, WhenAlone } public enum AvatarSlot { Regular, ManeaterBaby, ManeaterAdult, CadaverBloom, Before, CadaverHost, ThingForm, GentleForm, ClassicForm, NightmareForm } public struct VesselCandidate { public byte Id; public string Name; public float Health; public float MaxHealth; public Vector3 Pos; } public class Vessel { public byte Id; public string Name; public bool WasAlive; public float DeadTimer; public float InfectedAt; public float NextAuraTime; public Vector3 LastPos; public string AvatarBarcode; public int Stage; public float NextAvatarCheck; } public class MonsterParasiteMod : MelonMod { private class BloomZone { public Vector3 Pos; public float EndTime; public float Radius; public float Phase; public GameObject Go; } private MelonPreferences_Category _prefs; private MelonPreferences_Entry<bool> _prefEnabled; private MelonPreferences_Entry<ParasiteMode> _prefMode; private MelonPreferences_Entry<SelfIncubationMode> _prefSelfIncubationMode; private MelonPreferences_Entry<float> _prefSelfPreWarnSeconds; private MelonPreferences_Entry<ParasiteTriggerButton> _prefInfectButton; private MelonPreferences_Entry<ParasiteDurationMode> _prefDurationMode; private MelonPreferences_Entry<float> _prefPreBloomDelay; private MelonPreferences_Entry<float> _prefWarningSeconds; private MelonPreferences_Entry<float> _prefReinfectCooldown; private MelonPreferences_Entry<float> _prefSpeedMultiplier; private MelonPreferences_Entry<float> _prefPounceForce; private MelonPreferences_Entry<float> _prefPounceCooldown; private MelonPreferences_Entry<int> _prefPounceAirCharges; private MelonPreferences_Entry<float> _prefPhaseStartDelay; private float _phaseHoldUntil; private MelonPreferences_Entry<float> _prefSlamCooldown; private MelonPreferences_Entry<float> _prefThrowBoost; private MelonPreferences_Entry<float> _prefPlayerThrowBoost; private MelonPreferences_Entry<float> _prefShockwaveRadius; private MelonPreferences_Entry<float> _prefShockwaveForce; private MelonPreferences_Entry<float> _prefRegenPerSec; private MelonPreferences_Entry<bool> _prefSporeTrail; private MelonPreferences_Entry<bool> _prefContagionOnGrab; private MelonPreferences_Entry<float> _prefContagionHoldTime; private MelonPreferences_Entry<bool> _prefSwapFusionName; private MelonPreferences_Entry<string> _prefParasiteName; private MelonPreferences_Entry<NicknameMode> _prefNameMode; private MelonPreferences_Entry<bool> _prefNetworkFx; private MelonPreferences_Entry<bool> _prefAutoInfectNext; private MelonPreferences_Entry<bool> _prefAllowEarlyReturn; private MelonPreferences_Entry<TargetSelection> _prefTargetSelection; private MelonPreferences_Entry<int> _prefMaxVessels; private MelonPreferences_Entry<bool> _prefInfectByGrab; private MelonPreferences_Entry<float> _prefGrabInfectTime; private MelonPreferences_Entry<float> _prefInfectionLifespan; private MelonPreferences_Entry<bool> _prefKeepVesselAfterBloom; private MelonPreferences_Entry<bool> _prefTeleportToVessel; private MelonPreferences_Entry<bool> _prefReturnToOgSpot; private MelonPreferences_Entry<bool> _prefNotifications; private MelonPreferences_Entry<bool> _prefVesselAura; private MelonPreferences_Entry<float> _prefAuraInterval; private MelonPreferences_Entry<bool> _prefProximityHeartbeat; private MelonPreferences_Entry<float> _prefProximityRange; private MelonPreferences_Entry<SettingsPreset> _prefPreset; private MelonPreferences_Entry<ParasiteStyle> _prefStyle; private readonly MelonPreferences_Entry<string>[] _slotBarcode = new MelonPreferences_Entry<string>[10]; private readonly MelonPreferences_Entry<string>[] _slotTitle = new MelonPreferences_Entry<string>[10]; private MelonPreferences_Entry<ManeaterTrigger> _prefManeaterTrigger; private MelonPreferences_Entry<float> _prefAdultChancePerMin; private MelonPreferences_Entry<float> _prefAdultRamp; private MelonPreferences_Entry<float> _prefBabyMaxSeconds; private MelonPreferences_Entry<float> _prefBabyUpsetPerSec; private MelonPreferences_Entry<float> _prefBabyAloneBonus; private MelonPreferences_Entry<bool> _prefBabySoothe; private MelonPreferences_Entry<float> _prefBabySootheRate; private MelonPreferences_Entry<float> _prefBabyCompanyRadius; private MelonPreferences_Entry<bool> _prefCryEnabled; private MelonPreferences_Entry<string> _prefBabyTag; private MelonPreferences_Entry<string> _prefBabyUpsetTag; private MelonPreferences_Entry<string> _prefAdultTag; private MelonPreferences_Entry<bool> _prefCrowdPressure; private MelonPreferences_Entry<int> _prefCrowdThreshold; private MelonPreferences_Entry<float> _prefCrowdRadius; private MelonPreferences_Entry<float> _prefCrowdFillSeconds; private MelonPreferences_Entry<bool> _prefCrowdScaling; private MelonPreferences_Entry<float> _prefPassiveBuildMinutes; private MelonPreferences_Entry<float> _prefPressureDecayPerMin; private MelonPreferences_Entry<bool> _prefCrowdWarn; private MelonPreferences_Entry<bool> _prefCoughEnabled; private MelonPreferences_Entry<bool> _prefCoughPatches; private MelonPreferences_Entry<string> _prefSickTag1; private MelonPreferences_Entry<string> _prefSickTag2; private MelonPreferences_Entry<string> _prefCadaverTag; private MelonPreferences_Entry<bool> _prefPhaseNicknames; private MelonPreferences_Entry<NicknameMode> _prefPhaseNameMode; private MelonPreferences_Entry<bool> _prefBodyLanguage; private MelonPreferences_Entry<float> _prefBodyStrength; private MelonPreferences_Entry<bool> _prefExtraParticles; private MelonPreferences_Entry<bool> _prefExtraSounds; private MelonPreferences_Entry<bool> _prefDisguiseStart; private MelonPreferences_Entry<bool> _prefMimicAvatar; private MelonPreferences_Entry<bool> _prefMimicName; private MelonPreferences_Entry<bool> _prefRevealOnGrab; private MelonPreferences_Entry<float> _prefAutoRevealSeconds; private MelonPreferences_Entry<bool> _prefRevealScream; private MelonPreferences_Entry<bool> _prefRevealShockwave; private MelonPreferences_Entry<bool> _prefStealth; private MelonPreferences_Entry<bool> _prefStages; private MelonPreferences_Entry<float> _prefStage2Seconds; private MelonPreferences_Entry<float> _prefStage3Seconds; private MelonPreferences_Entry<float> _prefForceTurnSeconds; private MelonPreferences_Entry<bool> _prefSporeInfect; private MelonPreferences_Entry<float> _prefSporeInfectRadius; private MelonPreferences_Entry<float> _prefSporeExposure; private MelonPreferences_Entry<bool> _prefBloomZones; private MelonPreferences_Entry<float> _prefZoneSeconds; private MelonPreferences_Entry<float> _prefZoneRadius; private MelonPreferences_Entry<bool> _prefZoneInfects; private MelonPreferences_Entry<float> _prefZoneExposure; private MelonPreferences_Entry<int> _prefZoneDensity; private MelonPreferences_Entry<bool> _prefParanoia; private MelonPreferences_Entry<float> _prefParanoiaMin; private MelonPreferences_Entry<float> _prefParanoiaMax; private MelonPreferences_Entry<float> _prefParanoiaVolume; private MelonPreferences_Entry<bool> _prefSymptoms; private MelonPreferences_Entry<float> _prefSymptomMin; private MelonPreferences_Entry<float> _prefSymptomMax; private MelonPreferences_Entry<int> _statBlooms; private MelonPreferences_Entry<int> _statInfections; private MelonPreferences_Entry<int> _statContagions; private MelonPreferences_Entry<float> _statSeconds; private MelonPreferences_Entry<bool> _prefPlayPreBloomSound; private MelonPreferences_Entry<bool> _prefPlayBloomSound; private MelonPreferences_Entry<bool> _prefPlayHeartbeatSound; private MelonPreferences_Entry<bool> _prefPlayRoarSound; private MelonPreferences_Entry<float> _prefSoundVolume; private MelonPreferences_Entry<SpookySoundSource> _prefSoundSource; private MelonPreferences_Entry<bool> _prefLowHpHeartbeat; private Page _rootPage; private Page _vesselPage; private FunctionElement _statusElement; private FunctionElement _statsElement; private bool _menuRebuildPending; private readonly List<Vessel> _vessels = new List<Vessel>(); private Vessel _bloomVessel; private string _bloomVesselName = "Someone"; private byte _bloomVesselId; private float _nextLowHpBeatTime; private float _nextProxBeatTime; private bool _babyPhase; private bool _babyAvatarApplied; private float _babyUpset; private float _babyApplyAt; private float _babyStartTime; private float _nextCryTime; private float _nextProxScan; private int _nearbyCount; private string _currentPhaseTag; private bool _pressureActive; private float _pressure; private int _pressureStage; private int _crowdCount; private bool _wasCrowded; private float _nextCrowdScan; private float _nextCoughTime; private float _nextPressureBeat; private float _lastCrowdWarn; private int _coughCount; private bool _lookWorn; private float _lastNormalNotice; private int _airPounces; private float _lastGroundNotice; private float _convulseUntil; private float _convulseStrength; private float _nextConvulseTick; private readonly Dictionary<AvatarSlot, FunctionElement> _slotElements = new Dictionary<AvatarSlot, FunctionElement>(); private bool _isDisguised; private float _disguiseStartTime; private string _mimicAvatarBarcode; private string _mimicName; private readonly Dictionary<byte, float> _sporeExposure = new Dictionary<byte, float>(); private readonly Dictionary<byte, float> _zoneExposure = new Dictionary<byte, float>(); private float _nextSporeScan; private float _nextZoneScan; private float _nextParanoiaTime; private float _nextSymptomTime; private readonly List<BloomZone> _zones = new List<BloomZone>(); private static readonly string[] SymptomLines = new string[5] { "Something moves under your skin.", "Your hands feel... wrong.", "A wet crackle in your chest.", "You taste copper and spores.", "Your reflection blinked late." }; private readonly Dictionary<byte, string> _pendingContagion = new Dictionary<byte, string>(); private readonly Dictionary<int, (NetworkPlayer player, float grabStart)> _normalGrabs = new Dictionary<int, (NetworkPlayer, float)>(); private bool _selfIncubating; private float _selfIncubationRemaining; private float _nextSelfWarnBeatTime; private bool _sentSelfPreWarning; private bool _pendingBloom; private bool _pendingIsSelfBloom; private float _bloomExecuteTime; private Vector3 _lastKnownVesselPos; private bool _isParasite; private bool _shouldReturnToOgPos; private float _parasiteRemainingTime; private float _nextFadeHeartbeatTime; private bool _sentFadeWarning; private bool _waitingRespawnCleanup; private float _cooldownEndTime; private float _nextUiRefreshTime; private float _nextTrailTime; private float _lastPounceTime = -10f; private float _lastSlamTime = -10f; private Vector3 _savedOgPosition; private string _savedOgAvatarBarcode; private string _savedOgNickname; private bool _changedNickname; private int _tapCount; private float _lastTapTime; private const float TripleTapWindow = 0.65f; private float _holdATimer; private bool _holdARetriggerLock; private float _holdXTimer; private float _lastRoarTime = -10f; private readonly Dictionary<int, Rigidbody> _heldRbs = new Dictionary<int, Rigidbody>(); private readonly Dictionary<int, (NetworkPlayer player, float grabStart)> _heldPlayers = new Dictionary<int, (NetworkPlayer, float)>(); private string _soundsRootDir; private readonly List<AudioClip> _customPreBloom = new List<AudioClip>(); private readonly List<AudioClip> _customBloom = new List<AudioClip>(); private readonly List<AudioClip> _customHeartbeat = new List<AudioClip>(); private readonly List<AudioClip> _customRoars = new List<AudioClip>(); private readonly List<AudioClip> _customCry = new List<AudioClip>(); private readonly List<AudioClip> _customCough = new List<AudioClip>(); private AudioClip _builtinPreBloom; private AudioClip _builtinBloom; private AudioClip _builtinHeartbeat; private AudioClip _builtinCry; private AudioClip _builtinCough; private readonly List<AudioClip> _gameMonsterClips = new List<AudioClip>(); private static Texture2D _sporeTexture; private static float _lastSwapTime = -10f; private readonly Random _rng = new Random(); public static MonsterParasiteMod Instance { get; private set; } public bool NetworkFxEnabled { get { if (_prefNetworkFx != null) { return _prefNetworkFx.Value; } return true; } } public override void OnInitializeMelon() { Instance = this; InitPreferences(); SetupSoundFolders(); _builtinPreBloom = WavLoader.CreateBuiltinPreBloomClip(); _builtinBloom = WavLoader.CreateBuiltinBloomClip(); _builtinHeartbeat = WavLoader.CreateBuiltinHeartbeatClip(); _builtinCry = WavLoader.CreateBuiltinCryClip(); _builtinCough = WavLoader.CreateBuiltinCoughClip(); _sporeTexture = CreateSporeTexture(); ReloadCustomSounds(); Hooking.OnLevelLoaded += OnLevelLoaded; Hooking.OnGrabObject += OnGrabObject; Hooking.OnReleaseObject += OnReleaseObject; FusionBridge.TryInit(); SetupBoneMenu(); ((MelonBase)this).LoggerInstance.Msg("Monster Parasite v1.9.0 initialized!"); } public override void OnDeinitializeMelon() { RestoreOgNicknameIfNeeded(); if (_isParasite) { EndParasiteForm(returnToOgSpot: false); } } private void InitPreferences() { _prefs = MelonPreferences.CreateCategory("MonsterParasite", "Monster Parasite"); _prefEnabled = _prefs.CreateEntry<bool>("Enabled", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefMode = _prefs.CreateEntry<ParasiteMode>("ParasiteMode", ParasiteMode.OtherPlayer, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSelfIncubationMode = _prefs.CreateEntry<SelfIncubationMode>("SelfIncubationMode", SelfIncubationMode.Random_3_5_10_Min, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSelfPreWarnSeconds = _prefs.CreateEntry<float>("SelfPreBurstWarningSeconds", 10f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefInfectButton = _prefs.CreateEntry<ParasiteTriggerButton>("TriggerButton", ParasiteTriggerButton.A_Right, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefDurationMode = _prefs.CreateEntry<ParasiteDurationMode>("DurationMode", ParasiteDurationMode.Random_30_60_120, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPreBloomDelay = _prefs.CreateEntry<float>("PreBloomDelaySeconds", 1.25f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefWarningSeconds = _prefs.CreateEntry<float>("FadeWarningSeconds", 8f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefReinfectCooldown = _prefs.CreateEntry<float>("CooldownSeconds", 10f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSpeedMultiplier = _prefs.CreateEntry<float>("ParasiteSpeedMultiplier", 1.45f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPounceForce = _prefs.CreateEntry<float>("PounceForce", 14.5f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPounceCooldown = _prefs.CreateEntry<float>("PounceCooldownSeconds", 4f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPounceAirCharges = _prefs.CreateEntry<int>("PounceAirCharges", 0, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPhaseStartDelay = _prefs.CreateEntry<float>("SelfPhaseStartDelaySeconds", 15f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSlamCooldown = _prefs.CreateEntry<float>("SlamCooldownSeconds", 2.5f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefThrowBoost = _prefs.CreateEntry<float>("ParasiteThrowBoost", 2.2f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPlayerThrowBoost = _prefs.CreateEntry<float>("PlayerThrowFlingMultiplier", 2.6f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefShockwaveRadius = _prefs.CreateEntry<float>("BloomShockwaveRadius", 5.5f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefShockwaveForce = _prefs.CreateEntry<float>("BloomShockwaveForce", 14f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefRegenPerSec = _prefs.CreateEntry<float>("ParasiteRegenPerSecond", 0f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSporeTrail = _prefs.CreateEntry<bool>("SporeTrail", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefContagionOnGrab = _prefs.CreateEntry<bool>("ContagionInfectOnGrab", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefContagionHoldTime = _prefs.CreateEntry<float>("ContagionGrabHoldSeconds", 1.5f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSwapFusionName = _prefs.CreateEntry<bool>("SwapFusionNameToParasite", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefParasiteName = _prefs.CreateEntry<string>("ParasiteNameText", "PARASITE", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefNameMode = _prefs.CreateEntry<NicknameMode>("ParasiteNameMode", NicknameMode.Replace, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefNetworkFx = _prefs.CreateEntry<bool>("BroadcastFxToOthers", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefAutoInfectNext = _prefs.CreateEntry<bool>("AutoInfectAfterReturn", false, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefAllowEarlyReturn = _prefs.CreateEntry<bool>("AllowReturnWhenever", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefStyle = _prefs.CreateEntry<ParasiteStyle>("Style", ParasiteStyle.Regular, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotBarcode[0] = _prefs.CreateEntry<string>("AvatarV2_Regular_Barcode", "", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotTitle[0] = _prefs.CreateEntry<string>("AvatarV2_Regular_Title", "None", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotBarcode[1] = _prefs.CreateEntry<string>("AvatarV2_ManeaterBaby_Barcode", "", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotTitle[1] = _prefs.CreateEntry<string>("AvatarV2_ManeaterBaby_Title", "None", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotBarcode[2] = _prefs.CreateEntry<string>("AvatarV2_ManeaterAdult_Barcode", "", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotTitle[2] = _prefs.CreateEntry<string>("AvatarV2_ManeaterAdult_Title", "None", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotBarcode[3] = _prefs.CreateEntry<string>("AvatarV2_CadaverBloom_Barcode", "", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotTitle[3] = _prefs.CreateEntry<string>("AvatarV2_CadaverBloom_Title", "None", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotBarcode[4] = _prefs.CreateEntry<string>("AvatarV2_Before_Barcode", "", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotTitle[4] = _prefs.CreateEntry<string>("AvatarV2_Before_Title", "None", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotBarcode[5] = _prefs.CreateEntry<string>("AvatarV2_CadaverHost_Barcode", "", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotTitle[5] = _prefs.CreateEntry<string>("AvatarV2_CadaverHost_Title", "None", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotBarcode[6] = _prefs.CreateEntry<string>("AvatarV2_TheThing_Barcode", "", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotTitle[6] = _prefs.CreateEntry<string>("AvatarV2_TheThing_Title", "None", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotBarcode[7] = _prefs.CreateEntry<string>("AvatarV2_Gentle_Barcode", "", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotTitle[7] = _prefs.CreateEntry<string>("AvatarV2_Gentle_Title", "None", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotBarcode[8] = _prefs.CreateEntry<string>("AvatarV2_Classic_Barcode", "", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotTitle[8] = _prefs.CreateEntry<string>("AvatarV2_Classic_Title", "None", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotBarcode[9] = _prefs.CreateEntry<string>("AvatarV2_Nightmare_Barcode", "", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _slotTitle[9] = _prefs.CreateEntry<string>("AvatarV2_Nightmare_Title", "None", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefTargetSelection = _prefs.CreateEntry<TargetSelection>("TargetSelection", TargetSelection.Random, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefMaxVessels = _prefs.CreateEntry<int>("MaxSimultaneousVessels", 1, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefInfectByGrab = _prefs.CreateEntry<bool>("InfectByGrabbingPlayer", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefGrabInfectTime = _prefs.CreateEntry<float>("GrabInfectHoldSeconds", 2f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefInfectionLifespan = _prefs.CreateEntry<float>("InfectionLifespanSeconds", 0f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefKeepVesselAfterBloom = _prefs.CreateEntry<bool>("KeepVesselInfectedAfterBloom", false, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefTeleportToVessel = _prefs.CreateEntry<bool>("TeleportToDeadVessel", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefReturnToOgSpot = _prefs.CreateEntry<bool>("ReturnToOriginalSpot", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefNotifications = _prefs.CreateEntry<bool>("ShowNotifications", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefVesselAura = _prefs.CreateEntry<bool>("VesselSporeAura", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefAuraInterval = _prefs.CreateEntry<float>("VesselAuraIntervalSeconds", 2.5f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefProximityHeartbeat = _prefs.CreateEntry<bool>("ProximityHeartbeat", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefProximityRange = _prefs.CreateEntry<float>("ProximityHeartbeatRange", 18f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPreset = _prefs.CreateEntry<SettingsPreset>("Preset", SettingsPreset.Custom, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefManeaterTrigger = _prefs.CreateEntry<ManeaterTrigger>("Maneater_AdultTrigger", ManeaterTrigger.Random, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefAdultChancePerMin = _prefs.CreateEntry<float>("Maneater_AdultChancePerMinute", 10f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefAdultRamp = _prefs.CreateEntry<float>("Maneater_ChanceRampPerMinute", 0.5f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefBabyMaxSeconds = _prefs.CreateEntry<float>("Maneater_MaxBabySeconds", 900f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefBabyUpsetPerSec = _prefs.CreateEntry<float>("Maneater_UpsetPerSecond", 0.008f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefBabyAloneBonus = _prefs.CreateEntry<float>("Maneater_UpsetWhenAlonePerSecond", 0.012f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefBabySoothe = _prefs.CreateEntry<bool>("Maneater_SoothedByPlayers", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefBabySootheRate = _prefs.CreateEntry<float>("Maneater_SootheRatePerSecond", 0.03f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefBabyCompanyRadius = _prefs.CreateEntry<float>("Maneater_CompanyRadius", 6f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefCryEnabled = _prefs.CreateEntry<bool>("Maneater_Cry", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefBabyTag = _prefs.CreateEntry<string>("Maneater_BabyTag", "Baby", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefBabyUpsetTag = _prefs.CreateEntry<string>("Maneater_UpsetBabyTag", "Crying Baby", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefAdultTag = _prefs.CreateEntry<string>("Maneater_AdultTag", "Maneater", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefCrowdPressure = _prefs.CreateEntry<bool>("Cadaver_CrowdPressure", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefCrowdThreshold = _prefs.CreateEntry<int>("Cadaver_CrowdMoreThan", 3, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefCrowdRadius = _prefs.CreateEntry<float>("Cadaver_CrowdRadius", 8f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefCrowdFillSeconds = _prefs.CreateEntry<float>("Cadaver_CrowdedFillSeconds", 40f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefCrowdScaling = _prefs.CreateEntry<bool>("Cadaver_MorePeopleFaster", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPassiveBuildMinutes = _prefs.CreateEntry<float>("Cadaver_PassiveBuildMinutes", 15f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPressureDecayPerMin = _prefs.CreateEntry<float>("Cadaver_PressureDecayPerMinute", 0f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefCrowdWarn = _prefs.CreateEntry<bool>("Cadaver_CrowdWarning", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefCoughEnabled = _prefs.CreateEntry<bool>("Cadaver_Coughing", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefCoughPatches = _prefs.CreateEntry<bool>("Cadaver_CoughLeavesPatches", false, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSickTag1 = _prefs.CreateEntry<string>("Cadaver_SickTag1", "Coughing", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSickTag2 = _prefs.CreateEntry<string>("Cadaver_SickTag2", "Swollen", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefCadaverTag = _prefs.CreateEntry<string>("Cadaver_FormTag", "Cadaver Bloom", (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPhaseNicknames = _prefs.CreateEntry<bool>("Visible_PhaseNicknames", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPhaseNameMode = _prefs.CreateEntry<NicknameMode>("Visible_PhaseNameStyle", NicknameMode.Suffix, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefBodyLanguage = _prefs.CreateEntry<bool>("Visible_BodyLanguage", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefBodyStrength = _prefs.CreateEntry<float>("Visible_BodyLanguageStrength", 1f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefExtraParticles = _prefs.CreateEntry<bool>("Extras_ParticlesAndGlow", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefExtraSounds = _prefs.CreateEntry<bool>("Extras_CrySoundsCoughParanoia", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefDisguiseStart = _prefs.CreateEntry<bool>("Thing_StartDisguised", false, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefMimicAvatar = _prefs.CreateEntry<bool>("Thing_MimicVictimAvatar", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefMimicName = _prefs.CreateEntry<bool>("Thing_MimicVictimName", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefRevealOnGrab = _prefs.CreateEntry<bool>("Thing_RevealOnGrab", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefAutoRevealSeconds = _prefs.CreateEntry<float>("Thing_AutoRevealSeconds", 0f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefRevealScream = _prefs.CreateEntry<bool>("Thing_RevealScream", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefRevealShockwave = _prefs.CreateEntry<bool>("Thing_RevealShockwave", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefStealth = _prefs.CreateEntry<bool>("Thing_StealthMode", false, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefStages = _prefs.CreateEntry<bool>("Thing_InfectionStages", false, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefStage2Seconds = _prefs.CreateEntry<float>("Thing_Stage2Seconds", 45f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefStage3Seconds = _prefs.CreateEntry<float>("Thing_Stage3Seconds", 100f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefForceTurnSeconds = _prefs.CreateEntry<float>("Thing_ForceTurnSeconds", 0f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSporeInfect = _prefs.CreateEntry<bool>("Thing_AssimilateByProximity", false, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSporeInfectRadius = _prefs.CreateEntry<float>("Thing_AssimilationRadius", 2.5f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSporeExposure = _prefs.CreateEntry<float>("Thing_AssimilationExposureSeconds", 3f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefBloomZones = _prefs.CreateEntry<bool>("Cadaver_LingeringBloomZones", false, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefZoneSeconds = _prefs.CreateEntry<float>("Cadaver_ZoneSeconds", 90f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefZoneRadius = _prefs.CreateEntry<float>("Cadaver_ZoneRadius", 4f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefZoneInfects = _prefs.CreateEntry<bool>("Cadaver_ZoneInfectsPlayers", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefZoneExposure = _prefs.CreateEntry<float>("Cadaver_ZoneExposureSeconds", 4f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefZoneDensity = _prefs.CreateEntry<int>("Cadaver_ZoneParticleDensity", 14, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefParanoia = _prefs.CreateEntry<bool>("Paranoia_Enabled", false, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefParanoiaMin = _prefs.CreateEntry<float>("Paranoia_MinSeconds", 20f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefParanoiaMax = _prefs.CreateEntry<float>("Paranoia_MaxSeconds", 60f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefParanoiaVolume = _prefs.CreateEntry<float>("Paranoia_Volume", 0.35f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSymptoms = _prefs.CreateEntry<bool>("HostSymptoms_Enabled", false, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSymptomMin = _prefs.CreateEntry<float>("HostSymptoms_MinSeconds", 25f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSymptomMax = _prefs.CreateEntry<float>("HostSymptoms_MaxSeconds", 70f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _statBlooms = _prefs.CreateEntry<int>("StatBlooms", 0, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _statInfections = _prefs.CreateEntry<int>("StatInfections", 0, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _statContagions = _prefs.CreateEntry<int>("StatContagions", 0, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _statSeconds = _prefs.CreateEntry<float>("StatParasiteSeconds", 0f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPlayPreBloomSound = _prefs.CreateEntry<bool>("PlayPreBloomSound", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPlayBloomSound = _prefs.CreateEntry<bool>("PlayBloomSound", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPlayHeartbeatSound = _prefs.CreateEntry<bool>("PlayHeartbeatSound", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefPlayRoarSound = _prefs.CreateEntry<bool>("PlayRoarSound", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSoundVolume = _prefs.CreateEntry<float>("SoundVolume", 1f, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefSoundSource = _prefs.CreateEntry<SpookySoundSource>("SoundSource", SpookySoundSource.CustomAndGame, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); _prefLowHpHeartbeat = _prefs.CreateEntry<bool>("LowHpVesselHeartbeat", true, (string)null, (string)null, false, false, (ValueValidator)null, (string)null); } private void SetupSoundFolders() { _soundsRootDir = Path.Combine(MelonEnvironment.UserDataDirectory, "MonsterParasite", "Sounds"); Directory.CreateDirectory(Path.Combine(_soundsRootDir, "PreBloom")); Directory.CreateDirectory(Path.Combine(_soundsRootDir, "Bloom")); Directory.CreateDirectory(Path.Combine(_soundsRootDir, "Heartbeat")); Directory.CreateDirectory(Path.Combine(_soundsRootDir, "Roars")); Directory.CreateDirectory(Path.Combine(_soundsRootDir, "Cry")); Directory.CreateDirectory(Path.Combine(_soundsRootDir, "Cough")); } private void ReloadCustomSounds() { LoadFolderWavs(Path.Combine(_soundsRootDir, "PreBloom"), _customPreBloom); LoadFolderWavs(Path.Combine(_soundsRootDir, "Bloom"), _customBloom); LoadFolderWavs(Path.Combine(_soundsRootDir, "Heartbeat"), _customHeartbeat); LoadFolderWavs(Path.Combine(_soundsRootDir, "Roars"), _customRoars); LoadFolderWavs(Path.Combine(_soundsRootDir, "Cry"), _customCry); LoadFolderWavs(Path.Combine(_soundsRootDir, "Cough"), _customCough); } private static void LoadFolderWavs(string folder, List<AudioClip> target) { target.Clear(); if (!Directory.Exists(folder)) { return; } string[] files = Directory.GetFiles(folder, "*.wav", SearchOption.TopDirectoryOnly); for (int i = 0; i < files.Length; i++) { AudioClip val = WavLoader.LoadWavFromFile(files[i]); if ((Object)(object)val != (Object)null) { target.Add(val); } } } private void Notify(string title, string message, NotificationType type = (NotificationType)0, float length = 2f, bool stealthHide = false) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Expected O, but got Unknown if ((_prefNotifications == null || _prefNotifications.Value) && (!stealthHide || _prefStealth == null || !_prefStealth.Value)) { Notifier.Send(new Notification { Title = NotificationText.op_Implicit(title), Message = NotificationText.op_Implicit(message), Type = type, ShowTitleOnPopup = true, PopupLength = length }); } } private void SetupBoneMenu() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) _rootPage = Page.Root.CreatePage("Monster Parasite", new Color(0.85f, 0.25f, 0.25f), 0, true); PopulateMenu(); } private void PopulateMenu() { //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_0165: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_01e9: Unknown result type (might be due to invalid IL or missing references) //IL_01fb: Unknown result type (might be due to invalid IL or missing references) //IL_0228: Unknown result type (might be due to invalid IL or missing references) //IL_0254: Unknown result type (might be due to invalid IL or missing references) //IL_027c: Unknown result type (might be due to invalid IL or missing references) //IL_02b3: Unknown result type (might be due to invalid IL or missing references) //IL_02ea: Unknown result type (might be due to invalid IL or missing references) //IL_0312: Unknown result type (might be due to invalid IL or missing references) //IL_033a: Unknown result type (might be due to invalid IL or missing references) //IL_0371: Unknown result type (might be due to invalid IL or missing references) //IL_0399: Unknown result type (might be due to invalid IL or missing references) //IL_03d0: Unknown result type (might be due to invalid IL or missing references) //IL_03f8: Unknown result type (might be due to invalid IL or missing references) //IL_042e: Unknown result type (might be due to invalid IL or missing references) //IL_046b: Unknown result type (might be due to invalid IL or missing references) //IL_049c: Unknown result type (might be due to invalid IL or missing references) //IL_04ae: Unknown result type (might be due to invalid IL or missing references) //IL_04e5: Unknown result type (might be due to invalid IL or missing references) //IL_051c: Unknown result type (might be due to invalid IL or missing references) //IL_0553: Unknown result type (might be due to invalid IL or missing references) //IL_057e: Unknown result type (might be due to invalid IL or missing references) //IL_05b5: Unknown result type (might be due to invalid IL or missing references) //IL_05ec: Unknown result type (might be due to invalid IL or missing references) //IL_0623: Unknown result type (might be due to invalid IL or missing references) //IL_065a: Unknown result type (might be due to invalid IL or missing references) //IL_0691: Unknown result type (might be due to invalid IL or missing references) //IL_06d7: Unknown result type (might be due to invalid IL or missing references) //IL_06fe: Unknown result type (might be due to invalid IL or missing references) //IL_072f: Unknown result type (might be due to invalid IL or missing references) //IL_0741: Unknown result type (might be due to invalid IL or missing references) //IL_0769: Unknown result type (might be due to invalid IL or missing references) //IL_0791: Unknown result type (might be due to invalid IL or missing references) //IL_07b9: Unknown result type (might be due to invalid IL or missing references) //IL_07e1: Unknown result type (might be due to invalid IL or missing references) //IL_0818: Unknown result type (might be due to invalid IL or missing references) //IL_0840: Unknown result type (might be due to invalid IL or missing references) //IL_0868: Unknown result type (might be due to invalid IL or missing references) //IL_089f: Unknown result type (might be due to invalid IL or missing references) //IL_08c7: Unknown result type (might be due to invalid IL or missing references) //IL_08fe: Unknown result type (might be due to invalid IL or missing references) //IL_0935: Unknown result type (might be due to invalid IL or missing references) //IL_097b: Unknown result type (might be due to invalid IL or missing references) //IL_09a3: Unknown result type (might be due to invalid IL or missing references) //IL_09d9: Unknown result type (might be due to invalid IL or missing references) //IL_0a24: Unknown result type (might be due to invalid IL or missing references) //IL_0a36: Unknown result type (might be due to invalid IL or missing references) //IL_0a5e: Unknown result type (might be due to invalid IL or missing references) //IL_0a95: Unknown result type (might be due to invalid IL or missing references) //IL_0acc: Unknown result type (might be due to invalid IL or missing references) //IL_0af4: Unknown result type (might be due to invalid IL or missing references) //IL_0b2b: Unknown result type (might be due to invalid IL or missing references) //IL_0b56: Unknown result type (might be due to invalid IL or missing references) //IL_0b87: Unknown result type (might be due to invalid IL or missing references) //IL_0b99: Unknown result type (might be due to invalid IL or missing references) //IL_0bc1: Unknown result type (might be due to invalid IL or missing references) //IL_0bf8: Unknown result type (might be due to invalid IL or missing references) //IL_0c2f: Unknown result type (might be due to invalid IL or missing references) //IL_0c66: Unknown result type (might be due to invalid IL or missing references) //IL_0c8e: Unknown result type (might be due to invalid IL or missing references) //IL_0cc5: Unknown result type (might be due to invalid IL or missing references) //IL_0cfc: Unknown result type (might be due to invalid IL or missing references) //IL_0d18: Unknown result type (might be due to invalid IL or missing references) //IL_0d49: Unknown result type (might be due to invalid IL or missing references) //IL_0d5b: Unknown result type (might be due to invalid IL or missing references) //IL_0d88: Unknown result type (might be due to invalid IL or missing references) //IL_0dbf: Unknown result type (might be due to invalid IL or missing references) //IL_0df6: Unknown result type (might be due to invalid IL or missing references) //IL_0e2d: Unknown result type (might be due to invalid IL or missing references) //IL_0e64: Unknown result type (might be due to invalid IL or missing references) //IL_0e9b: Unknown result type (might be due to invalid IL or missing references) //IL_0ec3: Unknown result type (might be due to invalid IL or missing references) //IL_0efa: Unknown result type (might be due to invalid IL or missing references) //IL_0f31: Unknown result type (might be due to invalid IL or missing references) //IL_0f59: Unknown result type (might be due to invalid IL or missing references) //IL_0f75: Unknown result type (might be due to invalid IL or missing references) //IL_0fa6: Unknown result type (might be due to invalid IL or missing references) //IL_0fb8: Unknown result type (might be due to invalid IL or missing references) //IL_0fe0: Unknown result type (might be due to invalid IL or missing references) //IL_100c: Unknown result type (might be due to invalid IL or missing references) //IL_1043: Unknown result type (might be due to invalid IL or missing references) //IL_107a: Unknown result type (might be due to invalid IL or missing references) //IL_10a2: Unknown result type (might be due to invalid IL or missing references) //IL_10d9: Unknown result type (might be due to invalid IL or missing references) //IL_1110: Unknown result type (might be due to invalid IL or missing references) //IL_1138: Unknown result type (might be due to invalid IL or missing references) //IL_116f: Unknown result type (might be due to invalid IL or missing references) //IL_1197: Unknown result type (might be due to invalid IL or missing references) //IL_11b4: Unknown result type (might be due to invalid IL or missing references) //IL_11d0: Unknown result type (might be due to invalid IL or missing references) //IL_1201: Unknown result type (might be due to invalid IL or missing references) //IL_1213: Unknown result type (might be due to invalid IL or missing references) //IL_123b: Unknown result type (might be due to invalid IL or missing references) //IL_1268: Unknown result type (might be due to invalid IL or missing references) //IL_1290: Unknown result type (might be due to invalid IL or missing references) //IL_12d6: Unknown result type (might be due to invalid IL or missing references) //IL_12fd: Unknown result type (might be due to invalid IL or missing references) //IL_1339: Unknown result type (might be due to invalid IL or missing references) //IL_134b: Unknown result type (might be due to invalid IL or missing references) //IL_1372: Unknown result type (might be due to invalid IL or missing references) //IL_13bd: Unknown result type (might be due to invalid IL or missing references) //IL_13cf: Unknown result type (might be due to invalid IL or missing references) //IL_13f7: Unknown result type (might be due to invalid IL or missing references) //IL_141f: Unknown result type (might be due to invalid IL or missing references) //IL_1447: Unknown result type (might be due to invalid IL or missing references) //IL_146f: Unknown result type (might be due to invalid IL or missing references) //IL_1497: Unknown result type (might be due to invalid IL or missing references) //IL_14ce: Unknown result type (might be due to invalid IL or missing references) //IL_14fb: Unknown result type (might be due to invalid IL or missing references) //IL_1518: Unknown result type (might be due to invalid IL or missing references) //IL_1535: Unknown result type (might be due to invalid IL or missing references) //IL_1552: Unknown result type (might be due to invalid IL or missing references) //IL_156f: Unknown result type (might be due to invalid IL or missing references) //IL_158b: Unknown result type (might be due to invalid IL or missing references) //IL_15ad: Unknown result type (might be due to invalid IL or missing references) //IL_15ee: Unknown result type (might be due to invalid IL or missing references) //IL_1620: Unknown result type (might be due to invalid IL or missing references) //IL_164d: Unknown result type (might be due to invalid IL or missing references) //IL_1689: Unknown result type (might be due to invalid IL or missing references) //IL_16c5: Unknown result type (might be due to invalid IL or missing references) //IL_16d7: Unknown result type (might be due to invalid IL or missing references) //IL_16ff: Unknown result type (might be due to invalid IL or missing references) //IL_172c: Unknown result type (might be due to invalid IL or missing references) //IL_175c: Unknown result type (might be due to invalid IL or missing references) //IL_1784: Unknown result type (might be due to invalid IL or missing references) //IL_17ab: Unknown result type (might be due to invalid IL or missing references) //IL_17e7: Unknown result type (might be due to invalid IL or missing references) //IL_17fc: Unknown result type (might be due to invalid IL or missing references) //IL_1830: Unknown result type (might be due to invalid IL or missing references) _rootPage.RemoveAll(); _rootPage.CreateBool("Mod Enabled", Color.green, _prefEnabled.Value, (Action<bool>)delegate(bool flag) { _prefEnabled.Value = flag; MelonPreferences.Save(); if (!flag && _isParasite) { EndParasiteForm(_shouldReturnToOgPos); } if (!flag) { StopSelfPhases(restoreLook: true); } }); _rootPage.CreateEnum("Mode", new Color(1f, 0.4f, 0.4f), (Enum)_prefMode.Value, (Action<Enum>)delegate(Enum obj12) { _prefMode.Value = (ParasiteMode)(object)obj12; MelonPreferences.Save(); _tapCount = 0; if (_prefMode.Value == ParasiteMode.SelfInfection) { ClearVessels(); if (!_isParasite && !_pendingBloom) { StartSelfIncubationTimer(); } } else { _selfIncubating = false; StopSelfPhases(restoreLook: true); } UpdateStatusLabel(); }); _rootPage.CreateEnum("Preset", Color.white, (Enum)_prefPreset.Value, (Action<Enum>)delegate(Enum obj12) { _prefPreset.Value = (SettingsPreset)(object)obj12; ApplyPreset(_prefPreset.Value); if (_prefPreset.Value != SettingsPreset.Custom) { ReapplySelfModeState(); } MelonPreferences.Save(); if (_prefPreset.Value != SettingsPreset.Custom) { Notify("Preset Applied", _prefPreset.Value.ToString(), (NotificationType)3, 1.8f); _menuRebuildPending = true; } }); _rootPage.CreateEnum("Style (Regular / Maneater / Cadaver)", new Color(0.9f, 0.6f, 0.3f), (Enum)_prefStyle.Value, (Action<Enum>)delegate(Enum obj12) { _prefStyle.Value = (ParasiteStyle)(object)obj12; MelonPreferences.Save(); ReapplySelfModeState(); }); _rootPage.CreateEnum("Self Incubation Timer", Color.yellow, (Enum)_prefSelfIncubationMode.Value, (Action<Enum>)delegate(Enum obj12) { _prefSelfIncubationMode.Value = (SelfIncubationMode)(object)obj12; MelonPreferences.Save(); if (_prefMode.Value == ParasiteMode.SelfInfection && !_isParasite && !_pendingBloom) { StartSelfIncubationTimer(); } UpdateStatusLabel(); }); BuildAvatarSlotsPage(); _statusElement = _rootPage.CreateFunction("Status: Idle", new Color(1f, 0.55f, 0.55f), (Action)delegate { if (_isParasite) { EndParasiteForm(_shouldReturnToOgPos); } else if (_prefMode.Value == ParasiteMode.SelfInfection) { TriggerSelfBloom(); } else { TryInfectOne(); } }); _rootPage.CreateFunction("Burst / Infect Now", Color.red, (Action)delegate { if (_isParasite) { EndParasiteForm(_shouldReturnToOgPos); } else if (_prefMode.Value == ParasiteMode.SelfInfection) { TriggerSelfBloom(); } else { TryInfectOne(); } }); _rootPage.CreateFunction("Infect Everyone (up to Max)", new Color(0.7f, 0.2f, 0.2f), (Action)InfectEveryone); _rootPage.CreateFunction("Cure All / Reset Timer", Color.gray, (Action)delegate { ClearVessels(); if (_prefMode.Value == ParasiteMode.SelfInfection && !_isParasite && !_pendingBloom) { StartSelfIncubationTimer(); } UpdateStatusLabel(); }); Page obj = _rootPage.CreatePage("Infection & Vessels", new Color(0.8f, 0.3f, 0.5f), 0, true); obj.CreateEnum("Target Selection", Color.cyan, (Enum)_prefTargetSelection.Value, (Action<Enum>)delegate(Enum obj12) { _prefTargetSelection.Value = (TargetSelection)(object)obj12; MelonPreferences.Save(); }); obj.CreateInt("Max Simultaneous Vessels", Color.yellow, _prefMaxVessels.Value, 1, 1, 16, (Action<int>)delegate(int value) { _prefMaxVessels.Value = value; MelonPreferences.Save(); TrimVesselsToMax(); }); obj.CreateBool("Infect By Grabbing Player", Color.green, _prefInfectByGrab.Value, (Action<bool>)delegate(bool value) { _prefInfectByGrab.Value = value; MelonPreferences.Save(); }); obj.CreateFloat("Grab Hold Time To Infect (s)", Color.yellow, _prefGrabInfectTime.Value, 0.25f, 0.5f, 6f, (Action<float>)delegate(float value) { _prefGrabInfectTime.Value = value; MelonPreferences.Save(); }); obj.CreateFloat("Infection Lifespan (s, 0 = forever)", Color.white, _prefInfectionLifespan.Value, 15f, 0f, 900f, (Action<float>)delegate(float value) { _prefInfectionLifespan.Value = value; MelonPreferences.Save(); }); obj.CreateBool("Keep Vessel Infected After Bloom", Color.cyan, _prefKeepVesselAfterBloom.Value, (Action<bool>)delegate(bool value) { _prefKeepVesselAfterBloom.Value = value; MelonPreferences.Save(); }); obj.CreateBool("Teleport To Dead Vessel On Bloom", Color.cyan, _prefTeleportToVessel.Value, (Action<bool>)delegate(bool value) { _prefTeleportToVessel.Value = value; MelonPreferences.Save(); }); obj.CreateBool("Return To Original Spot After", Color.cyan, _prefReturnToOgSpot.Value, (Action<bool>)delegate(bool value) { _prefReturnToOgSpot.Value = value; MelonPreferences.Save(); }); obj.CreateBool("Vessel Spore Aura (local only)", new Color(0.5f, 0.9f, 0.3f), _prefVesselAura.Value, (Action<bool>)delegate(bool value) { _prefVesselAura.Value = value; MelonPreferences.Save(); }); obj.CreateFloat("Aura Interval (s)", Color.white, _prefAuraInterval.Value, 0.25f, 0.5f, 8f, (Action<float>)delegate(float value) { _prefAuraInterval.Value = value; MelonPreferences.Save(); }); obj.CreateBool("Proximity Heartbeat", Color.red, _prefProximityHeartbeat.Value, (Action<bool>)delegate(bool value) { _prefProximityHeartbeat.Value = value; MelonPreferences.Save(); }); obj.CreateFloat("Proximity Range (m)", Color.white, _prefProximityRange.Value, 2f, 4f, 50f, (Action<float>)delegate(float value) { _prefProximityRange.Value = value; MelonPreferences.Save(); }); obj.CreateBool("Show Notifications", Color.white, _prefNotifications.Value, (Action<bool>)delegate(bool value) { _prefNotifications.Value = value; MelonPreferences.Save(); }); _vesselPage = _rootPage.CreatePage("Active Vessels (tap to cure)", new Color(0.9f, 0.5f, 0.5f), 0, true); RefreshVesselPage(); Page obj2 = _rootPage.CreatePage("Abilities & Physics", new Color(1f, 0.5f, 0.2f), 0, true); obj2.CreateFloat("Run Speed Multiplier", Color.yellow, _prefSpeedMultiplier.Value, 0.05f, 1f, 2.5f, (Action<float>)delegate(float value) { _prefSpeedMultiplier.Value = value; MelonPreferences.Save(); }); obj2.CreateFloat("Pounce / Leap Force (R-Stick Click)", Color.magenta, _prefPounceForce.Value, 1f, 6f, 30f, (Action<float>)delegate(float value) { _prefPounceForce.Value = value; MelonPreferences.Save(); }); obj2.CreateFloat("Pounce Cooldown (s)", Color.magenta, _prefPounceCooldown.Value, 0.2f, 0.2f, 15f, (Action<float>)delegate(float value) { _prefPounceCooldown.Value = value; MelonPreferences.Save(); }); obj2.CreateInt("Air Pounces Allowed (0 = ground only)", Color.magenta, _prefPounceAirCharges.Value, 1, 0, 5, (Action<int>)delegate(int value) { _prefPounceAirCharges.Value = value; MelonPreferences.Save(); }); obj2.CreateFloat("Player Throw Fling Boost", Color.red, _prefPlayerThrowBoost.Value, 0.2f, 1f, 5f, (Action<float>)delegate(float value) { _prefPlayerThrowBoost.Value = value; MelonPreferences.Save(); }); obj2.CreateFloat("Prop Throw Power Boost", Color.white, _prefThrowBoost.Value, 0.2f, 1f, 5f, (Action<float>)delegate(float value) { _prefThrowBoost.Value = value; MelonPreferences.Save(); }); obj2.CreateFloat("Ground Slam Shockwave Radius", Color.cyan, _prefShockwaveRadius.Value, 0.5f, 0f, 12f, (Action<float>)delegate(float value) { _prefShockwaveRadius.Value = value; MelonPreferences.Save(); }); obj2.CreateFloat("Ground Slam Force", Color.white, _prefShockwaveForce.Value, 1f, 2f, 30f, (Action<float>)delegate(float value) { _prefShockwaveForce.Value = value; MelonPreferences.Save(); }); obj2.CreateFloat("Ground Slam Cooldown (s)", Color.cyan, _prefSlamCooldown.Value, 0.25f, 0.5f, 15f, (Action<float>)delegate(float value) { _prefSlamCooldown.Value = value; MelonPreferences.Save(); }); obj2.CreateFloat("Health Regen In Parasite Form (/s)", Color.green, _prefRegenPerSec.Value, 0.5f, 0f, 20f, (Action<float>)delegate(float value) { _prefRegenPerSec.Value = value; MelonPreferences.Save(); }); obj2.CreateBool("Spore Trail While Running", new Color(0.5f, 0.9f, 0.3f), _prefSporeTrail.Value, (Action<bool>)delegate(bool value) { _prefSporeTrail.Value = value; MelonPreferences.Save(); }); obj2.CreateFunction("Trigger Ground Slam Now", Color.yellow, (Action)delegate { TriggerGroundSlam(); }); Page obj3 = _rootPage.CreatePage("The Thing (Mimic & Ambush)", new Color(0.6f, 0.9f, 0.9f), 0, true); obj3.CreateBool("Start Disguised (Ambush)", Color.green, _prefDisguiseStart.Value, (Action<bool>)delegate(bool value) { _prefDisguiseStart.Value = value; MelonPreferences.Save(); }); obj3.CreateBool("Mimic Victim Avatar", Color.cyan, _prefMimicAvatar.Value, (Action<bool>)delegate(bool value) { _prefMimicAvatar.Value = value; MelonPreferences.Save(); }); obj3.CreateBool("Mimic Victim Name", Color.cyan, _prefMimicName.Value, (Action<bool>)delegate(bool value) { _prefMimicName.Value = value; MelonPreferences.Save(); }); obj3.CreateBool("Reveal When Grabbing A Player", Color.yellow, _prefRevealOnGrab.Value, (Action<bool>)delegate(bool value) { _prefRevealOnGrab.Value = value; MelonPreferences.Save(); }); obj3.CreateFloat("Auto-Reveal After (s, 0 = manual 3x tap)", Color.white, _prefAutoRevealSeconds.Value, 5f, 0f, 300f, (Action<float>)delegate(float value) { _prefAutoRevealSeconds.Value = value; MelonPreferences.Save(); }); obj3.CreateBool("Reveal Scream", Color.red, _prefRevealScream.Value, (Action<bool>)delegate(bool value) { _prefRevealScream.Value = value; MelonPreferences.Save(); }); obj3.CreateBool("Reveal Shockwave", Color.red, _prefRevealShockwave.Value, (Action<bool>)delegate(bool value) { _prefRevealShockwave.Value = value; MelonPreferences.Save(); }); obj3.CreateBool("Stealth Mode (hide infection hints)", Color.gray, _prefStealth.Value, (Action<bool>)delegate(bool value) { _prefStealth.Value = value; MelonPreferences.Save(); }); obj3.CreateBool("Infection Stages", new Color(0.8f, 0.5f, 0.2f), _prefStages.Value, (Action<bool>)delegate(bool value) { _prefStages.Value = value; MelonPreferences.Save(); }); obj3.CreateFloat("Stage 2 Symptoms At (s)", Color.white, _prefStage2Seconds.Value, 5f, 10f, 300f, (Action<float>)delegate(float value) { _prefStage2Seconds.Value = value; MelonPreferences.Save(); }); obj3.CreateFloat("Stage 3 Critical At (s)", Color.white, _prefStage3Seconds.Value, 5f, 20f, 600f, (Action<float>)delegate(float value) { _prefStage3Seconds.Value = value; MelonPreferences.Save(); }); obj3.CreateFloat("Force Turn After (s, 0 = off)", Color.red, _prefForceTurnSeconds.Value, 15f, 0f, 900f, (Action<float>)delegate(float value) { _prefForceTurnSeconds.Value = value; MelonPreferences.Save(); }); obj3.CreateBool("Assimilate Nearby Players (Parasite Form)", new Color(0.5f, 0.9f, 0.3f), _prefSporeInfect.Value, (Action<bool>)delegate(bool value) { _prefSporeInfect.Value = value; MelonPreferences.Save(); }); obj3.CreateFloat("Assimilation Radius (m)", Color.white, _prefSporeInfectRadius.Value, 0.5f, 1f, 8f, (Action<float>)delegate(float value) { _prefSporeInfectRadius.Value = value; MelonPreferences.Save(); }); obj3.CreateFloat("Assimilation Exposure (s)", Color.white, _prefSporeExposure.Value, 0.5f, 0.5f, 15f, (Action<float>)delegate(float value) { _prefSporeExposure.Value = value; MelonPreferences.Save(); }); Page obj4 = _rootPage.CreatePage("Cadaver Bloom", new Color(0.55f, 0.8f, 0.3f), 0, true); obj4.CreateBool("Lingering Bloom Zones", Color.green, _prefBloomZones.Value, (Action<bool>)delegate(bool value) { _prefBloomZones.Value = value; MelonPreferences.Save(); }); obj4.CreateFloat("Zone Lifetime (s)", Color.white, _prefZoneSeconds.Value, 10f, 10f, 300f, (Action<float>)delegate(float value) { _prefZoneSeconds.Value = value; MelonPreferences.Save(); }); obj4.CreateFloat("Zone Radius (m)", Color.white, _prefZoneRadius.Value, 0.5f, 1f, 10f, (Action<float>)delegate(float value) { _prefZoneRadius.Value = value; MelonPreferences.Save(); }); obj4.CreateBool("Zones Infect Players", Color.red, _prefZoneInfects.Value, (Action<bool>)delegate(bool value) { _prefZoneInfects.Value = value; MelonPreferences.Save(); }); obj4.CreateFloat("Zone Exposure To Infect (s)", Color.white, _prefZoneExposure.Value, 0.5f, 0.5f, 20f, (Action<float>)delegate(float value) { _prefZoneExposure.Value = value; MelonPreferences.Save(); }); obj4.CreateInt("Spore Density", Color.cyan, _prefZoneDensity.Value, 2, 2, 40, (Action<int>)delegate(int value) { _prefZoneDensity.Value = value; MelonPreferences.Save(); }); obj4.CreateFunction("Plant Test Zone Here", Color.magenta, (Action)delegate { //IL_0001: Unknown result type (might be due to invalid IL or missing references) SpawnBloomZone(GetPlayerFloorPosition()); }); Page obj5 = _rootPage.CreatePage("Paranoia & Symptoms", new Color(0.7f, 0.5f, 0.9f), 0, true); obj5.CreateBool("Paranoia Cues (infected around)", Color.magenta, _prefParanoia.Value, (Action<bool>)delegate(bool value) { _prefParanoia.Value = value; MelonPreferences.Save(); }); obj5.CreateFloat("Paranoia Min Gap (s)", Color.white, _prefParanoiaMin.Value, 5f, 5f, 120f, (Action<float>)delegate(float value) { _prefParanoiaMin.Value = value; MelonPreferences.Save(); }); obj5.CreateFloat("Paranoia Max Gap (s)", Color.white, _prefParanoiaMax.Value, 5f, 10f, 240f, (Action<float>)delegate(float value) { _prefParanoiaMax.Value = value; MelonPreferences.Save(); }); obj5.CreateFloat("Paranoia Volume", Color.white, _prefParanoiaVolume.Value, 0.05f, 0.05f, 1f, (Action<float>)delegate(float value) { _prefParanoiaVolume.Value = value; MelonPreferences.Save(); }); obj5.CreateBool("Host Symptoms (Self-Infection)", Color.red, _prefSymptoms.Value, (Action<bool>)delegate(bool value) { _prefSymptoms.Value = value; MelonPreferences.Save(); }); obj5.CreateFloat("Symptom Min Gap (s)", Color.white, _prefSymptomMin.Value, 5f, 5f, 120f, (Action<float>)delegate(float value) { _prefSymptomMin.Value = value; MelonPreferences.Save(); }); obj5.CreateFloat("Symptom Max Gap (s)", Color.white, _prefSymptomMax.Value, 5f, 10f, 240f, (Action<float>)delegate(float value) { _prefSymptomMax.Value = value; MelonPreferences.Save(); }); obj5.CreateFunction("Test Paranoia Cue", Color.yellow, (Action)PlayParanoiaCue); obj5.CreateFunction("Test Symptom", Color.yellow, (Action)DoSymptom); Page obj6 = _rootPage.CreatePage("Maneater (Self Mode)", new Color(0.9f, 0.7f, 0.4f), 0, true); obj6.CreateEnum("Adult Trigger", Color.cyan, (Enum)_prefManeaterTrigger.Value, (Action<Enum>)delegate(Enum obj12) { _prefManeaterTrigger.Value = (ManeaterTrigger)(object)obj12; MelonPreferences.Save(); }); obj6.CreateFloat("Adult Chance (% per minute)", Color.yellow, _prefAdultChancePerMin.Value, 1f, 0f, 100f, (Action<float>)delegate(float value) { _prefAdultChancePerMin.Value = value; MelonPreferences.Save(); }); obj6.CreateFloat("Chance Ramp (x per minute)", Color.white, _prefAdultRamp.Value, 0.1f, 0f, 5f, (Action<float>)delegate(float value) { _prefAdultRamp.Value = value; MelonPreferences.Save(); }); obj6.CreateFloat("Max Baby Time (s, 0 = never forced)", Color.red, _prefBabyMaxSeconds.Value, 30f, 0f, 3600f, (Action<float>)delegate(float value) { _prefBabyMaxSeconds.Value = value; MelonPreferences.Save(); }); obj6.CreateFloat("Upset Per Second", Color.white, _prefBabyUpsetPerSec.Value, 0.002f, 0f, 0.05f, (Action<float>)delegate(float value) { _prefBabyUpsetPerSec.Value = value; MelonPreferences.Save(); }); obj6.CreateFloat("Extra Upset When Alone", Color.white, _prefBabyAloneBonus.Value, 0.002f, 0f, 0.05f, (Action<float>)delegate(float value) { _prefBabyAloneBonus.Value = value; MelonPreferences.Save(); }); obj6.CreateBool("Soothed By Nearby Players", Color.green, _prefBabySoothe.Value, (Action<bool>)delegate(bool value) { _prefBabySoothe.Value = value; MelonPreferences.Save(); }); obj6.CreateFloat("Soothe Rate", Color.white, _prefBabySootheRate.Value, 0.005f, 0f, 0.1f, (Action<float>)delegate(float value) { _prefBabySootheRate.Value = value; MelonPreferences.Save(); }); obj6.CreateFloat("Company Radius (m)", Color.white, _prefBabyCompanyRadius.Value, 1f, 2f, 20f, (Action<float>)delegate(float value) { _prefBabyCompanyRadius.Value = value; MelonPreferences.Save(); }); obj6.CreateBool("Baby Cries", Color.magenta, _prefCryEnabled.Value, (Action<bool>)delegate(bool value) { _prefCryEnabled.Value = value; MelonPreferences.Save(); }); obj6.CreateFunction("Make Baby Upset Now", Color.yellow, (Action)delegate { _babyUpset = 1f; }); obj6.CreateFunction("Grow Up Now", Color.red, (Action)delegate { if (_babyPhase) { BabyGrowsUp(); } }); Page obj7 = _rootPage.CreatePage("Cadaver Crowd Pressure", new Color(0.7f, 0.85f, 0.3f), 0, true); obj7.CreateBool("Crowd Pressure", Color.green, _prefCrowdPressure.Value, (Action<bool>)delegate(bool value) { _prefCrowdPressure.Value = value; MelonPreferences.Save(); }); obj7.CreateInt("Crowded When More Than (people)", Color.yellow, _prefCrowdThreshold.Value, 1, 1, 12, (Action<int>)delegate(int value) { _prefCrowdThreshold.Value = value; MelonPreferences.Save(); }); obj7.CreateFloat("Crowd Radius (m)", Color.white, _prefCrowdRadius.Value, 1f, 3f, 20f, (Action<float>)delegate(float value) { _prefCrowdRadius.Value = value; MelonPreferences.Save(); }); obj7.CreateFloat("Crowded Fill Time (s)", Color.white, _prefCrowdFillSeconds.Value, 5f, 5f, 300f, (Action<float>)delegate(float value) { _prefCrowdFillSeconds.Value = value; MelonPreferences.Save(); }); obj7.CreateBool("More People = Faster", Color.cyan, _prefCrowdScaling.Value, (Action<bool>)delegate(bool value) { _prefCrowdScaling.Value = value; MelonPreferences.Save(); }); obj7.CreateFloat("Passive Build (min to boom, 0 = off)", Color.white, _prefPassiveBuildMinutes.Value, 1f, 0f, 120f, (Action<float>)delegate(float value) { _prefPassiveBuildMinutes.Value = value; MelonPreferences.Save(); }); obj7.CreateFloat("Pressure Decay (per min, 0 = stays)", Color.white, _prefPressureDecayPerMin.Value, 0.01f, 0f, 0.5f, (Action<float>)delegate(float value) { _prefPressureDecayPerMin.Value = value; MelonPreferences.Save(); }); obj7.CreateBool("Crowd Warning", Color.red, _prefCrowdWarn.Value, (Action<bool>)delegate(bool value) { _prefCrowdWarn.Value = value; MelonPreferences.Save(); }); obj7.CreateBool("Coughing Fits", Color.magenta, _prefCoughEnabled.Value, (Action<bool>)delegate(bool value) { _prefCoughEnabled.Value = value; MelonPreferences.Save(); }); obj7.CreateBool("Coughs Leave Spore Patches", new Color(0.5f, 0.9f, 0.3f), _prefCoughPatches.Value, (Action<bool>)delegate(bool value) { _prefCoughPatches.Value = value; MelonPreferences.Save(); }); obj7.CreateFunction("Add 25% Pressure", Color.yellow, (Action)delegate { _pressure = Mathf.Clamp01(_pressure + 0.25f); }); obj7.CreateFunction("Reset Pressure", Color.gray, (Action)delegate { _pressure = 0f; _pressureStage = 0; RestoreOgNicknameIfNeeded(); }); obj7.CreateFunction("BOOM Now", Color.red, (Action)delegate { if (_pressureActive) { _pressure = 1f; } }); Page obj8 = _rootPage.CreatePage("Visible To Everyone vs Extras", new Color(0.5f, 0.8f, 1f), 0, true); obj8.CreateBool("Phase Nicknames (visible to all)", Color.green, _prefPhaseNicknames.Value, (Action<bool>)delegate(bool value) { _prefPhaseNicknames.Value = value; MelonPreferences.Save(); }); obj8.CreateEnum("Phase Name Style", Color.cyan, (Enum)_prefPhaseNameMode.Value, (Action<Enum>)delegate(Enum obj12) { _prefPhaseNameMode.Value = (NicknameMode)(object)obj12; MelonPreferences.Save(); }); obj8.CreateBool("Body Language (visible to all)", Color.green, _prefBodyLanguage.Value, (Action<bool>)delegate(bool value) { _prefBodyLanguage.Value = value; MelonPreferences.Save(); }); obj8.CreateFloat("Body Language Strength", Color.white, _prefBodyStrength.Value, 0.1f, 0f, 3f, (Action<float>)delegate(float value) { _prefBodyStrength.Value = value; MelonPreferences.Save(); }); obj8.CreateBool("Extra Particles (mod only)", new Color(0.5f, 0.9f, 0.3f), _prefExtraParticles.Value, (Action<bool>)delegate(bool value) { _prefExtraParticles.Value = value; MelonPreferences.Save(); }); obj8.CreateBool("Extra Sounds: cry/cough/paranoia (mod only)", Color.magenta, _prefExtraSounds.Value, (Action<bool>)delegate(bool value) { _prefExtraSounds.Value = value; MelonPreferences.Save(); }); Page obj9 = _rootPage.CreatePage("Contagion Outbreak", new Color(0.4f, 0.9f, 0.5f), 0, true); obj9.CreateBool("Infect Next Host On Grab", Color.green, _prefContagionOnGrab.Value, (Action<bool>)delegate(bool value) { _prefContagionOnGrab.Value = value; MelonPreferences.Save(); }); obj9.CreateFloat("Grab Hold Time to Infect (s)", Color.yellow, _prefContagionHoldTime.Value, 0.25f, 0.5f, 5f, (Action<float>)delegate(float value) { _prefContagionHoldTime.Value = value; MelonPreferences.Save(); }); Page obj10 = _rootPage.CreatePage("Audio & Sounds", new Color(1f, 0.35f, 0.7f), 0, true); obj10.CreateBool("Bloom Screech SFX", Color.green, _prefPlayBloomSound.Value, (Action<bool>)delegate(bool value) { _prefPlayBloomSound.Value = value; MelonPreferences.Save(); }); obj10.CreateBool("Pre-Bloom Warning Cue", Color.yellow, _prefPlayPreBloomSound.Value, (Action<bool>)delegate(bool value) { _prefPlayPreBloomSound.Value = value; MelonPreferences.Save(); }); obj10.CreateBool("Heartbeat Audio Warnings", Color.red, _prefPlayHeartbeatSound.Value, (Action<bool>)delegate(bool value) { _prefPlayHeartbeatSound.Value = value; MelonPreferences.Save(); }); obj10.CreateBool("Low-HP Vessel Heartbeat", Color.red, _prefLowHpHeartbeat.Value, (Action<bool>)delegate(bool value) { _prefLowHpHeartbeat.Value = value; MelonPreferences.Save(); }); obj10.CreateBool("Hold-X Monster Roars", Color.magenta, _prefPlayRoarSound.Value, (Action<bool>)delegate(bool value) { _prefPlayRoarSound.Value = value; MelonPreferences.Save(); }); obj10.CreateFloat("Sound Volume", Color.white, _prefSoundVolume.Value, 0.1f, 0.2f, 1.5f, (Action<float>)delegate(float value) { _prefSoundVolume.Value = value; MelonPreferences.Save(); }); obj10.CreateEnum("Sound Pack Source", Color.cyan, (Enum)_prefSoundSource.Value, (Action<Enum>)delegate(Enum obj12) { _prefSoundSource.Value = (SpookySoundSource)(object)obj12; MelonPreferences.Save(); }); obj10.CreateFunction("Test Pre-Bloom Cue", Color.yellow, (Action)delegate { AudioClip clip = PickRandom(_customPreBloom) ?? _builtinPreBloom; PlayPrivateAudio(clip, 0.95f); }); obj10.CreateFunction("Test Bloom Screech", Color.red, (Action)delegate { //IL_0019: Unknown result type (might be due to invalid IL or missing references) AudioClip clip = PickRandom(_customBloom) ?? _builtinBloom; PlayClipAtPosition(clip, GetPlayerCenter(), 1f, 1f); }); obj10.CreateFunction("Test Roar", Color.magenta, (Action)TriggerRoarSound); obj10.CreateFunction("Test Baby Cry", Color.yellow, (Action)delegate { DoCry(); }); obj10.CreateFunction("Test Cough", Color.yellow, (Action)delegate { DoCough(); }); obj10.CreateFunction("Reload Custom .WAVs", Color.cyan, (Action)ReloadCustomSounds); _rootPage.CreateEnum("Trigger Button (3x Tap)", Color.cyan, (Enum)_prefInfectButton.Value, (Action<Enum>)delegate(Enum obj12) { _prefInfectButton.Value = (ParasiteTriggerButton)(object)obj12; _tapCount = 0; MelonPreferences.Save(); }); _rootPage.CreateEnum("Parasite Duration", new Color(1f, 0.45f, 0.45f), (Enum)_prefDurationMode.Value, (Action<Enum>)delegate(Enum obj12) { _prefDurationMode.Value = (ParasiteDurationMode)(object)obj12; MelonPreferences.Save(); }); _rootPage.CreateBool("Return Normal Whenever (Hold/3x A)", Color.cyan, _prefAllowEarlyReturn.Value, (Action<bool>)delegate(bool value) { _prefAllowEarlyReturn.Value = value; MelonPreferences.Save(); }); _rootPage.CreateFloat("Pre-Bloom Warning Delay (s)", Color.yellow, _prefPreBloomDelay.Value, 0.25f, 0.5f, 3f, (Action<float>)delegate(float value) { _prefPreBloomDelay.Value = value; MelonPreferences.Save(); }); _rootPage.CreateFloat("Fade Heartbeat Warning (s)", Color.red, _prefWarningSeconds.Value, 1f, 3f, 20f, (Action<float>)delegate(float value) { _prefWarningSeconds.Value = value; MelonPreferences.Save(); }); Page obj11 = _rootPage.CreatePage("LabFusion Settings", Color.cyan, 0, true); obj11.CreateBool("Rename Me While Parasite", Color.red, _prefSwapFusionName.Value, (Action<bool>)delegate(bool value) { _prefSwapFusionName.Value = value; MelonPreferences.Save(); }); obj11.CreateEnum("Name Style", Color.cyan, (Enum)_prefNameMode.Value, (Action<Enum>)delegate(Enum obj12) { _prefNameMode.Value = (NicknameMode)(object)obj12; MelonPreferences.Save(); }); obj11.CreateFunction("Name Tag Text: set in UserData/MelonPreferences.cfg (ParasiteNameText)", Color.gray, (Action)delegate { }); obj11.CreateBool("Broadcast Bloom/Roar FX To Others", Color.green, _prefNetworkFx.Value, (Action<bool>)delegate(bool value) { _prefNetworkFx.Value = value; MelonPreferences.Save(); }); obj11.CreateBool("Auto-Infect Next On Return", Color.cyan, _prefAutoInfectNext.Value, (Action<bool>)delegate(bool value) { _prefAutoInfectNext.Value = value; MelonPreferences.Save(); }); obj11.CreateFloat("Re-Infect Cooldown (s)", Color.white, _prefReinfectCooldown.Value, 2f, 0f, 60f, (Action<float>)delegate(float value) { _prefReinfectCooldown.Value = value; MelonPreferences.Save(); }); Page val = _rootPage.CreatePage("Stats", Color.white, 0, true); _statsElement = val.CreateFunction(BuildStatsText(), Color.white, (Action)delegate { }); val.CreateFunction("Reset Stats", Color.red, (Action)delegate { _statBlooms.Value = 0; _statInfections.Value = 0; _statContagions.Value = 0; _statSeconds.Value = 0f; MelonPreferences.Save(); if (_statsElement != null) { ((Element)_statsElement).ElementName = BuildStatsText(); } }); UpdateStatusLabel(); } private string BuildStatsText() { int value = Mathf.FloorToInt(_statSeconds.Value / 60f); return $"Blooms {_statBlooms.Value} | Infected {_statInfections.Value} | Spread {_statContagions.Value} | {value}m as parasite"; } private void ApplyPreset(SettingsPreset preset) { if (preset != SettingsPreset.Custom) { ResetThingFeatures(); _prefStyle.Value = ParasiteStyle.Regular; } switch (preset) { case SettingsPreset.Gentle: _prefDurationMode.Value = ParasiteDurationMode.Fixed_30s; _prefSpeedMultiplier.Value = 1.2f; _prefPounceForce.Value = 10f; _prefPounceCooldown.Value = 3.5f; _prefShockwaveRadius.Value = 3.5f; _prefShockwaveForce.Value = 8f; _prefSlamCooldown.Value = 4f; _prefThrowBoost.Value = 1.5f; _prefPlayerThrowBoost.Value = 1.5f; _prefReinfectCooldown.Value = 20f; _prefMaxVessels.Value = 1; _prefRegenPerSec.Value = 0f; break; case SettingsPreset.Classic: _prefDurationMode.Value = ParasiteDurationMode.Random_30_60_120; _prefSpeedMultiplier.Value = 1.45f; _prefPounceForce.Value = 14.5f; _prefPounceCooldown.Value = 4f; _prefShockwaveRadius.Value = 5.5f; _prefShockwaveForce.Value = 14f; _prefSlamCooldown.Value = 2.5f; _prefThrowBoost.Value = 2.2f; _prefPlayerThrowBoost.Value = 2.6f; _prefReinfectCooldown.Value = 10f; _prefMaxVessels.Value = 1; _prefRegenPerSec.Value = 0f; ResetThingFeatures(); break; case SettingsPreset.TheThing: _prefMode.Value = ParasiteMode.OtherPlayer; _prefDurationMode.Value = ParasiteDurationMode.Fixed_60s; _prefMaxVessels.Value = 3; _prefTargetSelection.Value = TargetSelection.Random; _prefReinfectCooldown.Value = 8f; _prefSpeedMultiplier.Value = 1.5f; _prefDisguiseStart.Value = true; _prefMimicAvatar.Value = true; _prefMimicName.Value = true; _prefRevealOnGrab.Value = true; _prefAutoRevealSeconds.Value = 0f; _prefRevealScream.Value = true; _prefRevealShockwave.Value = true; _prefStealth.Value = true; _prefStages.Value = true; _prefStage2Seconds.Value = 45f; _prefStage3Seconds.Value = 100f; _prefForceTurnSeconds.Value = 240f; _prefSporeInfect.Value = true; _prefSporeInfectRadius.Value = 2.5f; _prefSporeExposure.Value = 3f; _prefBloomZones.Value = false; _prefParanoia.Value = true; _prefParanoiaVolume.Value = 0.35f; _prefSymptoms.Value = true; _prefVesselAura.Value = true; break; case SettingsPreset.CadaverBloom: _prefMode.Value = ParasiteMode.SelfInfection; _prefStyle.Value = ParasiteStyle.CadaverBloom; _prefCrowdPressure.Value = true; _prefCrowdThreshold.Value = 3; _prefCrowdRadius.Value = 8f; _prefCrowdFillSeconds.Value = 40f; _prefCrowdScaling.Value = true; _prefPassiveBuildMinutes.Value = 15f; _prefPressureDecayPerMin.Value = 0f; _prefCrowdWarn.Value = true; _prefCoughEnabled.Value = true; _prefCoughPatches.Value = true; _prefDurationMode.Value = ParasiteDurationMode.Fixed_60s; _prefMaxVessels.Value = 6; _prefShockwaveRadius.Value = 6.5f; _prefDisguiseStart.Value = false; _prefStealth.Value = false; _prefStages.Value = true; _prefForceTurnSeconds.Value = 0f; _prefSporeInfect.Value = true; _prefBloomZones.Value = true; _prefZoneSeconds.Value = 90f; _prefZoneRadius.Value = 4f; _prefZoneInfects.Value = true; _prefZoneExposure.Value = 4f; _prefZoneDensity.Value = 18; _prefParanoia.Value = true; _prefVesselAura.Value = true; break; case SettingsPreset.Maneater: _prefMode.Value = ParasiteMode.SelfInfection; _prefStyle.Value = ParasiteStyle.Maneater; _prefManeaterTrigger.Value = ManeaterTrigger.Random; _prefAdultChancePerMin.Value = 10f; _prefAdultRamp.Value = 0.5f; _prefBabyMaxSeconds.Value = 900f; _prefCryEnabled.Value = true; _prefDurationMode.Value = ParasiteDurationMode.Fixed_60s; _prefSpeedMultiplier.Value = 1.6f; _prefPounceForce.Value = 18f; _prefReinfectCooldown.Value = 5f; break; case SettingsPreset.Nightmare: _prefDurationMode.Value = ParasiteDurationMode.Fixed_120s; _prefSpeedMultiplier.Value = 1.9f; _prefPounceForce.Value = 22f; _prefPounceCooldown.Value = 2.5f; _prefShockwaveRadius.Value = 8f; _prefShockwaveForce.Value = 24f; _prefSlamCooldown.Value = 1.5f; _prefThrowBoost.Value = 4f; _prefPlayerThrowBoost.Value = 4f; _prefReinfectCooldown.Value = 3f; _prefMaxVessels.Value = 4; _prefRegenPerSec.Value = 2f; _prefSporeTrail.Value = true; break; } } private static string FindAvatarTitleById(string barcodeId) { try { if (AssetWarehouse.Instance == null) { return null; } List<AvatarCrate> crates = AssetWarehouse.Instance.GetCrates<AvatarCrate>((ICrateFilter<AvatarCrate>)null); if (crates == null) { return null; } Enumerator<AvatarCrate> enumerator = crates.GetEnumerator(); while (enumerator.MoveNext()) { AvatarCrate current = enumerator.Current; if (((current != null) ? ((Scannable)current).Barcode : null) != (Barcode)null && ((Scannable)current).Barcode.ID == barcodeId) { return ((Scannable)current).Title; } } } catch { } return null; } private void RefreshVesselPage() { //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_009a: Unknown result type (might be due to invalid IL or missing references) if (_vesselPage == null) { return; } _vesselPage.RemoveAll(); if (_vessels.Count == 0) { _vesselPage.CreateFunction("No active vessels", Color.gray, (Action)delegate { }); return; } Vessel[] array = _vessels.ToArray(); foreach (Vessel vessel in array) { Vessel captured = vessel; _vesselPage.CreateFunction("Cure " + captured.Name, Color.red, (Action)delegate { RemoveVessel(captured, notifyCured: true); UpdateStatusLabel(); }); } } private void OnLevelLoaded(LevelInfo info) { RestoreOgNicknameIfNeeded(); _vessels.Clear(); _bloomVessel = null; _pendingContagion.Clear(); _normalGrabs.Clear(); RefreshVesselPage(); ClearZones(); _sporeExposure.Clear(); _zoneExposure.Clear(); _isDisguised = false; _nextParanoiaTime = 0f; _nextSymptomTime = 0f; _babyPhase = false; _babyAvatarApplied = false; _pressureActive = false; _pressure = 0f; _pressureStage = 0; _currentPhaseTag = null; _pendingBloom = false; _isParasite = false; _waitingRespawnCleanup = false; _cooldownEndTime = 0f; _savedOgAvatarBarcode = null; _lookWorn = false; _tapCount = 0; _heldRbs.Clear(); _heldPlayers.Clear(); ScanGameMonsterClips(); if (_prefEnabled.Value && _prefMode.Value == ParasiteMode.SelfInfection) { StartSelfIncubationTimer(); } else { _selfIncubating = false; } UpdateStatusLabel(); } private void OnGrabObject(GameObject obj, Hand hand) { if (!_prefEnabled.Value || (Object)(object)obj == (Object)null || (Object)(object)hand == (Object)null) { return; } int instanceID = ((Object)hand).GetInstanceID(); if (!_isParasite) { if (_prefInfectByGrab.Value && _prefMode.Value == ParasiteMode.OtherPlayer && FusionBridge.IsConnected) { NetworkPlayer val = FusionBridge.FindPlayerByTransform(obj.transform); if (val != null && FusionBridge.IsRemote(val)) { _normalGrabs[instanceID] = (val, Time.time); } } return; } Rigidbody val2 = obj.GetComponentInParent<Rigidbody>() ?? obj.GetComponent<Rigidbody>(); if ((Object)(object)val2 != (Object)null) { _heldRbs[instanceID] = val2; } if (FusionBridge.IsConnected) { NetworkPlayer val3 = FusionBridge.FindPlayerByTransform(obj.transform); if (val3 != null) { _heldPlayers[instanceID] = (val3, Time.time); } } } private void OnReleaseObject(Hand hand) { //IL_017c: Unknown result type (might be due to invalid IL or missing references) //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_0193: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Unknown result type (might be due to invalid IL or missing references) //IL_0100: Unknown result type (might be due to invalid IL or missing references) //IL_0105: Unknown result type (might be due to invalid IL or missing references) //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) if (!_prefEnabled.Value || (Object)(object)hand == (Object)null) { return; } int instanceID = ((Object)hand).GetInstanceID(); _normalGrabs.Remove(instanceID); if (!_isParasite) { return; } if (_heldPlayers.TryGetValue(instanceID, out (NetworkPlayer, float) value)) { _heldPlayers.Remove(instanceID); var (val, _) = value; if (val != null && val.HasRig) { RigRefs rigRefs = value.Item1.RigRefs; if ((Object)(object)((rigRefs != null) ? rigRefs.RigManager : null) != (Object)null) { PhysicsRig physicsRig = value.Item1.RigRefs.RigManager.physicsRig; Transform val2 = ((physicsRig != null) ? ((Rig)physicsRig).m_pelvis : null); Rigidbody val3 = (((Object)(object)val2 != (Object)null) ? ((Component)val2).GetComponent<Rigidbody>() : null); if ((Object)(object)val3 != (Object)null && !val3.isKinematic) { float num = Mathf.Max(1f, _prefPlayerThrowBoost.Value); Vector3 val4 = ((Component)hand).transform.forward * (8f * num) + Vector3.up * (4f * num); val3.AddForce(val4, (ForceMode)2); } } } } if (!_heldRbs.TryGetValue(instanceID, out var value2)) { return; } _heldRbs.Remove(instanceID); if ((Object)(object)value2 != (Object)null && !value2.isKinematic && (Object)(object)((Component)value2).GetComponentInParent<RigManager>() == (Object)null) { float num2 = Mathf.Max(1f, _prefThrowBoost.Value); Vector3 velocity = value2.velocity; if (((Vector3)(ref velocity)).sqrMagnitude > 1.2f) { Rigidbody obj = value2; obj.velocity *= num2; } } } public override void OnUpdate() { //IL_020f: Unknown result type (might be due to invalid IL or missing references) //IL_0214: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_022c: Unknown result type (might be due to invalid IL or missing references) if (_menuRebuildPending) { _menuRebuildPending = false; PopulateMenu(); } if (!_prefEnabled.Value || (Object)(object)Player.RigManager == (Object)null || (Object)(object)Player.PhysicsRig == (Object)null) { return; } if (Time.unscaledTime >= _nextUiRefreshTime) { _nextUiRefreshTime = Time.unscaledTime + 0.5f; UpdateStatusLabel(); if (_statsElement != null) { ((Element)_statsElement).ElementName = BuildStatsText(); } } TickZones(); TickConvulsion(); if (_waitingRespawnCleanup) { if ((Object)(object)Player.RigManager.health != (Object)null && Player.RigManager.health.curr_Health > 0f) { _waitingRespawnCleanup = false; RestoreOgNicknameIfNeeded(); if (!string.IsNullOrEmpty(_savedOgAvatarBarcode)) { string savedOgAvatarBarcode = _savedOgAvatarBarcode; _savedOgAvatarBarcode = null; SwapAvatarSafe(savedOgAvatarBarcode); } if (_prefMode.Value == ParasiteMode.SelfInfection) { StartSelfIncubationTimer(); } } return; } if (_isParasite) { TickActiveParasite(); return; } if (!_pendingBloom && GetButtonDown(_prefInfectButton.Value)) { if (Time.unscaledTime - _lastTapTime <= 0.65f) { _tapCount++; } else { _tapCount = 1; } _lastTapTime = Time.unscaledTime; if (_tapCount >= 3) { _tapCount = 0; _holdARetriggerLock = true; if (_prefMode.Value == ParasiteMode.SelfInfection) { TriggerSelfBloom(); } else { TryInfectOne(); } } } if (_prefMode.Value == ParasiteMode.SelfInfection && _selfIncubating && !_pendingBloom) { TickSelfIncubation(); } if (_prefMode.Value == ParasiteMode.SelfInfection && !_pendingBloom) { TickManeaterBaby(); TickCrowdPressure(); } TickAtmosphere(); if (_prefMode.Value == ParasiteMode.OtherPlayer) { TickNormalGrabInfect(); if (_vessels.Count > 0) { TickVessels(); } } if (!_pendingBloom) { return; } Vector3 position; if (_pendingIsSelfBloom) { _lastKnownVesselPos = GetPlayerCenter(); } else if (FusionBridge.TryGetVesselPosition(_bloomVesselId, out position)) { _lastKnownVesselPos = position; } if ((Object)(object)Player.RigManager.health != (Object)null && Player.RigManager.health.curr_Health <= 0f) { _pendingBloom = false; if (_bloomVessel != null) { RemoveVessel(_bloomVessel, notifyCured: false); } _bloomVessel = null; } else if (Time.unscaledTime >= _bloomExecuteTime) { _pendingBloom = false; ExecuteBloom(_pendingIsSelfBloom); } } public override void OnFixedUpdate() { //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00c0: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Unknown result type (might be due to invalid IL or missing references) //IL_0185: Unknown result type (might be due to invalid IL or missing references) if (!_prefEnabled.Value || !_isParasite || _isDisguised || (Object)(object)Player.PhysicsRig == (Object)null || (Object)(object)Player.Head == (Object)null || (Object)(object)Player.LeftController == (Object)null) { return; } Vector2 thumbStickAxis = Player.LeftController.GetThumbStickAxis(); if (((Vector2)(ref thumbStickAxis)).sqrMagnitude < 0.05f) { return; } Vector3 val = Vector3.ProjectOnPlane(Player.Head.forward, Vector3.up); Vector3 normalized = ((Vector3)(ref val)).normalized; val = Vector3.ProjectOnPlane(Player.Head.right, Vector3.up); Vector3 normalized2 = ((Vector3)(ref val)).normalized; val = normalized * thumbStickAxis.y + normalized2 * thumbStickAxis.x; Vector3 normalized3 = ((Vector3)(ref val)).normalized; float num = Mathf.Max(0f, (_prefSpeedMultiplier.Value - 1f) * 14f); PhysicsRig physicsRig = Player.PhysicsRig; Transform val2 = (((Object)(object)physicsRig.leftHand != (Object)null) ? ((Component)physicsRig.leftHand).transform : null); Transform val3 = (((Object)(object)physicsRig.rightHand != (Object)null) ? ((Component)physicsRig.rightHand).transform : null); Enumerator<Rigidbody> enumerator = physicsRig.selfRbs.GetEnumerator(); while (enumerator.MoveNext()) { Rigidbody current = enumerator.Current; if (!((Object)(object)current == (Object)null) && (!((Object)(object)val2 != (Object)null) || !((Component)current).transform.IsChildOf(val2)) && (!((Object)(object)val3 != (Object)null) || !((Component)current).transform.IsChildOf(val3))) { current.AddForce(normalized3 * num, (ForceMode)5); } } } private bool IsGroundedForPounce() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) try { Il2CppStructArray<RaycastHit> val = Physics.RaycastAll(GetPlayerCenter(), Vector3.down, 1.5f); for (int i = 0; i < ((Il2CppArrayBase<RaycastHit>)(object)val).Length; i++) { RaycastHit val2 = ((Il2CppArrayBase<RaycastHit>)(object)val)[i]; if (!((Object)(object)((RaycastHit)(ref val2)).collider == (Object)null)) { val2 = ((Il2CppArrayBase<RaycastHit>)(object)val)[i]; if (!((Object)(object)((Component)((RaycastHit)(ref val2)).collider).GetComponentInParent<RigManager>() != (Object)null)) { return true; } } } } catch { } return false; } private void TriggerPounce() { //IL_00b8: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Unknown result type (might be due to invalid IL or missing references) //IL_0149: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) if (Time.time - _lastPounceTime < Mathf.Max(1.5f, _prefPounceCooldown.Value)) { return; } if (IsGroundedForPounce()) { _airPounces = 0; } else { if (_airPounces >= Mathf.Max(0, _prefPounceAirCharges.Value)) { if (Time.time - _lastGroundNotice > 2f) { _lastGroundNotice = Time.time; Notify("Monster Parasite", "You need ground under you to pounce.", (NotificationType)1, 1.4f); } return; } _airPounces++; } _lastPounceTime = Time.time; float num = Mathf.Max(6f, _prefPounceForce.Value); Vector3 val = Player.Head.forward * 1.15f + Vector3.up * 0.42f; Vector3 normalized = ((Vector3)(ref val)).normalized; Enumerator<Rigidbody> enumerator = Player.PhysicsRig.selfRbs.GetEnumerator(); while (enumerator.MoveNext()) { Rigidbody current = enumerator.Current; if (!((Object)(object)current == (Object)null)) { current.WakeUp(); current.velocity = Vector3.zero; current.AddForce(normalized * num, (ForceMode)2); } } PlayClipAtPosition(PickRandom(_customRoars) ?? _