From: SlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com> Date: Fri, 19 Dec 2025 19:28:06 +0000 (+0100) Subject: [Staging] Fix certain projectiles moving faster than intended (#41905) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=c4a798632ad912068163992470fd9f9d1228219c;p=space-station-14.git [Staging] Fix certain projectiles moving faster than intended (#41905) Return to original value (25) --- diff --git a/Content.Shared/Magic/SharedMagicSystem.cs b/Content.Shared/Magic/SharedMagicSystem.cs index 3301180e8a..7fb13ff866 100644 --- a/Content.Shared/Magic/SharedMagicSystem.cs +++ b/Content.Shared/Magic/SharedMagicSystem.cs @@ -284,7 +284,7 @@ public abstract class SharedMagicSystem : EntitySystem var ent = Spawn(ev.Prototype, fromMap); var direction = _transform.ToMapCoordinates(toCoords).Position - fromMap.Position; - _gunSystem.ShootProjectile(ent, direction, userVelocity, ev.Performer, ev.Performer); + _gunSystem.ShootProjectile(ent, direction, userVelocity, ev.Performer, ev.Performer, 25f); } // End Projectile Spells #endregion diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/base_pka.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/base_pka.yml index 3107a50cfc..52e033f2f9 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/base_pka.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/base_pka.yml @@ -24,6 +24,7 @@ - SemiAuto soundGunshot: path: /Audio/Weapons/Guns/Gunshots/kinetic_accel.ogg + projectileSpeed: 25 - type: AmmoCounter - type: Appearance - type: GenericVisualizer diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/staves.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/staves.yml index ffe8af3e0f..8e021e6c67 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/staves.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/staves.yml @@ -14,6 +14,7 @@ - type: Gun soundGunshot: path: /Audio/Weapons/Guns/Gunshots/Magic/staff_healing.ogg + projectileSpeed: 25 - type: BasicEntityAmmoProvider proto: ProjectileHealingBolt capacity: 10 @@ -34,6 +35,7 @@ - type: Gun soundGunshot: path: /Audio/Weapons/Guns/Gunshots/Magic/staff_door.ogg + projectileSpeed: 25 - type: BasicEntityAmmoProvider proto: ProjectilePolyboltDoor capacity: 10 diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/wands.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/wands.yml index d3745288f6..d27e648b95 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/wands.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/wands.yml @@ -11,6 +11,7 @@ - type: Gun soundGunshot: path: /Audio/Weapons/Guns/Gunshots/Magic/staff_animation.ogg + projectileSpeed: 25 - type: BasicEntityAmmoProvider proto: ProjectilePolyboltCarp capacity: 5 @@ -52,6 +53,7 @@ fireRate: 0.25 soundGunshot: path: /Audio/Magic/fireball.ogg + projectileSpeed: 25 - type: BasicEntityAmmoProvider proto: ProjectileFireball capacity: 5 @@ -72,6 +74,7 @@ - type: Gun soundGunshot: path: /Audio/Weapons/Guns/Gunshots/Magic/staff_animation.ogg + projectileSpeed: 25 - type: BasicEntityAmmoProvider proto: ProjectileLocker capacity: 5 @@ -107,6 +110,7 @@ - type: Gun soundGunshot: path: /Audio/Weapons/Guns/Gunshots/mateba.ogg # PUNCH + projectileSpeed: 25 - type: BasicEntityAmmoProvider proto: BulletInstakillMagic capacity: 3 @@ -126,6 +130,7 @@ - type: Gun soundGunshot: path: /Audio/Weapons/Guns/Gunshots/Magic/staff_door.ogg + projectileSpeed: 25 - type: BasicEntityAmmoProvider proto: ProjectilePolyboltDoor capacity: 10 diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml index 1ad4ef01c0..d08faa72ef 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml @@ -633,6 +633,7 @@ fireRate: 0.5 soundGunshot: path: /Audio/Weapons/Guns/Gunshots/taser.ogg + projectileSpeed: 25 - type: BatteryAmmoProvider proto: BulletTaser fireCost: 200 @@ -985,7 +986,7 @@ components: - type: BatterySelfRecharger autoRechargeRate: 30 - # "remove" wield bonus and penalty so borgs can use it + # "remove" wield bonus and penalty so borgs can use it - type: GunWieldBonus minAngle: 0 maxAngle: 0