vkdoom_m/src
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
..
common - DirectInput cleanup 2022-07-20 14:41:06 +02:00
console - did a test compile as C++20 and fixed all warnings that got emitted. 2022-07-15 09:17:50 +02:00
g_statusbar - made TObjPtr as trivial as possible. 2022-06-06 15:19:31 +02:00
gamedata - fixed return values of FTextureAnimator::AddAnim 2022-07-22 08:35:56 +02:00
intermission - reverted AActor::scale to a DVector2. 2022-07-11 12:20:34 +02:00
maploader ZDRay UDMF key update (per-surface sampling distance https://github.com/dpjudas/ZDRay/pull/36) 2022-06-29 09:12:18 +02:00
menu - added Raze-style HUD scaling. 2022-06-05 10:57:21 +02:00
playsim A_ChangeModeldef 2022-07-22 17:11:59 +02:00
posix - bump macOS version to 10.12 in .plist 2021-10-18 10:41:02 +03:00
r_data A_ChangeModeldef 2022-07-22 17:11:59 +02:00
rendering A_ChangeModeldef 2022-07-22 17:11:59 +02:00
scripting If the system uses very high memory addresses this error will be hit 2022-07-10 22:26:57 +02:00
sound - made TObjPtr as trivial as possible. 2022-06-06 15:19:31 +02:00
utility/nodebuilder - did a test compile as C++20 and fixed all warnings that got emitted. 2022-07-15 09:17:50 +02:00
win32 - removed most templates.h includes. 2021-10-30 10:49:12 +02:00
am_map.cpp - fixed handling of automap sprites with negative scale. 2022-05-23 00:08:33 +02:00
am_map.h
announcer.h
bbannouncer.cpp - final update of menu code from Raze. 2020-10-16 22:57:30 +02:00
CMakeLists.txt Add buffer and texture managers for handling object lifetimes 2022-06-22 07:55:19 +02:00
ct_chat.cpp - the chat should use the console's scaling, not the one for the messages printed with the small font. 2022-06-05 16:29:42 +02:00
d_anonstats.cpp Create a MainWindow class that manages the main win32 window of the application 2022-06-01 08:36:59 +02:00
d_buttons.h - use an array to store the buttons. 2020-04-11 20:19:50 +02:00
d_defcvars.cpp - enable cvar blacklisting for defcvars for certain platform variables 2021-09-05 10:27:06 -04:00
d_defcvars.h - enable cvar blacklisting for defcvars for certain platform variables 2021-09-05 10:27:06 -04:00
d_event.h - added cutscene creation code 2022-06-03 00:03:57 +02:00
d_iwad.cpp - added a few more names to the reserved names for main folder detection. 2022-06-04 22:11:14 +02:00
d_main.cpp fix gzdoom.pk3 not found error 2022-07-16 15:04:13 +02:00
d_main.h - add steamappid field for DRPC 2022-03-10 00:03:50 -05:00
d_net.cpp - make sure ticdup is initialized. 2022-06-22 10:30:09 +02:00
d_net.h - moved i_net into 'common' to bring it in line with Raze. 2020-09-27 12:30:54 +02:00
d_netinf.h - fixed startup-time setup of serverinfo CVARs. 2020-04-13 11:53:08 +02:00
d_netinfo.cpp - added vertical bullet spread relative to ssg 2022-04-09 22:46:20 +02:00
d_protocol.cpp
d_protocol.h - first stage of migrating intermissions to screenjobs. 2022-04-26 20:50:35 +02:00
doomdata.h - fixed several scale related floating point conversion warnings. 2022-06-15 22:15:36 +02:00
doomdef.h - did a test compile as C++20 and fixed all warnings that got emitted. 2022-07-15 09:17:50 +02:00
doomstat.cpp - decoupled the string table from game implementation details. 2020-04-11 20:19:51 +02:00
doomstat.h - remove old 'mouse_sensitivity' cvar completely, it's no longer needed 2020-09-30 01:05:37 -04:00
doomtype.h - added a new light mode that emulates Build's depth fading. 2020-06-08 23:37:20 +02:00
empty.cpp
events.cpp Allow SendNetworkEvent during title level. 2022-05-20 13:00:17 +02:00
events.h Allow WorldUnloaded events to know the next map name (if any). 2021-10-01 20:18:36 +02:00
g_cvars.cpp - Added 'ScaleWeaponFOV' flag to MODELDEF. Affects weapon models only; will scale the model along with the user's FOV to reduce distortion. 2022-03-08 07:43:39 +01:00
g_cvars.h
g_dumpinfo.cpp - missed some MAX's. 2021-10-30 10:45:58 +02:00
g_game.cpp - add longsavemessages to simple menu. set longsavemessages default to false. 2022-07-21 13:22:52 -04:00
g_game.h - added cutscene creation code 2022-06-03 00:03:57 +02:00
g_hub.cpp Display other kills in coop tally screen (#1167) 2020-08-30 09:34:53 -04:00
g_hub.h
g_level.cpp - block wipes when streaming movies are playing. 2022-06-06 12:30:47 +02:00
g_level.h - system backend cleanup. 2020-04-22 19:57:14 +02:00
g_levellocals.h Upload acceleration structures for the level mesh 2022-06-22 07:55:19 +02:00
g_pch.h - temporary solution to fix build of non-MSVC targets 2019-08-22 11:30:40 +03:00
g_pch2.h
gameconfigfile.cpp - set i_pauseinbackground to match !(i_soundinbackground) for all configs before this commit. 2022-06-09 04:11:44 -04:00
gameconfigfile.h Default Heretic's, Hexen's and Strife's default screen wipe styles to match their original counterparts. 2021-04-24 22:46:03 -04:00
gitinfo.cpp
hu_scores.cpp - avoid storing texture pointers in longer lived data 2022-06-07 00:00:54 +02:00
hu_stuff.h - backport some fixes from Raze - mostly redundant includes. 2020-04-11 20:20:39 +02:00
m_cheat.cpp - separate message for disabling noclip2 2022-04-12 00:51:34 +02:00
m_cheat.h
m_misc.cpp - changed FString API to use ptrdiff_t instead of long for signed size arguments. 2021-08-12 00:45:59 +02:00
m_misc.h - system backend cleanup. 2020-04-22 19:57:14 +02:00
namedef_custom.h - fixed names for A_PlaySoundEx 2022-06-30 21:45:59 +02:00
p_conversation.cpp - make stuff compile again 2022-04-26 20:50:35 +02:00
p_conversation.h - moved texture code to 'common'. 2020-04-11 20:20:38 +02:00
p_openmap.cpp - Add support for loading lightmap data generated by ZDRay 2021-09-24 14:51:48 +08:00
p_saveg.cpp - don't move bad polyobjects in the savegame loader. 2022-04-15 22:41:55 +02:00
p_saveg.h
p_setup.cpp - optimized storage for animation definitions. 2022-07-17 10:15:09 +02:00
p_setup.h - Add support for loading lightmap data generated by ZDRay 2021-09-24 14:51:48 +08:00
p_states.cpp - removed most templates.h includes. 2021-10-30 10:49:12 +02:00
p_tick.cpp - run the dynamic light recreation loop before calling the light ticker. 2021-08-11 15:41:42 +02:00
p_tick.h
r_state.h
scriptutil.cpp
scriptutil.h
serializer_doom.cpp - replaced MIN/MAX in all non-common code. 2021-10-30 10:16:52 +02:00
serializer_doom.h - reactivated saving of sounds by name, not by index. 2020-04-13 10:32:46 +02:00
st_stuff.cpp Added 'NoKeyboardCheats' option to IWADINFO 2019-11-13 17:34:42 +01:00
st_stuff.h
version.h - version.h update 2022-07-07 08:27:33 -04:00
wi_stuff.cpp - fixed background tiling for summary screen. 2022-06-29 08:36:01 +02:00
wi_stuff.h - first stage of migrating intermissions to screenjobs. 2022-04-26 20:50:35 +02:00