Files
crystall-punk-14/Content.Shared/Projectiles/ProjectileComponent.cs

38 lines
1.1 KiB
C#
Raw Normal View History

using Content.Shared.Damage;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
2022-07-09 13:46:11 +10:00
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
2020-07-02 23:24:27 +02:00
2021-06-09 22:19:39 +02:00
namespace Content.Shared.Projectiles
2020-07-02 23:24:27 +02:00
{
[RegisterComponent, NetworkedComponent]
public sealed class ProjectileComponent : Component
2020-07-02 23:24:27 +02:00
{
2022-07-09 13:46:11 +10:00
[ViewVariables(VVAccess.ReadWrite), DataField("impactEffect", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
public string? ImpactEffect;
public EntityUid Shooter { get; set; }
2020-07-02 23:24:27 +02:00
public bool IgnoreShooter = true;
[DataField("damage", required: true)]
[ViewVariables(VVAccess.ReadWrite)]
public DamageSpecifier Damage = default!;
[DataField("deleteOnCollide")]
public bool DeleteOnCollide { get; } = true;
[DataField("ignoreResistances")]
public bool IgnoreResistances { get; } = false;
// Get that juicy FPS hit sound
[DataField("soundHit")] public SoundSpecifier? SoundHit;
[DataField("soundForce")]
public bool ForceSound = false;
public bool DamagedEntity;
2020-07-02 23:24:27 +02:00
}
}