Decompiled source of No Console Spam v1.8.0
plugins/4902-No_Console_Spam.dll
Decompiled 2 weeks 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.Reflection; using System.Runtime.CompilerServices; using BepInEx; using BepInEx.Configuration; using GameNetcodeStuff; using IL; using IL.GameNetcodeStuff; using Mono.Cecil; using Mono.Cecil.Cil; using MonoMod.Cil; using MonoMod.RuntimeDetour; using MonoMod.Utils; using On; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: AssemblyVersion("0.0.0.0")] namespace bunny; [BepInPlugin("4902.No_Console_Spam", "No_Console_Spam", "1.0.0")] public class no_console_spam : BaseUnityPlugin { private static ConfigEntry<bool> yeet; private static ConfigEntry<uint>[] cfg = new ConfigEntry<uint>[39]; private static ConfigEntry<string> cdlist; private static ConfigEntry<bool> kiwi_debug; private static uint cd_01; private static uint cd_02; private static uint cd_04; private static uint cd_06; private static uint cd_07; private static uint cd_08; private static uint cd_09; private static uint cd_10; private static uint cd_11; private static uint cd_12; private static uint cd_13; private static uint cd_14; private static uint cd_15; private static uint cd_17; private static uint cd_18; private static uint cd_19; private static uint cd_20; private static uint cd_21; private static uint cd_22; private static uint cd_23; private static uint cd_25; private static uint cd_26; private static uint cd_28; private static uint cd_30; private static uint cd_31; private static uint cd_32; private static uint cd_33; private static uint cd_34; private static uint cd_35; private static uint cd_36; private static uint cd_37; private static uint cd_38; private static List<string> r = new List<string>(); public static int _1; public static int _2; public static int _4; public static int _6; public static int[] _7 = new int[2]; public static int[] _8 = new int[2]; public static int _9; public static int[] _10 = new int[7]; public static int _11; public static int[] _12 = new int[9]; public static int[] _13 = new int[9]; public static int _14; public static int[] _15 = new int[6]; public static int[] _17 = new int[2]; public static int _18; public static int[] _19 = new int[5]; public static int _20; public static int[] _21 = new int[3]; public static int[] _22 = new int[15]; public static int[] _23 = new int[11]; public static int[] _25 = new int[6]; public static int _26; public static int _28; public static int _30; public static int _31; public static int[] _32 = new int[4]; public static int[] _33 = new int[2]; public static int _34; public static int[] _35 = new int[4]; public static int[] _36 = new int[8]; public static int _37; public static int[] _38 = new int[3]; private void Awake() { //IL_0906: Unknown result type (might be due to invalid IL or missing references) //IL_0910: Expected O, but got Unknown //IL_0933: Unknown result type (might be due to invalid IL or missing references) //IL_093d: Expected O, but got Unknown //IL_097b: Unknown result type (might be due to invalid IL or missing references) //IL_0985: Expected O, but got Unknown //IL_0980: Unknown result type (might be due to invalid IL or missing references) //IL_09a8: Unknown result type (might be due to invalid IL or missing references) //IL_09b2: Expected O, but got Unknown //IL_09d5: Unknown result type (might be due to invalid IL or missing references) //IL_09df: Expected O, but got Unknown //IL_0a02: Unknown result type (might be due to invalid IL or missing references) //IL_0a0c: Expected O, but got Unknown //IL_0a2f: Unknown result type (might be due to invalid IL or missing references) //IL_0a39: Expected O, but got Unknown //IL_0a5c: Unknown result type (might be due to invalid IL or missing references) //IL_0a66: Expected O, but got Unknown //IL_0a89: Unknown result type (might be due to invalid IL or missing references) //IL_0a93: Expected O, but got Unknown //IL_0ad2: Unknown result type (might be due to invalid IL or missing references) //IL_0adc: Expected O, but got Unknown //IL_0ad7: Unknown result type (might be due to invalid IL or missing references) //IL_0ae4: Unknown result type (might be due to invalid IL or missing references) //IL_0aee: Expected O, but got Unknown //IL_0af6: Unknown result type (might be due to invalid IL or missing references) //IL_0b00: Expected O, but got Unknown //IL_0b25: Unknown result type (might be due to invalid IL or missing references) //IL_0b2f: Expected O, but got Unknown //IL_0b37: Unknown result type (might be due to invalid IL or missing references) //IL_0b41: Expected O, but got Unknown //IL_0b49: Unknown result type (might be due to invalid IL or missing references) //IL_0b53: Expected O, but got Unknown //IL_0b77: Unknown result type (might be due to invalid IL or missing references) //IL_0b81: Expected O, but got Unknown //IL_0ba5: Unknown result type (might be due to invalid IL or missing references) //IL_0baf: Expected O, but got Unknown //IL_0bb7: Unknown result type (might be due to invalid IL or missing references) //IL_0bc1: Expected O, but got Unknown //IL_0bc9: Unknown result type (might be due to invalid IL or missing references) //IL_0bd3: Expected O, but got Unknown //IL_0bdb: Unknown result type (might be due to invalid IL or missing references) //IL_0be5: Expected O, but got Unknown //IL_0c09: Unknown result type (might be due to invalid IL or missing references) //IL_0c13: Expected O, but got Unknown //IL_0c36: Unknown result type (might be due to invalid IL or missing references) //IL_0c40: Expected O, but got Unknown //IL_0c64: Unknown result type (might be due to invalid IL or missing references) //IL_0c6e: Expected O, but got Unknown //IL_0c76: Unknown result type (might be due to invalid IL or missing references) //IL_0c80: Expected O, but got Unknown //IL_0ca4: Unknown result type (might be due to invalid IL or missing references) //IL_0cae: Expected O, but got Unknown //IL_0cd1: Unknown result type (might be due to invalid IL or missing references) //IL_0cdb: Expected O, but got Unknown //IL_0cff: Unknown result type (might be due to invalid IL or missing references) //IL_0d09: Expected O, but got Unknown //IL_0d11: Unknown result type (might be due to invalid IL or missing references) //IL_0d1b: Expected O, but got Unknown //IL_0d40: Unknown result type (might be due to invalid IL or missing references) //IL_0d4a: Expected O, but got Unknown //IL_0d52: Unknown result type (might be due to invalid IL or missing references) //IL_0d5c: Expected O, but got Unknown //IL_0d81: Unknown result type (might be due to invalid IL or missing references) //IL_0d8b: Expected O, but got Unknown //IL_0d93: Unknown result type (might be due to invalid IL or missing references) //IL_0d9d: Expected O, but got Unknown //IL_0dc1: Unknown result type (might be due to invalid IL or missing references) //IL_0dcb: Expected O, but got Unknown //IL_0e09: Unknown result type (might be due to invalid IL or missing references) //IL_0e13: Expected O, but got Unknown //IL_0e0e: Unknown result type (might be due to invalid IL or missing references) //IL_0e36: Unknown result type (might be due to invalid IL or missing references) //IL_0e40: Expected O, but got Unknown //IL_0e63: Unknown result type (might be due to invalid IL or missing references) //IL_0e6d: Expected O, but got Unknown //IL_0e90: Unknown result type (might be due to invalid IL or missing references) //IL_0e9a: Expected O, but got Unknown //IL_0ebd: Unknown result type (might be due to invalid IL or missing references) //IL_0ec7: Expected O, but got Unknown //IL_0eea: Unknown result type (might be due to invalid IL or missing references) //IL_0ef4: Expected O, but got Unknown //IL_0f17: Unknown result type (might be due to invalid IL or missing references) //IL_0f21: Expected O, but got Unknown //IL_0f45: Unknown result type (might be due to invalid IL or missing references) //IL_0f4f: Expected O, but got Unknown //IL_0f57: Unknown result type (might be due to invalid IL or missing references) //IL_0f61: Expected O, but got Unknown //IL_0f69: Unknown result type (might be due to invalid IL or missing references) //IL_0f73: Expected O, but got Unknown //IL_0f97: Unknown result type (might be due to invalid IL or missing references) //IL_0fa1: Expected O, but got Unknown //IL_0fc5: Unknown result type (might be due to invalid IL or missing references) //IL_0fcf: Expected O, but got Unknown //IL_0fd7: Unknown result type (might be due to invalid IL or missing references) //IL_0fe1: Expected O, but got Unknown //IL_0ff8: Unknown result type (might be due to invalid IL or missing references) //IL_1002: Expected O, but got Unknown string text = "number of frames this string should be on cooldown for after being logged. set to 0 to disable the string completely"; string text2 = "number of frames these strings should be on cooldown for after being logged. set to 0 to disable the strings completely"; yeet = ((BaseUnityPlugin)this).Config.Bind<bool>("#", "enabled", true, "whether this mod should be enabled or not\ndefault cooldown values are assuming 60 frames per second, with higher or lower fps you may want to adjust the values"); cdlist = ((BaseUnityPlugin)this).Config.Bind<string>("#", "cd_list", "{01,02,04,06,07,08,09,10,11,12,13,14,15,17,18,19,20,21,22,23,25,26,28,30,31,32,33,34,35,36,37,38}", "if you want to disable individual cooldowns, or if you want to see a variable in a string that the original string would've had (like cd_04), you can disable the cooldown related to that string with this option, which will prevent the transpiler/il from modifying those cooldowns related strings and will be the same as vanilla. to remove a cooldown remove its number from this configs string"); cfg[1] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "01_cooldown", 180u, "[average velocity]\n" + text + "\nconditions: while using the jetpack or while flower snakes are lifting the player\nfrequency: every frame\n(PlayerControllerB.Update)\n\"Average velocity: {0}\""); cd_01 = cfg[1].Value; cfg[2] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "02_cooldown", 480u, "[targetable a]\n" + text + "\nconditions: roughly when certain enemies check if the player is targetable while they're in the ship\nfrequency: every frame (per enemy)\n(EnemyAI.PlayerIsTargetable)\n\"Targetable A\""); cd_02 = cfg[2].Value; cfg[4] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "04_cooldown", 60u, "[level timer]\n" + text + "\nconditions: during the xp increase/decrease animation after the end of a round\nfrequency: every frame for a short duration\n(HUDManager.SetPlayerLevelSmoothly)\n\"Level up timer: {0}\""); cd_04 = cfg[4].Value; cfg[6] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "06_cooldown", 180u, "[called teleport function]\n" + text + "\nconditions: anytime TeleportPlayer() is called, most notably while the player is waiting to be respawned while in orbit it will log every frame\nfrequency: either infrequently or every frame\n(PlayerControllerB.TeleportPlayer)\n\"Called teleport function on (player)\""); cd_06 = cfg[6].Value; cfg[7] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "07_cooldown", 60u, "[company desk timer]\n" + text2 + "\nconditions: while host and while the desk door is open\nfrequency: every frame for a short duration\n(DepositItemsDesk.Update)\n\"Desk: Waiting to grab the items on the desk; {0}\"\n\"Desk: no objects on counter, waiting with door open; {0}\""); cd_07 = cfg[7].Value; cfg[8] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "08_cooldown", 600u, "[shower]\n" + text2 + "\nconditions: while the shower is on and there is spray paint anywhere, and while the shower is on and spray paint is on a player\nfrequency: every frame\n(ShowerTrigger.Update)\n\"Shower is running with players inside!\"\n\"spray decal #{0} found as child of {1}\""); cd_08 = cfg[8].Value; cfg[9] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "09_cooldown", 180u, "[agent speed]\n" + text + "\nconditions: while a giant was chasing a player and then lost sight of the player\nfrequency: every frame for maybe a short duration\n(ForestGiantAI.Update)\n\"agent speed: {0}\""); cd_09 = cfg[9].Value; cfg[10] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "10_cooldown", 0u, "[secondary use a-g]\n" + text2 + "\nconditions: anytime the key that the item secondary use keybind is set to is pressed\nfrequency: up to 7 strings once per press\n(PlayerControllerB.ItemSecondaryUse_performed)\n\"secondary use A\"\n\"secondary use B\"\n\"secondary use C\"\n\"secondary use D\"\n\"secondary use E\"\n\"secondary use F\"\n\"secondary use G\""); cd_10 = cfg[10].Value; cfg[11] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "11_cooldown", 1u, "[player leave web]\n" + text + "\nconditions: when a player leaves a web or other stuff like going through an entrance\nfrequency: once per web, so with 10 webs it would log 10 lines in 1 frame. cooldown doesn't need to be anything above 1\n(SandSpiderWebTrap.PlayerLeaveWeb)\n\"Player leave web called\""); cd_11 = cfg[11].Value; cfg[12] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "12_cooldown", 240u, "[zapgun]\n" + text2 + "\nconditions: activating the zap gun and or zapping something\nfrequency: some strings (multiple times) on each activation and 1 string logged every frame while zapping something\n(PatcherTool.ScanGun)\n\"Scan A\"\n\"Scan B\"\n\"Got shockable transform name :\"\n\"Zap gun light off!!!\"\n(PatcherTool.GunMeetsConditionsToShock)\n\"Target position: {0}\"\n\"Gun not meeting conditions to zap; {0}; {1}; {2}\"\n(PatcherTool.ItemActivate)\n\"Stop shocking gun\"\n\"Start scanning gun\"\n\"Use patcher tool\""); cd_12 = cfg[12].Value; cfg[13] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "13_cooldown", 240u, "[walkie]\n" + text2 + "\nconditions: using the walkie\nfrequency: some strings on each activation\n(WalkieTalkie.SetLocalClientSpeaking)\n\"Set local client speaking on walkie talkie: {0}\"\n(WalkieTalkie.SendWalkieTalkieStartTransmissionSFX)\n\"Walkie talkie A\"\n\"Walkie talkie #{0} {1} B\"\n\"is walkie being used: {0}\"\n\"Walkie talkie #{0} {1} C\"\n(WalkieTalkie.PlayerIsHoldingAnotherWalkieTalkie)\n\"False A\"\n\"False B\"\n\"False C\"\n\"{0}\""); cd_13 = cfg[13].Value; cfg[14] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "14_cooldown", 300u, "[loud horn]\n" + text + "\nconditions: holding the cord\nfrequency: every frame\n(ShipAlarmCord.HoldCordDown)\n\"HOLD horn local client called\""); cd_14 = cfg[14].Value; cfg[15] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "15_cooldown", 480u, "[mouth dog]\n" + text2 + "\nconditions: dog hearing noise\nfrequency: some strings initially and 1 string logged maybe every frame if hearing continuous noise\n(MouthDogAI.DetectNoise)\n\"dog '{0}': Heard noise! Distance: {1} meters\"\n(MouthDogAI.EnrageDogOnLocalClient)\n\"Mouth dog targetPos 1: {0}; distanceToNoise: {1}\"\n\"Mouth dog targetPos 2: {0}\"\n\"Dog lastheardnoisePosition: {0}\"\n(MouthDogAI.ReactToOtherDogHowl)\n\"Setting lastHeardNoisePosition to {0}\"\n(MouthDogAI.EndLungeClientRpc)\n\"Ending lunge\""); cd_15 = cfg[15].Value; cfg[17] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "17_cooldown", 180u, "[hoarder bug]\n" + text2 + "\nconditions: when a hoarder bug finds an item\nfrequency: every frame for maybe a short duration\n(HoarderBugAI.SetGoTowardsTargetObject)\n\": Setting target object and going towards it.\"\n\": i found an object but cannot reach it (or it has been taken by another bug):\""); cd_17 = cfg[17].Value; cfg[18] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "18_cooldown", 300u, "[random nav]\n" + text + "\nconditions: when some enemies search for a position on the map\nfrequency: usually low\n(RoundManager.GetRandomNavMeshPositionInRadius)\n\"Unable to get random nav mesh position in radius! Returning old pos\""); cd_18 = cfg[18].Value; cfg[19] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "19_cooldown", 480u, "[quicksand]\n" + text2 + "\nconditions: interacting with quicksand, can also be triggered by enemies\nfrequency: every frame for a short duration\n(QuicksandTrigger.OnTriggerStay)\n\"Set local player to sinking!\"\n(QuicksandTrigger.OnExit)\n\"Quicksand is not sinking local player!\"\n\"Quicksand is sinking local player!\"\n\"Quicksand is sinking local player! B\"\n\"Quicksand is sinking local player! C\""); cd_19 = cfg[19].Value; cfg[20] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "20_cooldown", 180u, "[not targetable]\n" + text + "\nconditions: player not being targetable while trying to be hit by an enemy (most commonly while invincable)\nfrequency: every frame for maybe a short duration\n(EnemyAI.MeetsStandardPlayerCollisionConditions)\n\"Player is not targetable\""); cd_20 = cfg[20].Value; cfg[21] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "21_cooldown", 300u, "[masked]\n" + text2 + "\nconditions: masked detecting noise\nfrequency: every few frames (per masked)\n(MaskedPlayerEnemy.DetectNoise)\n\"Noise heard relative loudness: {0}\"\n\"Can't hear noise reason A\"\n\"Can't hear noise reason B\""); cd_21 = cfg[21].Value; cfg[22] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "22_cooldown", 600u, "[fox]\n" + text2 + "\nconditions: fox existing during a round\nfrequency: every frame\n(BushWolfEnemy.Update)\n\"Fox spotted meter: {0}\"\n\"Fox A\"\n\"Fox B\"\n\"Fox C; {0}; {1}\"\n\"Fox D\"\n\"Fox E\"\n\"Fox F\"\n\"Fox G\"\n\"Fox H\"\n\"Fox I\"\n\"Fox J\"\n(BushWolfEnemy.GetBiggestWeedPatch)\n\"Bush wolf: No game objects found with spore tag; cancelling\"\n\"{0}: Mold spore {1} at {2} surrounded by {3}\"\n\"Bush wolf: Most surrounding spores is {0}\"\n\"Bush wolf: All spores found were lone spores; cancelling\""); cd_22 = cfg[22].Value; cfg[23] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "23_cooldown", 180u, "[bush]\n" + text2 + "\nconditions: using spray on bushes or loading a level\nfrequency: every frame for a short duration\n(MoldSpreadManager.DestroyMoldAtPosition)\n\"weeds found at pos {0}: {1}\"\n\"Index: {0}\"\n(MoldSpreadManager.GenerateMold)\n\"Growing back mold at index {0}\""); cd_23 = cfg[23].Value; cfg[25] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "25_cooldown", 180u, "[truck]\n" + text2 + "\nconditions: spawning truck, using magnet, collecting items with the truck, collide audio playing\nfrequency: some strings multiple times\n(VehicleController.CollectItemsInTruck)\n\"Collect items in truck A\"\n\"Collect items in truck B; {0}\"\n\"Collect items in truck C; {0}\"\n\"{0}; {1}; {2}\"\n\"Magneted? : {0}\"\n(VehicleController.PlayCollisionAudio)\n\"Play collision audio with type {0} A\""); cd_25 = cfg[25].Value; cfg[26] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "26_cooldown", 300u, "[ropes]\n" + text + "\nconditions: bought cruiser arriving\nfrequency: every frame for a short duration\n(ItemDropship.Update)\n\"Setting position of ropes\""); cd_26 = cfg[26].Value; cfg[28] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "28_cooldown", 300u, "[grabinvalidated]\n" + text + "\nconditions: waiting for a grabbed item to be validated\nfrequency: depends on the connection, if laggy then can be every frame\n(PlayerControllerB.GrabObject)\n\"grabInvalidated: {0}\""); cd_28 = cfg[28].Value; cfg[30] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "30_cooldown", 0u, "[item meshes]\n" + text + "\nconditions: picking up or dropping certain items\nfrequency: once each time\n(GrabbableObject.EnableItemMeshes)\n\"DISABLING/ENABLING SKINNEDMESH:\""); cd_30 = cfg[30].Value; cfg[31] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "31_cooldown", 600u, "[weedkiller]\n" + text + "\nconditions: spraying weed killer\nfrequency: every frame\n(SprayPaintItem)\n\"Spraying, depleting tank\""); cd_31 = cfg[31].Value; cfg[32] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "32_cooldown", 600u, "[spraypaint]\n" + text2 + "\nconditions: spraying spray paint or weed killer\nfrequency: two lines each activation\n(SprayPaintItem)\n\"Start using spray\"\n\"Spray empty\"\n\"Spray not empty\"\n\"Stop using spray\""); cd_32 = cfg[32].Value; cfg[33] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "33_cooldown", 480u, "[flashlight]\n" + text2 + "\nconditions: another player using a flashlight\nfrequency: two lines each activation\n(FlashlightItem)\n\"Flashlight click. playerheldby null?: {0}\"\n\"Flashlight being disabled or enabled: {0}\""); cd_33 = cfg[33].Value; cfg[34] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "34_cooldown", 480u, "[item being used]\n" + text + "\nconditions: another player using an item\nfrequency: one line each activation\n(GrabbableObject)\n\"Is being used set to {0} by RPC\""); cd_34 = cfg[34].Value; cfg[35] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "35_cooldown", 600u, "[masked elevator]\n" + text2 + "\nconditions: masked in mineshaft not close to the elevator\nfrequency: every frame per masked\n(MaskedPlayerEnemy)\n\"goUp: {0}\"\n\"{0}, {1}\"\n\"goUp: {0}, elevatormovingdown: {1}\"\n\"{0}, {1}, {2}\""); cd_35 = cfg[35].Value; cfg[36] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "36_cooldown", 0u, "[item spawning]\n" + text2 + "\nconditions: loading a save file or an item spawning/starting to fall\nfrequency: multiple lines per item\n(GrabbableObject)\n\"Item spawning: {0} ; item parent : {1}\"\n\"Item spawning: \" + itemProperties.itemName + \" ; item parent : null\"\n\"Start falling position: {0}\"\n\"global startposition falltoground for object {0}: {1}\"\n\"Item \" + itemProperties.itemName + \" landed on : \" + hitInfo.collider.name + \" / \" + hitInfo.transform.gameObject.name\n(StartOfRound)\n\"Item {0} #{1} spawn position: {2}\"\n\"Setting scrap value for item: {0}: {1}\"\n\"Loading item save data for item: {0}: {1}\""); cd_36 = cfg[36].Value; cfg[37] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "37_cooldown", 600u, "[baboon hawk]\n" + text + "\nconditions: baboon hawk seeing another enemy\nfrequency: every few frames\n(BaboonBirdAI)\n\"Threat type : {0}; threat level: {1} ; with distance: {2}\""); cd_37 = cfg[37].Value; cfg[38] = ((BaseUnityPlugin)this).Config.Bind<uint>("#", "38_cooldown", 300u, "[kiwi]\n" + text2 + "\nconditions: stealing kiwi egg, kiwi egg screaming, kiwi attacking the player with cruiser nearby\nfrequency: every frame for kiwi egg\n(GiantKiwiAI)\n\"dist: {0}\"\n(KiwiBabyItem)\n\"Baby bird distance to nest : {0}\"\n\"Counting scream timer; timer: {0}\""); cd_38 = cfg[38].Value; kiwi_debug = ((BaseUnityPlugin)this).Config.Bind<bool>("K", "kiwi_debug", false, "[kiwi debug]\nwhether debug logs should be enabled for the giant kiwi enemy.\nif this config is false then the debugEnemyAI bool will be set to false when the kiwi spawns, disabling debug logs for the kiwi.\nsetting to true will disable this config and leave the debugEnemyAI bool unchanged.\nexample strings that will be toggled:\n\"Bird: Seeing visible threat: {0}; type: {1}\"\n\"GiantKiwi(Clone): Collided with player!\""); if (yeet.Value) { if (cdlist.Value.Contains("01")) { PlayerControllerB.Update += new Manipulator(pcb_update); } if (cdlist.Value.Contains("02")) { EnemyAI.PlayerIsTargetable += new Manipulator(enemy_target); } if (cdlist.Value.Contains("04")) { new ILHook((MethodBase)Extensions.GetStateMachineTarget(typeof(HUDManager).GetMethod("SetPlayerLevelSmoothly", BindingFlags.Instance | BindingFlags.NonPublic)), new Manipulator(level)); } if (cdlist.Value.Contains("06")) { PlayerControllerB.TeleportPlayer += new Manipulator(pcb_teleport); } if (cdlist.Value.Contains("07")) { DepositItemsDesk.Update += new Manipulator(desk); } if (cdlist.Value.Contains("08")) { ShowerTrigger.Update += new Manipulator(shower); } if (cdlist.Value.Contains("09")) { ForestGiantAI.Update += new Manipulator(giant); } if (cdlist.Value.Contains("10")) { PlayerControllerB.ItemSecondaryUse_performed += new Manipulator(pcb_secondary); } if (cdlist.Value.Contains("11")) { SandSpiderWebTrap.PlayerLeaveWeb += new Manipulator(spider); } if (cdlist.Value.Contains("12")) { new ILHook((MethodBase)Extensions.GetStateMachineTarget(typeof(PatcherTool).GetMethod("ScanGun", BindingFlags.Instance | BindingFlags.NonPublic)), new Manipulator(patch_1)); PatcherTool.GunMeetsConditionsToShock += new Manipulator(patch_2); PatcherTool.ItemActivate += new Manipulator(patch_3); } if (cdlist.Value.Contains("13")) { WalkieTalkie.SetLocalClientSpeaking += new Manipulator(radio_1); WalkieTalkie.SendWalkieTalkieStartTransmissionSFX += new Manipulator(radio_2); WalkieTalkie.PlayerIsHoldingAnotherWalkieTalkie += new Manipulator(radio_3); } if (cdlist.Value.Contains("14")) { ShipAlarmCord.HoldCordDown += new Manipulator(cord); } if (cdlist.Value.Contains("15")) { MouthDogAI.DetectNoise += new Manipulator(dog_1); MouthDogAI.EnrageDogOnLocalClient += new Manipulator(dog_2); MouthDogAI.ReactToOtherDogHowl += new Manipulator(dog_3); MouthDogAI.EndLungeClientRpc += new Manipulator(dog_4); } if (cdlist.Value.Contains("17")) { HoarderBugAI.SetGoTowardsTargetObject += new Manipulator(hoarder); } if (cdlist.Value.Contains("18")) { RoundManager.GetRandomNavMeshPositionInRadius += new Manipulator(random); } if (cdlist.Value.Contains("19")) { QuicksandTrigger.OnTriggerStay += new Manipulator(sand_1); QuicksandTrigger.OnExit += new Manipulator(sand_2); } if (cdlist.Value.Contains("20")) { EnemyAI.MeetsStandardPlayerCollisionConditions += new Manipulator(enemy_not_targetable); } if (cdlist.Value.Contains("21")) { MaskedPlayerEnemy.DetectNoise += new Manipulator(masked); } if (cdlist.Value.Contains("22")) { BushWolfEnemy.Update += new Manipulator(bushwolf_update); BushWolfEnemy.GetBiggestWeedPatch += new Manipulator(bushwolf_big); } if (cdlist.Value.Contains("23")) { MoldSpreadManager.DestroyMoldAtPosition += new Manipulator(bush_destroy); MoldSpreadManager.GenerateMold += new Manipulator(bush_generate); } if (cdlist.Value.Contains("25")) { VehicleController.CollectItemsInTruck += new Manipulator(truck_collect); VehicleController.PlayCollisionAudio += new Manipulator(truck_audio); } if (cdlist.Value.Contains("26")) { ItemDropship.Update += new Manipulator(ropes); } if (cdlist.Value.Contains("28")) { new ILHook((MethodBase)Extensions.GetStateMachineTarget(typeof(PlayerControllerB).GetMethod("GrabObject", BindingFlags.Instance | BindingFlags.NonPublic)), new Manipulator(grab)); } if (cdlist.Value.Contains("30")) { GrabbableObject.EnableItemMeshes += new Manipulator(item_meshes); } if (cdlist.Value.Contains("31")) { SprayPaintItem.LateUpdate += new Manipulator(spray_1); } if (cdlist.Value.Contains("32")) { SprayPaintItem.ItemActivate += new Manipulator(spray_2); } if (cdlist.Value.Contains("33")) { FlashlightItem.SwitchFlashlight += new Manipulator(flashlight); } if (cdlist.Value.Contains("34")) { GrabbableObject.ActivateItemClientRpc += new Manipulator(item_used); } if (cdlist.Value.Contains("35")) { MaskedPlayerEnemy.UseElevator += new Manipulator(masked_elevator); } if (cdlist.Value.Contains("36")) { GrabbableObject.Start += new Manipulator(item_spawn_1); GrabbableObject.FallToGround += new Manipulator(item_fall); StartOfRound.LoadShipGrabbableItems += new Manipulator(item_spawn_2); } if (cdlist.Value.Contains("37")) { BaboonBirdAI.DoLOSCheck += new Manipulator(baboon); } if (cdlist.Value.Contains("38")) { GiantKiwiAI.NavigateTowardsTargetPlayer += new Manipulator(kiwi_1); KiwiBabyItem.Update += new Manipulator(kiwi_2); } if (!kiwi_debug.Value) { GiantKiwiAI.Start += new hook_Start(kiwi_3); } } } private static void pcb_update(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "Average velocity: {0}")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 6; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_01 == 0) { continue; } val.Emit(OpCodes.Ldarg_0); val.EmitDelegate<Action<PlayerControllerB>>((Action<PlayerControllerB>)delegate(PlayerControllerB self) { if (Time.frameCount - _1 >= cd_01) { _1 = Time.frameCount; Debug.Log((object)("Average velocity: " + self.averageVelocity + " [NCS:" + cd_01 + "-" + _1 + "]")); } }); break; } } private static void enemy_target(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "Targetable A")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_02 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _2 >= cd_02) { _2 = Time.frameCount; Debug.Log((object)("Targetable A [NCS:" + cd_02 + "-" + _2 + "]")); } }); break; } } private static void level(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "Level up timer: {0}")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 8; for (int j = 0; j < 8; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_04 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _4 >= cd_04) { _4 = Time.frameCount; Debug.Log((object)("Level up timer: (timer) [NCS:" + cd_04 + "-" + _4 + "]")); } }); break; } } private static void pcb_teleport(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "Called teleport function on ")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 6; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_06 == 0) { continue; } val.Emit(OpCodes.Ldarg_0); val.EmitDelegate<Action<PlayerControllerB>>((Action<PlayerControllerB>)delegate(PlayerControllerB self) { if (Time.frameCount - _6 >= cd_06) { _6 = Time.frameCount; Debug.Log((object)("Called teleport function on " + ((Object)((Component)self).gameObject).name + " [NCS:" + cd_06 + "-" + _6 + "]")); } }); break; } } private static void desk(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: 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_01b2: 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_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01e7: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "Desk: Waiting to grab the items on the desk; {0}") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 6; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_07 == 0) { continue; } val.Emit(OpCodes.Ldarg_0); val.Emit(OpCodes.Ldfld, typeof(DepositItemsDesk).GetField("grabObjectsTimer", BindingFlags.Instance | BindingFlags.NonPublic)); val.EmitDelegate<Action<float>>((Action<float>)delegate(float timer) { if (Time.frameCount - _7[0] >= cd_07) { _7[0] = Time.frameCount; Debug.Log((object)("Desk: Waiting to grab the items on the desk; " + timer + " [NCS:" + cd_07 + "-" + _7[0] + "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "Desk: no objects on counter, waiting with door open; {0}")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 6; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_07 == 0) { continue; } val.Emit(OpCodes.Ldarg_0); val.Emit(OpCodes.Ldfld, typeof(DepositItemsDesk).GetField("waitingWithDoorOpenTimer", BindingFlags.Instance | BindingFlags.NonPublic)); val.EmitDelegate<Action<float>>((Action<float>)delegate(float timer) { if (Time.frameCount - _7[1] >= cd_07) { _7[1] = Time.frameCount; Debug.Log((object)("Desk: no objects on counter, waiting with door open; " + timer + " [NCS:" + cd_07 + "-" + _7[1] + "]")); } }); } } } private static void shower(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_0186: Unknown result type (might be due to invalid IL or missing references) //IL_01b3: Unknown result type (might be due to invalid IL or missing references) //IL_01bf: Unknown result type (might be due to invalid IL or missing references) //IL_01e1: Unknown result type (might be due to invalid IL or missing references) //IL_01ed: Unknown result type (might be due to invalid IL or missing references) //IL_020f: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "Shower is running with players inside!") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_08 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _8[0] >= cd_08) { _8[0] = Time.frameCount; Debug.Log((object)("Shower is running with players inside! [NCS:" + cd_08 + "-" + _8[0] + "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "spray decal #{0} found as child of {1}")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 11; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_08 == 0) { continue; } val.Emit(OpCodes.Ldarg_0); val.Emit(OpCodes.Ldfld, typeof(ShowerTrigger).GetField("cleanDecalIndex", BindingFlags.Instance | BindingFlags.NonPublic)); val.Emit(OpCodes.Ldarg_0); val.Emit(OpCodes.Ldfld, typeof(ShowerTrigger).GetField("playersInShower", BindingFlags.Instance | BindingFlags.NonPublic)); val.Emit(OpCodes.Ldloc_1); val.EmitDelegate<Action<int, List<PlayerControllerB>, int>>((Action<int, List<PlayerControllerB>, int>)delegate(int num, List<PlayerControllerB> players, int index) { if (Time.frameCount - _8[1] >= cd_08) { _8[1] = Time.frameCount; Debug.Log((object)string.Concat("spray decal #", num, " found as child of ", players[index], " [NCS:", cd_08, "-", _8[1], "]")); } }); } } } private static void giant(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "agent speed: {0}")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 7; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_09 == 0) { continue; } val.Emit(OpCodes.Ldarg_0); val.EmitDelegate<Action<EnemyAI>>((Action<EnemyAI>)delegate(EnemyAI self) { if (Time.frameCount - _9 >= cd_09) { _9 = Time.frameCount; Debug.Log((object)("agent speed: " + self.agent.speed + " [NCS:" + cd_09 + "-" + _9 + "]")); } }); break; } } private static void pcb_secondary(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Unknown result type (might be due to invalid IL or missing references) //IL_025c: Unknown result type (might be due to invalid IL or missing references) //IL_0330: Unknown result type (might be due to invalid IL or missing references) //IL_0404: Unknown result type (might be due to invalid IL or missing references) //IL_04d8: Unknown result type (might be due to invalid IL or missing references) //IL_05ac: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "secondary use A") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_10 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _10[0] >= cd_10) { _10[0] = Time.frameCount; Debug.Log((object)("secondary use A [NCS:" + cd_10 + "-" + _10[0] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "secondary use B") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_10 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _10[1] >= cd_10) { _10[1] = Time.frameCount; Debug.Log((object)("secondary use B [NCS:" + cd_10 + "-" + _10[1] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "secondary use C") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_10 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _10[2] >= cd_10) { _10[2] = Time.frameCount; Debug.Log((object)("secondary use C [NCS:" + cd_10 + "-" + _10[2] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "secondary use D") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_10 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _10[3] >= cd_10) { _10[3] = Time.frameCount; Debug.Log((object)("secondary use D [NCS:" + cd_10 + "-" + _10[3] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "secondary use E") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_10 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _10[4] >= cd_10) { _10[4] = Time.frameCount; Debug.Log((object)("secondary use E [NCS:" + cd_10 + "-" + _10[4] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "secondary use F") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_10 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _10[5] >= cd_10) { _10[5] = Time.frameCount; Debug.Log((object)("secondary use F [NCS:" + cd_10 + "-" + _10[5] + "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "secondary use G")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_10 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _10[6] >= cd_10) { _10[6] = Time.frameCount; Debug.Log((object)("secondary use G [NCS:" + cd_10 + "-" + _10[6] + "]")); } }); } } } private static void spider(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "Player leave web called")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_11 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _11 >= cd_11) { _11 = Time.frameCount; Debug.Log((object)("Player leave web called [NCS:" + cd_11 + "-" + _11 + "]")); } }); break; } } private static void patch_1(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_0188: 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_0265: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "Scan A") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_12 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _12[0] >= cd_12) { _12[0] = Time.frameCount; Debug.Log((object)("Scan A [NCS:" + cd_12 + "-" + _12[0] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Scan B") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_12 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _12[1] >= cd_12) { _12[1] = Time.frameCount; Debug.Log((object)("Scan B [NCS:" + cd_12 + "-" + _12[1] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Got shockable transform name : ") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 7; for (int j = 0; j < 7; j++) { if (j != 1) { l.Instrs[i + j].OpCode = OpCodes.Nop; } } if (cd_12 == 0) { continue; } val.EmitDelegate<Action<IShockableWithGun>>((Action<IShockableWithGun>)delegate(IShockableWithGun component) { if (Time.frameCount - _12[2] >= cd_12) { _12[2] = Time.frameCount; Debug.Log((object)("Got shockable transform name : " + ((Object)((Component)component.GetShockableTransform()).gameObject).name + " [NCS:" + cd_12 + "-" + _12[2] + "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "Zap gun light off!!!")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_12 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _12[3] >= cd_12) { _12[3] = Time.frameCount; Debug.Log((object)("Zap gun light off!!! [NCS:" + cd_12 + "-" + _12[3] + "]")); } }); } } } private static void patch_2(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: 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_0190: 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_01ba: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_01e6: Unknown result type (might be due to invalid IL or missing references) //IL_01f2: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "Target position: {0}") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 5; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_12 == 0) { continue; } val.Emit(OpCodes.Ldarg_2); val.EmitDelegate<Action<Vector3>>((Action<Vector3>)delegate(Vector3 position) { //IL_0039: Unknown result type (might be due to invalid IL or missing references) if (Time.frameCount - _12[4] >= cd_12) { _12[4] = Time.frameCount; Debug.Log((object)string.Concat("Target position: ", position, " [NCS:", cd_12, "-", _12[4], "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "Gun not meeting conditions to zap; {0}; {1}; {2}")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 21; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_12 == 0) { continue; } val.Emit(OpCodes.Ldarg_0); val.Emit(OpCodes.Ldfld, typeof(PatcherTool).GetField("gunOverheat")); val.Emit(OpCodes.Ldloc_0); val.Emit(OpCodes.Ldarg_2); val.EmitDelegate<Action<float, Vector3, Vector3>>((Action<float, Vector3, Vector3>)delegate(float num, Vector3 position, Vector3 target_position) { //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0073: 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) if (Time.frameCount - _12[5] >= cd_12) { _12[5] = Time.frameCount; Debug.Log((object)("Gun not meeting conditions to zap; " + (num > 2f) + "; " + (Vector3.Distance(position, target_position) < 0.7f) + "; " + Physics.Linecast(position, target_position, StartOfRound.Instance.collidersAndRoomMask, (QueryTriggerInteraction)1) + " [NCS:" + cd_12 + "-" + _12[5] + "]")); } }); } } } private static void patch_3(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Unknown result type (might be due to invalid IL or missing references) //IL_025c: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "Stop shocking gun") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_12 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _12[6] >= cd_12) { _12[6] = Time.frameCount; Debug.Log((object)("Stop shocking gun [NCS:" + cd_12 + "-" + _12[6] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Start scanning gun") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_12 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _12[7] >= cd_12) { _12[7] = Time.frameCount; Debug.Log((object)("Start scanning gun [NCS:" + cd_12 + "-" + _12[7] + "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "Use patcher tool")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_12 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _12[8] >= cd_12) { _12[8] = Time.frameCount; Debug.Log((object)("Use patcher tool [NCS:" + cd_12 + "-" + _12[8] + "]")); } }); } } } private static void radio_1(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "Set local client speaking on walkie talkie: {0}")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 5; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_13 == 0) { continue; } val.Emit(OpCodes.Ldarg_1); val.EmitDelegate<Action<bool>>((Action<bool>)delegate(bool bol) { if (Time.frameCount - _13[0] >= cd_13) { _13[0] = Time.frameCount; Debug.Log((object)("Set local client speaking on walkie talkie: " + bol + " [NCS:" + cd_13 + "-" + _13[0] + "]")); } }); break; } } private static void radio_2(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Unknown result type (might be due to invalid IL or missing references) //IL_028a: Unknown result type (might be due to invalid IL or missing references) //IL_01b6: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_038b: Unknown result type (might be due to invalid IL or missing references) //IL_02b6: Unknown result type (might be due to invalid IL or missing references) //IL_02d6: Unknown result type (might be due to invalid IL or missing references) //IL_03b5: Unknown result type (might be due to invalid IL or missing references) //IL_03d5: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "Walkie talkie A") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_13 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _13[1] >= cd_13) { _13[1] = Time.frameCount; Debug.Log((object)("Walkie talkie A [NCS:" + cd_13 + "-" + _13[1] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Walkie talkie #{0} {1} B") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 10; for (int j = 0; j < 10; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_13 == 0) { continue; } val.Emit(OpCodes.Ldsfld, typeof(WalkieTalkie).GetField("allWalkieTalkies")); val.Emit(OpCodes.Ldloc_0); val.EmitDelegate<Action<List<WalkieTalkie>, int>>((Action<List<WalkieTalkie>, int>)delegate(List<WalkieTalkie> list, int index) { if (Time.frameCount - _13[2] >= cd_13) { _13[2] = Time.frameCount; Debug.Log((object)("Walkie talkie #" + index + " " + ((Object)((Component)list[index]).gameObject).name + " B [NCS:" + cd_13 + "-" + _13[2] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "is walkie being used: {0}") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 8; for (int j = 0; j < 8; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_13 == 0) { continue; } val.Emit(OpCodes.Ldsfld, typeof(WalkieTalkie).GetField("allWalkieTalkies")); val.Emit(OpCodes.Ldloc_0); val.EmitDelegate<Action<List<WalkieTalkie>, int>>((Action<List<WalkieTalkie>, int>)delegate(List<WalkieTalkie> list, int index) { if (Time.frameCount - _13[3] >= cd_13) { _13[3] = Time.frameCount; Debug.Log((object)("is walkie being used: " + ((GrabbableObject)list[index]).isBeingUsed + " [NCS:" + cd_13 + "-" + _13[3] + "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "Walkie talkie #{0} {1} C")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 10; for (int j = 0; j < 10; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_13 == 0) { continue; } val.Emit(OpCodes.Ldsfld, typeof(WalkieTalkie).GetField("allWalkieTalkies")); val.Emit(OpCodes.Ldloc_0); val.EmitDelegate<Action<List<WalkieTalkie>, int>>((Action<List<WalkieTalkie>, int>)delegate(List<WalkieTalkie> list, int index) { if (Time.frameCount - _13[4] >= cd_13) { _13[4] = Time.frameCount; Debug.Log((object)("Walkie talkie #" + index + " " + ((Object)((Component)list[index]).gameObject).name + " C [NCS:" + cd_13 + "-" + _13[4] + "]")); } }); } } } private static void radio_3(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Unknown result type (might be due to invalid IL or missing references) //IL_025c: Unknown result type (might be due to invalid IL or missing references) //IL_0330: Unknown result type (might be due to invalid IL or missing references) //IL_0359: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "False A") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_13 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _13[5] >= cd_13) { _13[5] = Time.frameCount; Debug.Log((object)("False A [NCS:" + cd_13 + "-" + _13[5] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "False B") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_13 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _13[6] >= cd_13) { _13[6] = Time.frameCount; Debug.Log((object)("False B [NCS:" + cd_13 + "-" + _13[6] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "False C") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_13 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _13[7] >= cd_13) { _13[7] = Time.frameCount; Debug.Log((object)("False C [NCS:" + cd_13 + "-" + _13[7] + "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "{0}")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 6; for (int j = 0; j < 6; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_13 == 0) { continue; } val.Emit(OpCodes.Ldarg_1); val.EmitDelegate<Action<WalkieTalkie>>((Action<WalkieTalkie>)delegate(WalkieTalkie self) { if (Time.frameCount - _13[8] >= cd_13) { _13[8] = Time.frameCount; Debug.Log((object)(((GrabbableObject)self).isPocketed + " [NCS:" + cd_13 + "-" + _13[8] + "]")); } }); } } } private static void cord(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "HOLD horn local client called")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_14 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _14 >= cd_14) { _14 = Time.frameCount; Debug.Log((object)("HOLD horn local client called [NCS:" + cd_14 + "-" + _14 + "]")); } }); break; } } private static void dog_1(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "dog '{0}': Heard noise! Distance: {1} meters")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 8; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_15 == 0) { continue; } val.Emit(OpCodes.Ldarg_0); val.Emit(OpCodes.Ldloc_0); val.EmitDelegate<Action<MouthDogAI, float>>((Action<MouthDogAI, float>)delegate(MouthDogAI self, float num) { if (Time.frameCount - _15[0] >= cd_15) { _15[0] = Time.frameCount; Debug.Log((object)("dog '" + ((Object)((Component)self).gameObject).name + "': Heard noise! Distance: " + num + " meters [NCS:" + cd_15 + "-" + _15[0] + "]")); } }); break; } } private static void dog_2(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: 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_019c: 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_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_027a: Unknown result type (might be due to invalid IL or missing references) //IL_01c8: Unknown result type (might be due to invalid IL or missing references) //IL_02a3: Unknown result type (might be due to invalid IL or missing references) //IL_02af: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "Mouth dog targetPos 1: {0}; distanceToNoise: {1}") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 7; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_15 == 0) { continue; } val.Emit(OpCodes.Ldarg_1); val.Emit(OpCodes.Ldarg_2); val.EmitDelegate<Action<Vector3, float>>((Action<Vector3, float>)delegate(Vector3 position, float distance) { //IL_003a: Unknown result type (might be due to invalid IL or missing references) if (Time.frameCount - _15[1] >= cd_15) { _15[1] = Time.frameCount; Debug.Log((object)string.Concat("Mouth dog targetPos 1: ", position, "; distanceToNoise: ", distance, " [NCS:", cd_15, "-", _15[1], "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Mouth dog targetPos 2: {0}") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 5; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_15 == 0) { continue; } val.Emit(OpCodes.Ldarg_1); val.EmitDelegate<Action<Vector3>>((Action<Vector3>)delegate(Vector3 position) { //IL_0039: Unknown result type (might be due to invalid IL or missing references) if (Time.frameCount - _15[2] >= cd_15) { _15[2] = Time.frameCount; Debug.Log((object)string.Concat("Mouth dog targetPos 2: ", position, " [NCS:", cd_15, "-", _15[2], "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "Dog lastheardnoisePosition: {0}")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 6; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_15 == 0) { continue; } val.Emit(OpCodes.Ldarg_0); val.Emit(OpCodes.Ldfld, typeof(MouthDogAI).GetField("lastHeardNoisePosition", BindingFlags.Instance | BindingFlags.NonPublic)); val.EmitDelegate<Action<Vector3>>((Action<Vector3>)delegate(Vector3 position) { //IL_0039: Unknown result type (might be due to invalid IL or missing references) if (Time.frameCount - _15[3] >= cd_15) { _15[3] = Time.frameCount; Debug.Log((object)string.Concat("Dog lastheardnoisePosition: ", position, " [NCS:", cd_15, "-", _15[3], "]")); } }); } } } private static void dog_3(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "Setting lastHeardNoisePosition to {0}")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 5; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_15 == 0) { continue; } val.Emit(OpCodes.Ldarg_1); val.EmitDelegate<Action<Vector3>>((Action<Vector3>)delegate(Vector3 position) { //IL_0039: Unknown result type (might be due to invalid IL or missing references) if (Time.frameCount - _15[4] >= cd_15) { _15[4] = Time.frameCount; Debug.Log((object)string.Concat("Setting lastHeardNoisePosition to ", position, " [NCS:", cd_15, "-", _15[4], "]")); } }); break; } } private static void dog_4(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "Ending lunge")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_15 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _15[5] >= cd_15) { _15[5] = Time.frameCount; Debug.Log((object)("Ending lunge [NCS:" + cd_15 + "-" + _15[5] + "]")); } }); break; } } private static void hoarder(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_0198: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_01c1: Unknown result type (might be due to invalid IL or missing references) //IL_01cd: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == ": Setting target object and going towards it.") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 3; for (int j = 0; j < 6; j++) { l.Instrs[i - 3 + j].OpCode = OpCodes.Nop; } if (cd_17 == 0) { continue; } val.Emit(OpCodes.Ldarg_0); val.EmitDelegate<Action<HoarderBugAI>>((Action<HoarderBugAI>)delegate(HoarderBugAI self) { if (Time.frameCount - _17[0] >= cd_17) { _17[0] = Time.frameCount; Debug.Log((object)(((Object)((Component)self).gameObject).name + " : Setting target object and going towards it. [NCS:" + cd_17 + "-" + _17[0] + "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == ": i found an object but cannot reach it (or it has been taken by another bug): ")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 5; for (int j = 0; j < 8; j++) { l.Instrs[i - 3 + j].OpCode = OpCodes.Nop; } if (cd_17 == 0) { continue; } val.Emit(OpCodes.Ldarg_0); val.Emit(OpCodes.Ldarg_1); val.EmitDelegate<Action<HoarderBugAI, GameObject>>((Action<HoarderBugAI, GameObject>)delegate(HoarderBugAI self, GameObject item) { if (Time.frameCount - _17[1] >= cd_17) { _17[1] = Time.frameCount; Debug.Log((object)(((Object)((Component)self).gameObject).name + " : i found an object but cannot reach it (or it has been taken by another bug): " + ((Object)item).name + " [NCS:" + cd_17 + "-" + _17[1] + "]")); } }); } } } private static void random(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "Unable to get random nav mesh position in radius! Returning old pos")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_18 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _18 >= cd_18) { _18 = Time.frameCount; Debug.Log((object)("Unable to get random nav mesh position in radius! Returning old pos [NCS:" + cd_18 + "-" + _18 + "]")); } }); break; } } private static void sand_1(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "Set local player to sinking!")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_19 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _19[0] >= cd_19) { _19[0] = Time.frameCount; Debug.Log((object)("Set local player to sinking! [NCS:" + cd_19 + "-" + _19[0] + "]")); } }); break; } } private static void sand_2(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Unknown result type (might be due to invalid IL or missing references) //IL_025c: Unknown result type (might be due to invalid IL or missing references) //IL_0330: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "Quicksand is not sinking local player!") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_19 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _19[1] >= cd_19) { _19[1] = Time.frameCount; Debug.Log((object)("Quicksand is not sinking local player! [NCS:" + cd_19 + "-" + _19[1] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Quicksand is sinking local player!") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_19 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _19[2] >= cd_19) { _19[2] = Time.frameCount; Debug.Log((object)("Quicksand is sinking local player! [NCS:" + cd_19 + "-" + _19[2] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Quicksand is sinking local player! B") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_19 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _19[3] >= cd_19) { _19[3] = Time.frameCount; Debug.Log((object)("Quicksand is sinking local player! B [NCS:" + cd_19 + "-" + _19[3] + "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "Quicksand is sinking local player! C")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_19 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _19[4] >= cd_19) { _19[4] = Time.frameCount; Debug.Log((object)("Quicksand is sinking local player! C [NCS:" + cd_19 + "-" + _19[4] + "]")); } }); } } } private static void enemy_not_targetable(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "Player is not targetable")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_20 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _20 >= cd_20) { _20 = Time.frameCount; Debug.Log((object)("Player is not targetable [NCS:" + cd_20 + "-" + _20 + "]")); } }); break; } } private static void masked(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_0194: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_0268: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "Noise heard relative loudness: {0}") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 5; for (int j = 0; j < 5; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_21 == 0) { continue; } val.Emit(OpCodes.Ldloc_1); val.EmitDelegate<Action<float>>((Action<float>)delegate(float num) { if (Time.frameCount - _21[0] >= cd_21) { _21[0] = Time.frameCount; Debug.Log((object)("Noise heard relative loudness: " + num + " [NCS:" + cd_21 + "-" + _21[0] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Can't hear noise reason A") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_21 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _21[1] >= cd_21) { _21[1] = Time.frameCount; Debug.Log((object)("Can't hear noise reason A [NCS:" + cd_21 + "-" + _21[1] + "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "Can't hear noise reason B")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_21 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _21[2] >= cd_21) { _21[2] = Time.frameCount; Debug.Log((object)("Can't hear noise reason B [NCS:" + cd_21 + "-" + _21[2] + "]")); } }); } } } private static void bushwolf_update(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_0194: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_0268: Unknown result type (might be due to invalid IL or missing references) //IL_033c: Unknown result type (might be due to invalid IL or missing references) //IL_042c: Unknown result type (might be due to invalid IL or missing references) //IL_0368: Unknown result type (might be due to invalid IL or missing references) //IL_0376: Unknown result type (might be due to invalid IL or missing references) //IL_0500: Unknown result type (might be due to invalid IL or missing references) //IL_05d4: Unknown result type (might be due to invalid IL or missing references) //IL_06a8: Unknown result type (might be due to invalid IL or missing references) //IL_077c: Unknown result type (might be due to invalid IL or missing references) //IL_0850: Unknown result type (might be due to invalid IL or missing references) //IL_0924: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "Fox spotted meter: {0}") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 6; for (int j = 0; j < 6; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.Emit(OpCodes.Ldarg_0); val.EmitDelegate<Action<BushWolfEnemy>>((Action<BushWolfEnemy>)delegate(BushWolfEnemy self) { if (Time.frameCount - _22[0] >= cd_22) { _22[0] = Time.frameCount; Debug.Log((object)("Fox spotted meter: " + self.spottedMeter + " [NCS:" + cd_22 + "-" + _22[0] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Fox A") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _22[1] >= cd_22) { _22[1] = Time.frameCount; Debug.Log((object)("Fox A [NCS:" + cd_22 + "-" + _22[1] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Fox B") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _22[2] >= cd_22) { _22[2] = Time.frameCount; Debug.Log((object)("Fox B [NCS:" + cd_22 + "-" + _22[2] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Fox C; {0}; {1}") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 7; for (int j = 0; j < 7; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.Emit(OpCodes.Ldloc, 14); val.Emit(OpCodes.Ldloc, 15); val.EmitDelegate<Action<float, float>>((Action<float, float>)delegate(float distance, float angle) { if (Time.frameCount - _22[3] >= cd_22) { _22[3] = Time.frameCount; Debug.Log((object)("Fox C; " + distance + "; " + angle + " [NCS:" + cd_22 + "-" + _22[3] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Fox D") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _22[4] >= cd_22) { _22[4] = Time.frameCount; Debug.Log((object)("Fox D [NCS:" + cd_22 + "-" + _22[4] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Fox E") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _22[5] >= cd_22) { _22[5] = Time.frameCount; Debug.Log((object)("Fox E [NCS:" + cd_22 + "-" + _22[5] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Fox F") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _22[6] >= cd_22) { _22[6] = Time.frameCount; Debug.Log((object)("Fox F [NCS:" + cd_22 + "-" + _22[6] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Fox G") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _22[7] >= cd_22) { _22[7] = Time.frameCount; Debug.Log((object)("Fox G [NCS:" + cd_22 + "-" + _22[7] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Fox H") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _22[8] >= cd_22) { _22[8] = Time.frameCount; Debug.Log((object)("Fox H [NCS:" + cd_22 + "-" + _22[8] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Fox I") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _22[9] >= cd_22) { _22[9] = Time.frameCount; Debug.Log((object)("Fox I [NCS:" + cd_22 + "-" + _22[9] + "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "Fox J")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _22[10] >= cd_22) { _22[10] = Time.frameCount; Debug.Log((object)("Fox J [NCS:" + cd_22 + "-" + _22[10] + "]")); } }); } } } private static void bushwolf_big(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Unknown result type (might be due to invalid IL or missing references) //IL_0283: Unknown result type (might be due to invalid IL or missing references) //IL_01b6: Unknown result type (might be due to invalid IL or missing references) //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_01cf: Unknown result type (might be due to invalid IL or missing references) //IL_0363: Unknown result type (might be due to invalid IL or missing references) //IL_02af: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "Bush wolf: No game objects found with spore tag; cancelling") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _22[11] >= cd_22) { _22[11] = Time.frameCount; Debug.Log((object)("Bush wolf: No game objects found with spore tag; cancelling [NCS:" + cd_22 + "-" + _22[11] + "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "{0}: Mold spore {1} at {2} surrounded by {3}") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 32; for (int j = 0; j < 32; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.Emit(OpCodes.Ldloc, 6); val.Emit(OpCodes.Ldloc_0); val.Emit(OpCodes.Ldloc_3); val.EmitDelegate<Action<int, GameObject[], int>>((Action<int, GameObject[], int>)delegate(int index, GameObject[] objects, int num) { //IL_0068: Unknown result type (might be due to invalid IL or missing references) if (Time.frameCount - _22[12] >= cd_22) { _22[12] = Time.frameCount; Debug.Log((object)string.Concat(index, ": Mold spore ", ((Object)objects[index].gameObject).name, " at ", objects[index].transform.position, " surrounded by ", num, " [NCS:", cd_22, "-", _22[12], "]")); } }); } else if (l.Instrs[i].Operand.ToString() == "Bush wolf: Most surrounding spores is {0}") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 5; for (int j = 0; j < 5; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.Emit(OpCodes.Ldloc_2); val.EmitDelegate<Action<int>>((Action<int>)delegate(int num) { if (Time.frameCount - _22[13] >= cd_22) { _22[13] = Time.frameCount; Debug.Log((object)("Bush wolf: Most surrounding spores is " + num + " [NCS:" + cd_22 + "-" + _22[13] + "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "Bush wolf: All spores found were lone spores; cancelling")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_22 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _22[14] >= cd_22) { _22[14] = Time.frameCount; Debug.Log((object)("Bush wolf: All spores found were lone spores; cancelling [NCS:" + cd_22 + "-" + _22[14] + "]")); } }); } } } private static void bush_destroy(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_01a0: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_01c9: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "weeds found at pos {0}: {1}") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 7; for (int j = 0; j < 7; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_23 == 0) { continue; } val.Emit(OpCodes.Ldarg_1); val.Emit(OpCodes.Ldloc_0); val.EmitDelegate<Action<Vector3, int>>((Action<Vector3, int>)delegate(Vector3 position, int num) { //IL_003a: Unknown result type (might be due to invalid IL or missing references) if (Time.frameCount - _23[0] >= cd_23) { _23[0] = Time.frameCount; Debug.Log((object)string.Concat("weeds found at pos ", position, ": ", num, " [NCS:", cd_23, "-", _23[0], "]")); } }); } else { if (!(l.Instrs[i].Operand.ToString() == "Index: {0}")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 5; for (int j = 0; j < 5; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_23 == 0) { continue; } val.Emit(OpCodes.Ldloc_2); val.EmitDelegate<Action<int>>((Action<int>)delegate(int num) { if (Time.frameCount - _23[1] >= cd_23) { _23[1] = Time.frameCount; Debug.Log((object)("Index: " + num + " [NCS:" + cd_23 + "-" + _23[1] + "]")); } }); } } } private static void bush_generate(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00d7: Unknown result type (might be due to invalid IL or missing references) //IL_00e5: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (!(l.Instrs[i].OpCode == OpCodes.Ldstr) || !(l.Instrs[i].Operand.ToString() == "Growing back mold at index {0}")) { continue; } r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 8; for (int j = 0; j < 8; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_23 == 0) { continue; } val.Emit(OpCodes.Ldloc, 12); val.Emit(OpCodes.Ldloc, 24); val.EmitDelegate<Action<List<MoldSpore>, int>>((Action<List<MoldSpore>, int>)delegate(List<MoldSpore> spores, int index) { if (Time.frameCount - _23[10] >= cd_23) { _23[10] = Time.frameCount; Debug.Log((object)("Growing back mold at index " + spores[index].generationId + " [NCS:" + cd_23 + "-" + _23[10] + "]")); } }); break; } } private static void truck_collect(ILContext l) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Unknown result type (might be due to invalid IL or missing references) //IL_0268: Unknown result type (might be due to invalid IL or missing references) //IL_01b4: Unknown result type (might be due to invalid IL or missing references) //IL_0349: Unknown result type (might be due to invalid IL or missing references) //IL_0294: Unknown result type (might be due to invalid IL or missing references) //IL_044e: Unknown result type (might be due to invalid IL or missing references) //IL_0376: Unknown result type (might be due to invalid IL or missing references) //IL_0382: Unknown result type (might be due to invalid IL or missing references) //IL_038e: Unknown result type (might be due to invalid IL or missing references) //IL_039a: Unknown result type (might be due to invalid IL or missing references) //IL_0477: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(l); for (int i = 0; i < l.Instrs.Count; i++) { if (l.Instrs[i].OpCode != OpCodes.Ldstr) { continue; } if (l.Instrs[i].Operand.ToString() == "Collect items in truck A") { r.Add(((MemberReference)l.Method).Name + " \"" + l.Instrs[i].Operand.ToString()); val.Index = i + 2; for (int j = 0; j < 2; j++) { l.Instrs[i + j].OpCode = OpCodes.Nop; } if (cd_25 == 0) { continue; } val.EmitDelegate<Action>((Action)delegate { if (Time.frameCount - _25[0] >= cd_25) { _25[0] = Time.frameCount; Debug.Log((object)("Collect items in truck A [NCS:" + cd_25 + "-" + _25[0]