Skip to content
Open

Gun Fix #1005

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Content.Server/Shuttles/Components/ShuttleComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed partial class ShuttleComponent : Component
/// Maximum velocity assuming TWR is BaseMaxVelocityTWR.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public float BaseMaxLinearVelocity = 75f; // Mono
public float BaseMaxLinearVelocity = 50f; // Mono

public const float MaxAngularVelocity = 4f;

Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ public virtual void ShootProjectile(EntityUid uid, Vector2 direction, Vector2 gu
var physics = _physQuery.CompOrNull(uid) ?? EnsureComp<PhysicsComponent>(uid);
Physics.SetBodyStatus(uid, physics, BodyStatus.InAir);

var targetVelocity = gunVelocity + direction.Normalized() * speed;
var targetVelocity = -gunVelocity + direction.Normalized() * speed;
Physics.SetLinearVelocity(uid, targetVelocity, body: physics);
// Mono
if (offset != 0f)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
- type: FireControlRotate
- type: Gun
fireRate: 4.0
projectileSpeed: 40
projectileSpeed: 55
minAngle: 0
maxAngle: 5
soundGunshot:
Expand Down
Loading