2025-07-21 19:29 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003913Spring engineLuapublic2013-08-08 23:48
ReporterFLOZi 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version94.1.1+git 
Target VersionFixed in Version 
Summary0003913: Spring.SetUnitWeaponState increases range more than it should for Cannon weapons
DescriptionIf you set the range of a Cannon-type weapon with Spring.SetUnitWeaponState, it is increased far more than it should be, even though Spring.GetUnitWeaponState will report the correct new size.
Steps To ReproduceGet BTL svn: https://svn.code.sf.net/p/mwspring/code/ rev643

/give cl_adder
Play around with firing his PPC cannon (indicated by max range ring)

Click on 'Energy: Range' button in his menu

This will echo the supposed new ranges, with correct values, from GetUnitWeaponState.

Your adder can now fire at a much increased range, despite the code halving the range.

Compare with cl_nova (all laser weapons) which halves it's range correctly.
Additional InformationCode that does the changing is in LuaRules/Configs/perk_defs.lua line 161 and the function it ccalls starts at line 25

Range is much increased regardless of the multiplier value, though 0.1 does increase it small enough that the range ring fits on a reasonably sized map.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
duplicate of 0003510resolvedjK armbrawl has insane range 
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2013-08-03 14:59 FLOZi New Issue
2013-08-08 23:42 abma Changeset attached => spring develop 1af9bff0
2013-08-08 23:42 abma Assigned To => abma
2013-08-08 23:42 abma Status new => resolved
2013-08-08 23:42 abma Resolution open => fixed
2013-08-08 23:42 abma Relationship added duplicate of 0003510
2013-08-08 23:48 abma Changeset attached => spring develop c0f12ac6
+Issue History