I have had this on my mind for a long time now (and was thinking of devving it for FWW2 mod) but there are a few things why it is not very developeable idea..
The most obvious reason is the function
setObjectTexture itself which is bugged: when you apply a texture on something via
setObjectTexture save the game and then load that saved game; vóila, your setObjectTextured texture has been removed...
Which means you need a constantly looping script checking whether a saved game was loaded (by abusing yet another bugged function,
time) and re-setting that damage texture if necessary.. This script would run after a soldier was hit, of course..
And this creates a very viable MP nightmare..
Especially when more than one soldier gets wounded... :-X
The other thing is that if you would make this thing as good as possible (ie.any good
) you would need to have limbs partly torn off (not just mangled) which is a feature that would increase the soldier model's poly count a lot...
You would need to separate the limb model's in sections which you would texture separately with
setObjectTexture to get the torn off limb effect look real.. So basicly one leg would consist of at least two 'cylinders' which would both have polys on the 'heads' which is the main reason that would add the polycount of a model...
And the more detailed the model is the more polys you would probably get with this feature...
Plus if you would like to have at least some variation on the torn off limbs so that each soldier would not have a hand severed off exactly the same way it would easily add 4 times the polys that would be added with just one sevearble limb part...
I'm not saying it's undoable, just listing the problems I encountered with this on the theorizing part of my developement process..
(If I only had the modelling skills and time to test my theory..)