* Add xenos for stress test Pretty hacky and not how I'd do it long-term * Remove claws * Add in unarmed combat behaviors * Cleanuppppp Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
17 lines
585 B
C#
17 lines
585 B
C#
using Content.Server.AI.Utility.Curves;
|
|
using Content.Server.AI.WorldState;
|
|
using Content.Server.AI.WorldState.States;
|
|
using Content.Server.GameObjects.Components.Weapon.Melee;
|
|
|
|
namespace Content.Server.AI.Utility.Considerations.Combat.Melee
|
|
{
|
|
public sealed class CanUnarmedCombatCon : Consideration
|
|
{
|
|
public CanUnarmedCombatCon(IResponseCurve curve) : base(curve) {}
|
|
|
|
public override float GetScore(Blackboard context)
|
|
{
|
|
return context.GetState<SelfState>().GetValue().HasComponent<UnarmedCombatComponent>() ? 1.0f : 0.0f;
|
|
}
|
|
}
|
|
} |