View Issue Details

IDProjectCategoryView StatusLast Update
0005590Spring engineUnit Scriptingpublic2017-05-30 15:45
ReporterKingRaptor Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version103.0 +git 
Summary0005590: Units with COB scripts not obeying corpseType
DescriptionUnits with COB scripts always die to the first corpse feature specified in the unitdef, regardless of what Killed() assigns to the corpseType variable in the unit script.

In practical terms, this means that a self-destructed unit in a typical *A-type game will die to wreckage, instead of the expected debris.

Units with Lua unit scripts do not experience the issue.
Additional InformationTested with Zero-K (developer and v1.5.5.2 versions) in 103.0.1-980-g522bf60. Unitnames that can be tested with: vehcon, vehassault, turretimpulse
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Kloot

2017-05-30 15:43

developer   ~0017740

Last edited: 2017-05-30 15:44

see https://springrts.com/phpbb/viewtopic.php?f=14&t=34493, also 0005102

tldr: don't use "corpseType = 123;" but "return corpseType;"

Issue History

Date Modified Username Field Change
2017-05-30 14:58 KingRaptor New Issue
2017-05-30 15:43 Kloot Note Added: 0017740
2017-05-30 15:44 Kloot Note Edited: 0017740
2017-05-30 15:45 Kloot Status new => closed
2017-05-30 15:45 Kloot Resolution open => no change required