Team Spartan Cookies & Milk Forums
Duplicated energy weapons bugged - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Help and Support (https://teamscm.co.uk/forum-8.html)
+--- Thread: Duplicated energy weapons bugged (/thread-3705.html)



Duplicated energy weapons bugged - [Ancient] Artemis - 19-11-2021

I've been having an issue with energy weapons, specifically beam emitters, Stargate beam weapons, and Ion Lasers. I'm not sure if this effects other weapons, these were just the ones that I had placed on my ship.

The issue I've had encountered is that when I place the weapons on my ship for the first time, their power draw is normal. However, when I duplicated my ship I came back the next day to spawn in my ship and do some more testing with different configurations for weapons, shield types, etc. While testing the weapons I noticed the power being drawn by the weapons were much higher than normal, and I had done some testing.

The duplicated Asgard beam weapons with a strength of 10 and refire rate unchanged, they were drawing nearly 60k energy each.
The fresh spawned Asgard beam weapons with the same stats as before only drew about 7500 energy, about what I'd expect as the beam weapons draw 750 at a strength of 1 so 750 x 10 = 7500

As for the Ion beams, the results were the same, it seems all the weapons for whatever reason are drawing nearly 100x the power for no reason.

Hope anyone can look into this or give feedback on if anyone else has noticed my findings.

Thank you.


RE: Duplicated energy weapons bugged - mariofludd - 19-11-2021

If I remember correctly, fresh spawned stuff has a strength of 1, but duped gives itself a strength of 10 for some reason
Although I believe this was fixed a long time ago


RE: Duplicated energy weapons bugged - The17thDoctor - 19-11-2021

Be careful, the algorithm for calculating energy consumption isn't as straight forward.
The exact formula for Beam Emitters and for SG Beams aswell is BaseEnergy * ( 03 * Strength )^2 * ( Refire Rate * 0.5 ) which would give 6750 energy per salvo.
Nonetheless, if what you say is true, there is indeed a slight miscalculation when duplicated.


RE: Duplicated energy weapons bugged - Person8880 - 19-11-2021

Do you have any chips that change the fire rate? I can't see any difference between duped and freshly spawned emitters, so it's likely something silently setting the fire rate.


RE: Duplicated energy weapons bugged - [Ancient] Artemis - 19-11-2021

(19-11-2021, 05:55 PM)Person8880 Wrote: Do you have any chips that change the fire rate? I can't see any difference between duped and freshly spawned emitters, so it's likely something silently setting the fire rate.

I will check some more, I only assumed the strength as default is 10 because the Ion Lasers say the default is 10.


RE: Duplicated energy weapons bugged - Person8880 - 27-11-2021

This turned out to be 2 things:
  1. The Kaiser mainframe automatically set weapon strength and fire rate to 10 each, which is the maximum energy usage.
  2. Ion laser turrets used a large amount more energy than their beam emitter equivalent with higher fire rates.
The turret issue is fixed now, energy usage will be consistent with ion laser emitters.


RE: Duplicated energy weapons bugged - The17thDoctor - 27-11-2021

(27-11-2021, 02:41 PM)Person8880 Wrote: This turned out to be 2 things:
  1. The Kaiser mainframe automatically set weapon strength and fire rate to 10 each, which is the maximum energy usage.
  2. Ion laser turrets used a large amount more energy than their beam emitter equivalent with higher fire rates.
The turret issue is fixed now, energy usage will be consistent with ion laser emitters.

As for kaiser, the latest main file version includes settings to enable / disable automatic strength / refire rate value on weapons.