vkdoom_m/src/playsim
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
..
bots - first stage of migrating intermissions to screenjobs. 2022-04-26 20:50:35 +02:00
fragglescript - actually GCC is really dumb. 2022-06-06 20:11:01 +02:00
mapthinkers - check point pushers/pullers by inheritance, not absiolute match 2022-06-13 00:08:34 +02:00
a_action.cpp - made TObjPtr as trivial as possible. 2022-06-06 15:19:31 +02:00
a_decals.cpp - fixed: decal things failed to spawn their decals on 3D floors. 2022-04-16 22:49:13 +02:00
a_dynlight.cpp - missed some MAX's. 2021-10-30 10:45:58 +02:00
a_dynlight.h Added the following GL Light flags: 2022-05-31 09:12:59 +02:00
a_flashfader.cpp - split the TObjPtr serializers into a separate file to avoid polluting everything that needs to use the serializer. 2020-04-11 20:20:53 +02:00
a_morph.cpp
a_morph.h
a_pickups.cpp Add mapinfo option to disable merging of identical pickup messages on same tic 2020-05-24 08:19:14 +02:00
a_pickups.h
a_sharedglobal.h Added QF_3D flag for quakes. When used, the quake thinker will perform a 3D distance check instead of 2D. 2022-05-08 07:52:07 +02:00
a_specialspot.cpp - split the serializer in two to keep the Doom specific parts out of the main file. 2020-04-11 20:20:53 +02:00
a_specialspot.h
actionspecials.h - fixed: MBF21' scrollers need to divide the offsets by 8. 2021-07-04 11:33:34 +02:00
actor.h A_ChangeModeldef 2022-07-22 17:11:59 +02:00
actorinlines.h - sprite lightlevel cleanup and fixes. 2022-06-01 08:37:13 +02:00
actorptrselect.cpp
actorptrselect.h
d_player.h - made TObjPtr as trivial as possible. 2022-06-06 15:19:31 +02:00
dthinker.cpp - fix dynamic light setup. 2022-05-23 00:01:49 +02:00
dthinker.h - split the serializer in two to keep the Doom specific parts out of the main file. 2020-04-11 20:20:53 +02:00
p_3dfloors.cpp - removed most templates.h includes. 2021-10-30 10:49:12 +02:00
p_3dfloors.h - made 3D floor damage transfers optional by adding a new flag bit (2048) and made that mode automatic for the old ZDoom-based light only transfer special. 2020-04-19 13:40:21 +02:00
p_3dmidtex.cpp - removed most templates.h includes. 2021-10-30 10:49:12 +02:00
p_3dmidtex.h
p_acs.cpp - fixed several scale related floating point conversion warnings. 2022-06-15 22:15:36 +02:00
p_acs.h - moved more code to 'common'. 2020-04-11 14:00:12 +02:00
p_actionfunctions.cpp A_ChangeModeldef 2022-07-22 17:11:59 +02:00
p_checkposition.h
p_destructible.cpp
p_destructible.h
p_effect.cpp - validate fountaincolor before using it. 2022-06-21 19:47:08 +02:00
p_effect.h - use an enum for the FX_* flags. 2022-01-07 00:40:40 +01:00
p_enemy.cpp Added MF8_SEEFRIENDLYMONSTERS. 2022-05-10 08:25:30 -04:00
p_enemy.h - made CheckMeleeRange a normal function again. 2021-08-21 12:44:36 +02:00
p_interaction.cpp - add sv_ammofactor to change the skill adjustment for ammo 2022-05-18 15:09:13 -04:00
p_linetracedata.h
p_linkedsectors.cpp - removed most templates.h includes. 2021-10-30 10:49:12 +02:00
p_lnspec.cpp Add Polyobj_StopSound special 2021-04-24 15:31:04 -03:00
p_lnspec.h - MBF21: handling of new flags in sector special. 2021-06-28 16:20:35 +02:00
p_local.h - added an override for NOTAUTOAIMED flag when using P_AimLineAttack for informative CCMDs. 2022-06-16 10:07:22 +02:00
p_map.cpp Address Graf's comment 2022-07-15 07:43:57 +02:00
p_maputl.cpp - replaced MIN/MAX in all non-common code. 2021-10-30 10:16:52 +02:00
p_maputl.h - removed volatile type punning for clipping against line portals. 2022-07-14 10:39:11 +02:00
p_mobj.cpp - fixed handling of *dive and *surface sounds. 2022-07-14 08:13:54 +02:00
p_pspr.cpp - added an override for NOTAUTOAIMED flag when using P_AimLineAttack for informative CCMDs. 2022-06-16 10:07:22 +02:00
p_pspr.h - treat PSP layer ID 0 as invalid 2022-04-12 00:17:25 +02:00
p_secnodes.cpp - replaced MIN/MAX in all non-common code. 2021-10-30 10:16:52 +02:00
p_sectors.cpp - fixed setup of PolyBSPs when the software renderer is active. 2022-04-15 23:59:43 +02:00
p_sight.cpp - replaced MIN/MAX in all non-common code. 2021-10-30 10:16:52 +02:00
p_spec.cpp - removed most templates.h includes. 2021-10-30 10:49:12 +02:00
p_spec.h
p_switch.cpp - removed most templates.h includes. 2021-10-30 10:49:12 +02:00
p_tags.cpp
p_tags.h
p_teleport.cpp - fixed: group teleporters must always preserve orientation. 2022-04-15 22:49:23 +02:00
p_things.cpp Move the modified behaviour to a new "resetvel" parameter 2021-03-19 20:12:20 +01:00
p_trace.cpp - fixed: TRF_ALLACTORS did not consider actors without any flag being set. 2020-05-25 19:33:14 +02:00
p_trace.h - moved texture code to 'common'. 2020-04-11 20:20:38 +02:00
p_user.cpp - reverted AActor::scale to a DVector2. 2022-07-11 12:20:34 +02:00
po_man.cpp - revert. accidental change in polyobject code 2022-04-19 10:21:45 +02:00
po_man.h
portal.cpp - removed volatile type punning for clipping against line portals. 2022-07-14 10:39:11 +02:00
portal.h - removed volatile type punning for clipping against line portals. 2022-07-14 10:39:11 +02:00
statnums.h