KillCalloutRuleComponent.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. namespace Content.Server.GameTicking.Rules.Components;
  2. /// <summary>
  3. /// This is used for a rule that announces kills globally.
  4. /// </summary>
  5. [RegisterComponent, Access(typeof(KillCalloutRuleSystem))]
  6. public sealed partial class KillCalloutRuleComponent : Component
  7. {
  8. /// <summary>
  9. /// Root used to generate kill callouts
  10. /// </summary>
  11. [DataField("killCalloutPrefix")]
  12. public string KillCalloutPrefix = "death-match-kill-callout-";
  13. /// <summary>
  14. /// A value used to randomly select a kill callout
  15. /// </summary>
  16. [DataField("killCalloutAmount")]
  17. public int KillCalloutAmount = 60;
  18. /// <summary>
  19. /// Root used to generate kill callouts when a player is killed by the environment
  20. /// </summary>
  21. [DataField("environmentKillCallouts")]
  22. public string SelfKillCalloutPrefix = "death-match-kill-callout-env-";
  23. /// <summary>
  24. /// A value used to randomly select a kill callout when a player is killed by the environment
  25. /// </summary>
  26. [DataField("selfKillCalloutAmount")]
  27. public int SelfKillCalloutAmount = 10;
  28. }