]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add events for GunComponent values, muzzle flashes and cartridge spread (#24077)
authorDrSmugleaf <DrSmugleaf@users.noreply.github.com>
Sun, 28 Jan 2024 23:32:42 +0000 (15:32 -0800)
committerGitHub <noreply@github.com>
Sun, 28 Jan 2024 23:32:42 +0000 (10:32 +1100)
commit4e8b1fb0d3ef23c79ea3ca0cec05932de03601f5
tree114eb23728f6ce605248c759bdf5463ce496c3bf
parent556545e324a135e8a4da643a41c94b636d83d946
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
16 files changed:
Content.Client/Weapons/Ranged/GunSpreadOverlay.cs
Content.Client/Weapons/Ranged/Systems/GunSystem.cs
Content.Server/Administration/Components/AdminMinigunComponent.cs [new file with mode: 0644]
Content.Server/Administration/Systems/AdminGunSystem.cs [new file with mode: 0644]
Content.Server/Administration/Systems/AdminVerbSystem.Tools.cs
Content.Server/PneumaticCannon/PneumaticCannonSystem.cs
Content.Server/Weapons/Ranged/Systems/GunSystem.cs
Content.Shared/PneumaticCannon/PneumaticCannonComponent.cs
Content.Shared/Weapons/Ranged/Components/GunComponent.cs
Content.Shared/Weapons/Ranged/Events/GunGetAmmoSpreadEvent.cs [new file with mode: 0644]
Content.Shared/Weapons/Ranged/Events/GunMuzzleFlashAttemptEvent.cs [new file with mode: 0644]
Content.Shared/Weapons/Ranged/Events/GunRefreshModifiersEvent.cs [new file with mode: 0644]
Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Ballistic.cs
Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs
Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs
Content.Shared/Wieldable/WieldableSystem.cs