mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03: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 4e8b1fb0d3ef23c79ea3ca0cec05932de03601f5)
18 lines
501 B
C#
18 lines
501 B
C#
using Content.Server.Administration.Components;
|
|
using Content.Shared.Weapons.Ranged.Events;
|
|
|
|
namespace Content.Server.Administration.Systems;
|
|
|
|
public sealed class AdminGunSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
SubscribeLocalEvent<AdminMinigunComponent, GunRefreshModifiersEvent>(OnGunRefreshModifiers);
|
|
}
|
|
|
|
private void OnGunRefreshModifiers(Entity<AdminMinigunComponent> ent, ref GunRefreshModifiersEvent args)
|
|
{
|
|
args.FireRate = 15;
|
|
}
|
|
}
|