Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using HarmonyLib;
- using GameNetcodeStuff;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using UnityEngine.AI;
- using UnityEngine;
- namespace TombsMadnessMod.Patches
- {
- [HarmonyPatch(typeof(StartOfRound))]
- internal class StartOfRoundPatch
- {
- [HarmonyPatch("Start")]
- [HarmonyPrefix]
- static void ForestGiantPatch(ref ForestGiantAI __instance)
- {
- if (__instance != null)
- {
- for (int i = 0; i < 101; i++)
- {
- TombsMadnessModBase.mls.LogInfo("StartOfRoundPatch Runninng ForestGiantPatch!!!");
- }
- }
- else
- {
- for (int i = 0; i < 101; i++)
- {
- TombsMadnessModBase.mls.LogInfo("!!!lord do we have an issue here!!!");
- }
- }
- GameObject testObject = LC_API.BundleAPI.BundleLoader.GetLoadedAsset<GameObject>("testobject");
- UnityEngine.Object.Instantiate(testObject);
- TombsMadnessModBase.mls.LogInfo("here have a cube");
- __instance.enemyType.canDie = true;
- __instance.agent.speed = 5000;
- __instance.enemyType.isDaytimeEnemy = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment