Files
Delta-v/Content.Shared/_DV/Projectiles/PressureProjectileComponent.cs
T
8ae2199a46 pka re-rework (#3671)
* make pka smaller

* re-buffs proto kinetic accelerator (#37012)

* new ruins

* genpop

* nvm

* abc

* fuckin

* turnstyle

* ruins

* stamp

* abc

* bruh

* efg

* pka fixed

* range tweak

* make lavaland 42kpa

* rework pka modkits and quarter damage when in pressure

* add modkits to points shop

* add indoors modkit for traitors

* change range to actually be range

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
Co-authored-by: TytosB <54259736+TytosB@users.noreply.github.com>
2025-05-09 16:53:26 +01:00

26 lines
844 B
C#

using Content.Shared.Atmos;
using Robust.Shared.GameStates;
namespace Content.Shared._DV.Projectiles;
/// <summary>
/// Modifies projectile damage when atmospheric pressure is above a threshold.
/// Default is for a PKA bolt.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedPressureProjectileSystem))]
public sealed partial class PressureProjectileComponent : Component
{
/// <summary>
/// Max pressure to allow full damage at.
/// If it exceeds this at point of impact, damage gets modified by <see cref="Modifier"/>.
/// </summary>
[DataField]
public float MaxPressure = Atmospherics.OneAtmosphere * 0.5f;
/// <summary>
/// Multiplies projectile damage by this modifier when below <see cref="MaxPressure"/>.
/// </summary>
[DataField]
public float Modifier = 0.25f;
}