Make save-restore compatible with petty mod development #1823
Labels
goldsrc-compatibility
Half-Life (games and mods)
Related to everything that uses Half-Life engine (GoldSrc)
The affected parts of sv_save.c are:
SAVE_CLIENT
structure. Xash3D saves viewentity as FIELD_SHORT. Maybe save it as FIELD_INTEGER?soundlist_t
structure. Xash3D saves entity index to restore sounds as aFIELD_SHORT
.decallist_t
structure. Xash3D saves entity index to restore decals as aFIELD_SHORT
.FIELD_MODELNAME
to store the model inmessagenum
field and usesFIELD_SHORT
forskin
andbody
. That might be overriden with customSaveRead/WriteFields
implementation. Or skipping save restore for static entities for these mods altogether (it's not like mods use static entities very often).FindEntityByString
implementation. But it doesn't interact with the mod and directly peeks into entvars_t.The text was updated successfully, but these errors were encountered: