Alternative voxels for damaged states
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ares |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
Issue #bug:295 is a (suspended) mashup of voxel requests, half of which are silly. However, the suggestion of alternative voxels for damaged units is a good one.
Buildings already have a different image when damaged, as do cyborgs. It would increase the general "credibility" and atmosphere of the game if tanks, ships and aircraft did, too - particularly since they already smoke when damaged, and it does look kind of curious that a visually perfectly fine tank would suddenly start smoking, yet have no dent from the barrage of shells it just endured.
Usage-wise, it should be as simple as
DamagedVoxel=
Where SOMETANK would simply replace the unit's current image data, turret and all.
If it makes no difference in effort, it would probably be wise to implement this as DamagedImage=
##### ADDITIONAL INFORMATION #####
Implementation-
An implementation could/should be as simple as adding a hook to the end of that and triggering a reload of the object's image data, replacing it with the one specified in the INI.
Given that both NoSpawnAlt=yes and WaterVoxel already do such state-dependent voxel changes, this shouldn't be too hard.
If the check provides enough data, we could think about doing DamagedImage=
Should there be two states, the yellow state should be used if no red state is defined.
I think we should go for simplicity here, however, given that (at least i'm pretty sure) structures already have checks for both yellow and red health states, this could definitely be possible on units.
However, what you said above still stands regardless-- it's unlikely anyone would draw up 3 different voxels for a single unit, just for 3 different damage states.
-"If it makes no difference in effort, it would probably be wise to implement this as DamagedImage= SOMEGFX for use with infantry or other SHP-based units as well."
I also support this being possible for the SHP based and non-vehicle techtypes, infantry and aircraft (and also for SHP vehicles of course).