HideFromIl2Cpp and slight modification to TimedModifier to use new HudString method

This commit is contained in:
XtraCube committed 2024-08-31 21:33:32 -04:00
1 parent 8178967fd8
commit 126df24a23
6 files changed
+46 -10

No files matched your search

@@ -1,5 +1,8 @@
using MiraAPI.Modifiers;
using Il2CppSystem;
using MiraAPI.Example.Roles;
using MiraAPI.Modifiers;
using MiraAPI.Modifiers.Types;
using UnityEngine;
namespace MiraAPI.Example.Modifiers.Freezer;
@@ -20,6 +23,16 @@ public class FreezeModifier : TimedModifier
}
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (Player?.AmOwner == true || PlayerControl.LocalPlayer.Data.Role is FreezerRole)
{
Player?.cosmetics.SetOutline(true, new Nullable<Color>(Palette.LightBlue));
}
}
public override void OnTimerComplete()
{
if (Player?.AmOwner == true)