mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 16:47:26 +00:00
* Add a modifier event for GunComponent values
* Add docs
* Add VV readwrite to modified values
* Add more docs
* More docs
* Add Gun parameter to GunRefreshModifiersEvent
* Add another event for handling cartridge spread
* Fix pneumatic speed
(cherry picked from commit 4e8b1fb0d3)
24 lines
699 B
C#
24 lines
699 B
C#
using Content.Shared.Weapons.Ranged.Components;
|
|
using Content.Shared.Weapons.Ranged.Systems;
|
|
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Shared.Weapons.Ranged.Events;
|
|
|
|
/// <summary>
|
|
/// Raised directed on the gun entity when <see cref="SharedGunSystem.RefreshModifiers"/>
|
|
/// is called, to update the values of <see cref="GunComponent"/> from other systems.
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public record struct GunRefreshModifiersEvent(
|
|
Entity<GunComponent> Gun,
|
|
SoundSpecifier? SoundGunshot,
|
|
float CameraRecoilScalar,
|
|
Angle AngleIncrease,
|
|
Angle AngleDecay,
|
|
Angle MaxAngle,
|
|
Angle MinAngle,
|
|
int ShotsPerBurst,
|
|
float FireRate,
|
|
float ProjectileSpeed
|
|
);
|