mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-11 13:11:48 +00:00
5abadd3aab
-Added A_ChangeModelDef A_ChangeModel(modeldef, modelpath, model, modelindex, skinpath, skin, skinid, flags) This can change the modeldef, model and skins of an actor. Currently, modelindex and skinindex accept indices from 0-15. An actor MUST have a modeldef in order to use this function, either defined from modeldef, or given one through the modeldef parameter. You can pass "" to use the same modeldef. Likewise, passing "" for model or skin will just revert to the default model. Available flags: CMDL_WEAPONTOPLAYER - If used on a weapon, this instead change's the model on the player instead. One issue I am aware of right now is that clearing a model by "" sort of works but is buggy. For now you can just manually set the model back using the names explicitly. However, I am stumped and I think getting more eyes on it would help. |
||
---|---|---|
.. | ||
static | ||
CMakeLists.txt |