Skip to content

alternative voxels for damaged states

Renegade edited this page Dec 4, 2011 · 1 revision

Alternative voxels for damaged states

This specification was automatically generated from a feature request imported into Ares's LaunchPad bugtracker. If you are interested in fleshing out this feature, please update this page.

Original Request

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=SOMETANK 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=SOMEGFX for use with infantry or other SHP-based units as well.

ADDITIONAL INFORMATION

Implementation-wise, there must be a periodic check for damaged state anyway, in order to trigger smoke, sparks and alternative images on tanks and cyborgs. 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=YELLOWGFX,REDGFX for the different damage states, but simplicity should rule here - if the check only differentiates between damage/no damage, we should go with that. It's unlikely the majority of modders would create three voxels per tank anyway. Should there be two states, the yellow state should be used if no red state is defined.

Specification details

Goals

  • This needs to be filled by a supporter/drafter of this specification.

Suggestions / Notes

  • This needs to be filled by a supporter/drafter of this specification.

See also

Clone this wiki locally