Advertisement
glados123123123123

Untitled

Dec 21st, 2023
991
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 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.  
  10.  
  11. namespace TombsMadnessMod.Patches
  12. {
  13.     [HarmonyPatch(typeof(ForestGiantAI))]
  14.     internal class ForestGiantPatch
  15.     {
  16.         [HarmonyPatch("Start")]
  17.         [HarmonyPostfix]
  18.         static void ForestGiantSpeedPatch(ref NavMeshAgent ___agent, ref bool ___isDaytimeEnemy)
  19.         {
  20.             TombsMadnessModBase.mls.LogInfo("setting da settings!");
  21.             ___agent.speed = 5000;
  22.             ___isDaytimeEnemy = true;
  23.             TombsMadnessModBase.mls.LogInfo("done with da settings!");
  24.         }
  25.  
  26.     }
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement