Use a separate VehicleType when drawing APCW-type images

Bug #895639 reported by DCoder DCoder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ares
Fix Released
Wishlist
DCoder DCoder

Bug Description

Here's an idea. Instead of fussing with turret support, barrel support, SHP support and whatever else is needed for APCW logic, I can instead add a flag like WaterClass=APCW and draw [APCW] instead of [APC] when over water. Kind of like CMIN gets drawn as UnloadingClass=CMON. This would save me a lot of coding time, and should provide enough customisation.

Caveat: You'd have to actually add APCW to [VehicleTypes].

Vote below.

Revision history for this message
Bug Importer (bug-importer) wrote :

nice and simple solution.

Revision history for this message
EVA-251 (eva-251) wrote :

Optimal solution. One of the things that bugged me about TS's simple APCW system is that the APC lost no speed on water.

Changing vehicletype means you can make it move slower and use a different engine sound when in the water, as well as a new set of VOs if you have such clips available.

Revision history for this message
DCoder DCoder (dcoder1337) wrote :

Err, UnloadingClass (CMON/SCHD) is a graphical-only change, it doesn't change the unit's actual properties... making it actually change those on the fly is quite complicated and not in my plans for this specific issue.

Revision history for this message
Bug Importer (bug-importer) wrote :

Code related to this issue has just been checked in!
Author: DCoder
Location: trunk, r711
Revision comment:
Fixed issue #293 -
Fixed issue #513 -
Fixed issue #1030 - [Vehicle]WaterImage=APCW to draw an [APCW] image. Rather limited for now, the limitations might be lifted in the future:
- [APCW] has to be declared as a [VehicleType], similar to UnloadingClass.
- This is a graphical change only! - changes to other properties such as Speed, Locomotor, or whatever will not take effect.
- Cannot switch between SHP and Voxel images.
- Cannot change the weapons or their FLHs between states (falls under "other properties" really).
This deprecates the old WaterVoxel=yes logic... might have to bring it back if demand exists.
Related to issue 293,513,1030 .
SVN: http://svn.renegadeprojects.com/Ares/711

Revision history for this message
lt albrecht (lt-albrecht) wrote :

Wait so this means these units can have turrets and stuff now?

Revision history for this message
WoRmINaToR (worminator) wrote :

I may be mistaken, but it seems to me that this has been fixed, tested, and confirmed working.

If there's no more work to be done on this feature we can close this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.