]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Shotgun spread refactor (#27773)
authorRiceMar1244 <138547931+RiceMar1244@users.noreply.github.com>
Sat, 3 Aug 2024 13:26:32 +0000 (09:26 -0400)
committerGitHub <noreply@github.com>
Sat, 3 Aug 2024 13:26:32 +0000 (09:26 -0400)
commitb432dc612520e08e5409af76d31a5e7fa42ea247
tree678b051033319a86ab6aed79902d029dd25f19d6
parent64273cb914047a819cc6be35d03ab8f9e2d89723
Shotgun spread refactor (#27773)

* Moves spread data to new component

* Refactors shotgun spread code

* Makes shotgun cartridges and projectiles use new component

* Attempts to fix nullable build error

* Fixes hitscan weapons that I broke :(

* Saviour commit?

---------

Co-authored-by: EmoGarbage404 <retron404@gmail.com>
Content.Server/Weapons/Ranged/Systems/GunSystem.cs
Content.Shared/Projectiles/ProjectileSpreadComponent.cs [new file with mode: 0644]
Content.Shared/Weapons/Ranged/Components/AmmoComponent.cs
Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/shotgun.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Projectiles/shotgun.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/explosives.yml