A_ChangeModel now has generatorIndex

- To really take advantage of this function, I thought it would be useful to be able to add additional models if the user wants to. Let's say you got a player model at index 0. Your gun model has the same frames, but you don't want to duplicate the modeldef data. With generator index, you don't need to duplicate the data, just tell generator index to clone frame data from index 0.
- Implemented a little something to check if a negative skin or model index were passed, and prevent modders from pulling that off.
This commit is contained in:
Shiny Metagross 2022-07-08 22:47:12 -07:00 committed by Christoph Oelckers
commit 9ab6557822
5 changed files with 53 additions and 11 deletions

View file

@ -1369,6 +1369,7 @@ void DActorModelData::Serialize(FSerializer& arc)
("modelIDs", modelIDs)
("skinIDs", skinIDs)
("surfaceSkinIDs", surfaceSkinIDs)
("modelFrameGenerators", modelFrameGenerators)
("hasModel", hasModel);
}