Add events for GunComponent values, muzzle flashes and cartridge spread (#24077)
* 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
This commit is contained in:
17
Content.Server/Administration/Systems/AdminGunSystem.cs
Normal file
17
Content.Server/Administration/Systems/AdminGunSystem.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user