DarinForTheWin
DarinForTheWin
CC#
Created by DarinForTheWin on 12/16/2023 in #help
My test code doesnt work.. confused
So as you can see it would supposedly UPDATE the meter every frame... im seeing none of it though.. anyone knowswhat is wrong with the code?
3 replies
CC#
Created by DarinForTheWin on 12/16/2023 in #help
My test code doesnt work.. confused
using GameNetcodeStuff;
using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bombastic_Company.Patches
{
[HarmonyPatch(typeof(PlayerControllerB))]
internal class PlayerControllerBPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
static void InfiniteSpeedPatch(ref float ___sprintMeter)
{
___sprintMeter = 1f;
}

}
}
using GameNetcodeStuff;
using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bombastic_Company.Patches
{
[HarmonyPatch(typeof(PlayerControllerB))]
internal class PlayerControllerBPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
static void InfiniteSpeedPatch(ref float ___sprintMeter)
{
___sprintMeter = 1f;
}

}
}
3 replies