further modifier improvements (massive changes)

This commit is contained in:
XtraCube committed 2025-02-25 17:22:00 -05:00
1 parent 4a8fb38380
commit caa27642db
14 files changed
+276 -139

No files matched your search

+6
View File
@@ -15,6 +15,12 @@ public class TestButton : CustomActionButton
protected override void OnClick()
{
if (PlayerControl.LocalPlayer.HasModifier<ModifierParams>())
{
PlayerControl.LocalPlayer.RpcRemoveModifier<ModifierParams>();
return;
}
var randomPlayer = PlayerControl.AllPlayerControls.ToArray().Random();
PlayerControl.LocalPlayer.RpcAddModifier<ModifierParams>("test", 1, randomPlayer);
}