ThrowArtifactComponent.cs 770 B

123456789101112131415161718192021222324252627
  1. namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
  2. /// <summary>
  3. /// Throws all nearby entities backwards.
  4. /// Also pries nearby tiles.
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class ThrowArtifactComponent : Component
  8. {
  9. /// <summary>
  10. /// How close do you have to be to get yeeted?
  11. /// </summary>
  12. [DataField("range")]
  13. public float Range = 2f;
  14. /// <summary>
  15. /// How likely is it that an individual tile will get pried?
  16. /// </summary>
  17. [DataField("tilePryChance")]
  18. public float TilePryChance = 0.5f;
  19. /// <summary>
  20. /// How strongly does stuff get thrown?
  21. /// </summary>
  22. [DataField("throwStrength"), ViewVariables(VVAccess.ReadWrite)]
  23. public float ThrowStrength = 5f;
  24. }