gzdoom/wadsrc/static/zscript/actors
Shiny Metagross 5abadd3aab A_ChangeModeldef
-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.
2022-07-22 17:11:59 +02:00
..
chex - made the colorset names and the texts in the color picker localizable. 2019-05-19 18:57:39 +02:00
doom - fixed radius of BossBrain actor 2022-05-09 00:00:28 +02:00
heretic - added vertical bullet spread relative to ssg 2022-04-09 22:46:20 +02:00
hexen - fixed PoisonCloud's looping animation count. 2022-07-14 07:54:19 +02:00
inventory -let A_FireProjectile pass through the second return value of SpawnPlayerMissile. 2022-07-14 07:59:52 +02:00
player - fixed and consolidated artifact check in cheat code. 2022-07-15 07:56:22 +02:00
raven - fixed bad parameter order in MinoraurSlam. 2021-09-16 07:45:09 +02:00
shared Added the following GL Light flags: 2022-05-31 09:12:59 +02:00
strife - fixed: The PrisonPass's TryPickup method did not properly report successful pickup. 2021-05-17 11:51:06 +02:00
actions.zs Added A_SpriteOffset. (#895) 2020-08-27 12:43:09 -04:00
actor.zs A_ChangeModeldef 2022-07-22 17:11:59 +02:00
attacks.zs - avoid multiple Dehacked mappings to the same function. 2021-10-03 18:16:37 +02:00
checks.zs Add help messages for most of the deprecated stuff in ZScript. 2020-03-14 12:56:03 +02:00
interaction.zs - reorganized the ZScript content in gzdoom.pk3 and changed the files' extensions to something unique for easier syntax highlighting. 2019-02-23 12:08:27 +01:00
inventory_util.zs - added Get/SetAmmoCapacity ZScript functions 2022-04-29 00:12:51 +02:00
mbf21.zs - silence some warnings. 2022-02-14 20:05:42 +01:00
morph.zs Changed Pre/Post(Un)Morph to take the other actor and a boolean indicating direction. 2020-03-08 15:29:09 +01:00