Page 1 of 1
Randomised skins for models?
Posted: Tue Jun 24, 2014 19:24
by Enjay
I think the answer is no but, just in case, is there a way to randomise which skin a model uses? Basically, because a model (typically) only uses one skin, it's easy to edit and create a bit of variation. For example, give the same basic actor different hair styles/ colours/ facial hair etc. So, it would be nice to be able to have the actors randomly pick from a choice of skins when a map loads to increase the visual variety of a particular actor type. The only ways I can think of doing it involve cloned/inherited actors and lots of duplicate modeldef code. Is there a simple way?
Re: Randomised skins for models?
Posted: Thu Jun 26, 2014 4:00
by NeuralStunner
You could use the
"####" trick with the sprite names, running through a random sprite name (GUY1, GUY2, etc.) when the actor spawns but having the main states "reuse" it. (Although this would still make the ModelDef pretty long.)
There is also the problem of the 4-skin-per-definition limit. With a random selector you wouldn't be getting much variety, unless the randomizer were able to span across several definitions. (But how sane would that be?) Alternatively, one might increase the limit to 256 or something. (Would this be an issue?)
Re: Randomised skins for models?
Posted: Thu Jun 26, 2014 18:30
by Enjay
NeuralStunner wrote:There is also the problem of the 4-skin-per-definition limit. With a random selector you wouldn't be getting much variety, unless the randomizer were able to span across several definitions. (But how sane would that be?) Alternatively, one might increase the limit to 256 or something. (Would this be an issue?)
I was hoping that there might be a way of having MODELDEF specify "MySkin" and then have... I dunno, ANIMDEFS or something be able to randomise MySkin so that it becomes one of any number of possibles.
Of course, variations in models would also be welcome (e.g. different heads) but that seems even less likely to be easily possible with small amounts of DECORATE/MODELDEF code than I hoped a randomised skin might be.