Bandit antag (#508)

* remove default antags

* simple bandit antag

* greetings audio and gear

* fixes

* Update AntagPreferenceTest.cs

* gamemodes

* Update game_presets.yml
This commit is contained in:
Ed
2024-10-24 18:19:14 +03:00
committed by GitHub
parent f2b8713dc2
commit 0f6dd2905d
19 changed files with 124 additions and 21 deletions

View File

@@ -1,3 +1,4 @@
using Content.Server._CP14.Roles;
using Content.Server.Administration.Commands;
using Content.Server.Antag;
using Content.Server.GameTicking.Rules.Components;
@@ -52,6 +53,23 @@ public sealed partial class AdminVerbSystem
var targetPlayer = targetActor.PlayerSession;
Verb CP14Bandit = new()
{
Text = Loc.GetString("cp14-admin-verb-text-make-bandit"),
Category = VerbCategory.Antag,
Icon = new SpriteSpecifier.Rsi(new ResPath("/Textures/Clothing/Hands/Gloves/Color/black.rsi"),
"icon"), //TODO
Act = () =>
{
//_antag.ForceMakeAntag<CP14BanditRoleComponent>(targetPlayer, "CP14Bandit"); //TODO
},
Impact = LogImpact.High,
Message = Loc.GetString("cp14-admin-verb-make-bandit"),
};
args.Verbs.Add(CP14Bandit);
/* CP14 disable default antags
Verb traitor = new()
{
Text = Loc.GetString("admin-verb-text-make-traitor"),
@@ -151,5 +169,6 @@ public sealed partial class AdminVerbSystem
Message = Loc.GetString("admin-verb-make-thief"),
};
args.Verbs.Add(thief);
*/
}
}

View File

@@ -0,0 +1,11 @@
using Content.Shared.Roles;
namespace Content.Server._CP14.Roles;
/// <summary>
/// Added to mind role entities to tag that they are a bandit.
/// </summary>
[RegisterComponent]
public sealed partial class CP14BanditRoleComponent : BaseMindRoleComponent
{
}