]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
[Staging] Fix certain projectiles moving faster than intended (#41905)
authorSlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com>
Fri, 19 Dec 2025 19:28:06 +0000 (20:28 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Dec 2025 19:28:06 +0000 (11:28 -0800)
Return to original value (25)

Content.Shared/Magic/SharedMagicSystem.cs
Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/base_pka.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/staves.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/wands.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml

index 3301180e8af4987a7188ff95f589b36e440897ed..7fb13ff866fa956ce4f9f085d7bef7646f5a0d7d 100644 (file)
@@ -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
index 3107a50cfcce6acb640d971bc0c1e8c508b34291..52e033f2f9be36ea22371d30844d447571048809 100644 (file)
@@ -24,6 +24,7 @@
     - SemiAuto
     soundGunshot:
       path: /Audio/Weapons/Guns/Gunshots/kinetic_accel.ogg
+    projectileSpeed: 25
   - type: AmmoCounter
   - type: Appearance
   - type: GenericVisualizer
index ffe8af3e0f5513a85a49f0c9bef44ed484bef575..8e021e6c67c6558ec98aaa88a80f822094e39f56 100644 (file)
@@ -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
index d3745288f62939aa50d0a41957e8106eaef065dc..d27e648b95f6d0f4952e8c77461052521a9e4412 100644 (file)
@@ -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
   - type: Gun
     soundGunshot:
       path: /Audio/Weapons/Guns/Gunshots/mateba.ogg # PUNCH
+    projectileSpeed: 25
   - type: BasicEntityAmmoProvider
     proto: BulletInstakillMagic
     capacity: 3
   - type: Gun
     soundGunshot:
       path: /Audio/Weapons/Guns/Gunshots/Magic/staff_door.ogg
+    projectileSpeed: 25
   - type: BasicEntityAmmoProvider
     proto: ProjectilePolyboltDoor
     capacity: 10
index 1ad4ef01c0d29615ea389465f2c507b16b702841..d08faa72ef5ff1ae1eb91d11411bb088766573d2 100644 (file)
     fireRate: 0.5
     soundGunshot:
       path: /Audio/Weapons/Guns/Gunshots/taser.ogg
+    projectileSpeed: 25
   - type: BatteryAmmoProvider
     proto: BulletTaser
     fireCost: 200
   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