]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Double bullet speeds (#34971)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 7 Dec 2025 16:35:06 +0000 (03:35 +1100)
committerGitHub <noreply@github.com>
Sun, 7 Dec 2025 16:35:06 +0000 (16:35 +0000)
commit51b7af73f76e82fac4f5cfedc1ae2846a5cab0ff
tree9b3ece7ca0eeb2413f224018988fc6d4f3cdbc63
parent94327566ef87ead81864661cf66828a46b39af37
Double bullet speeds (#34971)

* Double bullet speeds

The only reason we had it at 20m/s was tunneling reasons.

The quick maths is (BodyA size + BodyB size) / frametime. Currently the game is doing substepping AFAIK so we can use 0.016 as the frametime therefore with a 0.40 width body we can get up to 40.625 (assuming the target is no narrower than 0.25 which given my thindows change last year should be a decently safe assumption).

* Fix

* Fix impact visuals, as they overshoot otherwise

* Revert changes

---------

Co-authored-by: SlamBamActionman <slambamactionman@gmail.com>
Content.Shared/Weapons/Ranged/Components/GunComponent.cs
Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs
Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml