Всякие вещи (#442)

* - fix: No grabbing supermatter.

* - remove: No screen shake.

* - tweak: Revert tweaks.

* - fix: Telescope.
This commit is contained in:
Aviu00
2024-07-15 16:23:15 +00:00
committed by GitHub
parent b67a36cde6
commit c7341543f8
7 changed files with 19 additions and 14 deletions

View File

@@ -58,11 +58,12 @@ namespace Content.Server.Damage.Systems
}
_guns.PlayImpactSound(args.Target, dmg, component.Sound, component.Sound != null); // WD EDIT
if (TryComp<PhysicsComponent>(uid, out var body) && body.LinearVelocity.LengthSquared() > 0f)
/* if (TryComp<PhysicsComponent>(uid, out var body) && body.LinearVelocity.LengthSquared() > 0f)
{
var direction = body.LinearVelocity.Normalized();
_sharedCameraRecoil.KickCamera(args.Target, direction);
}
}*/
// WD EDIT
// TODO: If more stuff touches this then handle it after.
if (!HasComp<EmbeddableProjectileComponent>(uid) && TryComp<PhysicsComponent>(uid, out var physics)) // WD EDIT

View File

@@ -2,6 +2,7 @@
using Content.Server.Interaction;
using Content.Server.Mech.Equipment.Components;
using Content.Server.Mech.Systems;
using Content.Shared._White.Supermatter.Components;
using Content.Shared.DoAfter;
using Content.Shared.Interaction;
using Content.Shared.Mech;
@@ -133,7 +134,8 @@ public sealed class MechGrabberSystem : EntitySystem
if (TryComp<PhysicsComponent>(target, out var physics) && physics.BodyType == BodyType.Static ||
HasComp<WallMountComponent>(target) ||
HasComp<MobStateComponent>(target))
HasComp<MobStateComponent>(target) ||
HasComp<SupermatterComponent>(target)) // WD EDIT
{
return;
}

View File

@@ -84,7 +84,8 @@ public sealed class ProjectileSystem : SharedProjectileSystem
if (!deleted)
{
_guns.PlayImpactSound(target, modifiedDamage, component.SoundHit, component.ForceSound);
_sharedCameraRecoil.KickCamera(target, direction);
// _sharedCameraRecoil.KickCamera(target, direction);
// WD EDIT
}
component.DamagedEntity = true;

View File

@@ -188,8 +188,9 @@ public sealed class ThrowingSystem : EntitySystem
if (user == null)
return;
if (recoil)
_recoil.KickCamera(user.Value, -direction * 0.04f);
// if (recoil)
// _recoil.KickCamera(user.Value, -direction * 0.04f);
// WD EDIT
// Give thrower an impulse in the other direction
if (pushbackRatio != 0.0f &&

View File

@@ -294,7 +294,7 @@
- type: TentacleGun
- type: Gun
soundGunshot: /Audio/Effects/gib1.ogg
fireRate: 0.5
fireRate: 0.33
selectedMode: PullMob
availableModes:
- PullItem
@@ -305,7 +305,7 @@
count: 1
- type: AmmoCounter
- type: RechargeBasicEntityAmmo
rechargeCooldown: 1.5
rechargeCooldown: 1
playRechargeSound: false
- type: Sprite
sprite: Objects/Weapons/Guns/Launchers/tentacle_gun.rsi

View File

@@ -20,7 +20,7 @@
noSpawn: true
components:
- type: InstantAction
useDelay: 2.5
useDelay: 1.5
itemIconStyle: BigAction
priority: -20
icon:

View File

@@ -18,8 +18,8 @@
- type: DamageOtherOnHit
damage:
types:
Piercing: 30
Heat: 30
Piercing: 20
Heat: 20
- type: Wieldable
- type: IncreaseDamageOnWield
damage: