mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
19 lines
569 B
C#
19 lines
569 B
C#
#if DEBUG
|
|
using BetterAmongUs.Items.Attributes;
|
|
using BetterAmongUs.Modules;
|
|
|
|
namespace BetterAmongUs.Commands;
|
|
|
|
[RegisterCommand]
|
|
internal class SuicideCommand : BaseCommand
|
|
{
|
|
internal override CommandType Type => CommandType.Debug;
|
|
internal override string Name => "suicide";
|
|
internal override string Description => "Kill self";
|
|
internal override bool ShowCommand() => GameState.IsFreePlay;
|
|
internal override void Run()
|
|
{
|
|
PlayerControl.LocalPlayer.MurderPlayer(PlayerControl.LocalPlayer, MurderResultFlags.Succeeded);
|
|
}
|
|
}
|
|
#endif |