* Deprecate IActionBlocker ChangeDirectionAttempt * Woops * Throw and interact * Deperacte speech * ActionBlocker in fucking shambles * CanEmote go byebye * CanAttack is GONE * IActionBlocker finally ded * DRY
21 lines
511 B
C#
21 lines
511 B
C#
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Shared.Speech
|
|
{
|
|
public class SpeechSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<SharedSpeechComponent, SpeakAttemptEvent>(OnSpeakAttempt);
|
|
}
|
|
|
|
private void OnSpeakAttempt(EntityUid uid, SharedSpeechComponent component, SpeakAttemptEvent args)
|
|
{
|
|
if (!component.Enabled)
|
|
args.Cancel();
|
|
}
|
|
}
|
|
}
|