Re-implement recoil (#9406)
* Re-implement recoil Playing around with the values atm * Update constants * final tweaks
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Content.Server.Projectiles
|
||||
{
|
||||
[Dependency] private readonly DamageableSystem _damageableSystem = default!;
|
||||
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
|
||||
[Dependency] private readonly CameraRecoilSystem _cameraRecoil = default!;
|
||||
[Dependency] private readonly SharedCameraRecoilSystem _sharedCameraRecoil = default!;
|
||||
[Dependency] private readonly GunSystem _guns = default!;
|
||||
|
||||
public override void Initialize()
|
||||
@@ -56,7 +56,7 @@ namespace Content.Server.Projectiles
|
||||
if (HasComp<CameraRecoilComponent>(otherEntity))
|
||||
{
|
||||
var direction = args.OurFixture.Body.LinearVelocity.Normalized;
|
||||
_cameraRecoil.KickCamera(otherEntity, direction);
|
||||
_sharedCameraRecoil.KickCamera(otherEntity, direction);
|
||||
}
|
||||
|
||||
if (component.DeleteOnCollide)
|
||||
|
||||
Reference in New Issue
Block a user