View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005963 | Spring engine | Lua | public | 2018-04-18 22:10 | 2018-04-18 22:32 |
| Reporter | Doo | Assigned To | Kloot | ||
| Priority | normal | Severity | feature | Reproducibility | random |
| Status | closed | Resolution | no change required | ||
| Summary | 0005963: Spring.GetUnitWeaponStates(unitID, weaponNum, "reloadTime") doesn't return the right value | ||||
| Description | When using Spring.GetUnitWeaponStates(unitID, weaponNum, "reloadTime") and comparing it to the UnitDefs value (to tell the firerate bonus and show it in a unit stats widget), a wrong value is returned. Spring.GetUnitWeaponStates(unitID, weaponNum, "reloadTime") seems to return a value that is either == WeaponDefs[wDefID].reload or slightly below it, but not always the current value. | ||||
| Steps To Reproduce | I really can't tell, sometimes it worked, sometimes it didnt. The best way to reproduce is still to play BA latest test version on spring 104.0.1 - 409 with modoption "mo_unba" enabled and /give 150 armwar The first warrior is spawned with 0 exp and the latest with 10 exp, so from then you can compare their effective reloadTime (as seen ingame) and the values showed in unitstats (hover unit with cursor and press space) | ||||
| Additional Information | Spring 104.0.1-409 Balanced Annihilation test-9085-8ddabb1 Not reproduceable on Spring 104.0.1-138. | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||