PrimeXT
PrimeXT copied to clipboard
Custom scale of the models is not being saved in save file
This is very important. Otherwise after loading the game some models with scale above 1.0 will be disappearing while still being in the view (when you can see small corner of the model). While their actual scale is not reset, their scale in the engine resets and it thinks the scale of the model is 1.0 and it's not in the view anymore.
Part 1:
xash.dll, sv_save.c:
find static TYPEDESCRIPTION gStaticEntry[] =
and add DEFINE_FIELD( entity_state_t, startpos, FIELD_VECTOR ),
Part 2:
server.dll, saverestore.cpp:
find TYPEDESCRIPTION gEntvarsDescription[] =
and add DEFINE_ENTITY_FIELD( startpos, FIELD_VECTOR ),
That should be all.
Я думаю, первую часть этой проблемы стоит перенаправить в FWGS/xash3d-fwgs. А вторую я потом пофикшу уже на своей стороне
Пофикшено на стороне движка https://github.com/FWGS/xash3d-fwgs/commit/d7431783d4f3816584be3a23ba1cf5a3662c9480