View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0003913 | Spring engine | Lua | public | 2013-08-03 14:59 | 2013-08-08 23:48 | ||||
Reporter | FLOZi | ||||||||
Assigned To | abma | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 94.1.1+git | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0003913: Spring.SetUnitWeaponState increases range more than it should for Cannon weapons | ||||||||
Description | If 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 Reproduce | Get 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 Information | Code 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. | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|||
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 |