glados123123123123

Untitled

Dec 21st, 2023
1,112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.34 KB | None | 0 0
  1. using HarmonyLib;
  2. using GameNetcodeStuff;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using UnityEngine.AI;
  9. using UnityEngine;
  10.  
  11. namespace TombsMadnessMod.Patches
  12. {
  13.     [HarmonyPatch(typeof(StartOfRound))]
  14.     internal class StartOfRoundPatch
  15.     {
  16.         [HarmonyPatch("Start")]
  17.         [HarmonyPrefix]
  18.         static void ForestGiantPatch(ref ForestGiantAI __instance)
  19.         {
  20.            
  21.             if (__instance != null)
  22.             {
  23.                 for (int i = 0; i < 101; i++)
  24.                 {
  25.                     TombsMadnessModBase.mls.LogInfo("StartOfRoundPatch Runninng ForestGiantPatch!!!");
  26.                 }
  27.             }
  28.             else
  29.             {
  30.                 for (int i = 0; i < 101; i++)
  31.                 {
  32.                     TombsMadnessModBase.mls.LogInfo("!!!lord do we have an issue here!!!");
  33.                 }
  34.             }
  35.             GameObject testObject = LC_API.BundleAPI.BundleLoader.GetLoadedAsset<GameObject>("testobject");
  36.             UnityEngine.Object.Instantiate(testObject);
  37.             TombsMadnessModBase.mls.LogInfo("here have a cube");
  38.             __instance.enemyType.canDie = true;
  39.             __instance.agent.speed = 5000;
  40.             __instance.enemyType.isDaytimeEnemy = true;
  41.         }
  42.  
  43.     }
  44. }
  45.  
Advertisement
Add Comment
Please, Sign In to add comment