PrimeXT icon indicating copy to clipboard operation
PrimeXT copied to clipboard

Custom scale of the models is not being saved in save file

Open Aynekko opened this issue 5 years ago • 2 comments

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.

Aynekko avatar Oct 26 '20 19:10 Aynekko

Я думаю, первую часть этой проблемы стоит перенаправить в FWGS/xash3d-fwgs. А вторую я потом пофикшу уже на своей стороне

SNMetamorph avatar Oct 15 '21 07:10 SNMetamorph

Пофикшено на стороне движка https://github.com/FWGS/xash3d-fwgs/commit/d7431783d4f3816584be3a23ba1cf5a3662c9480

SNMetamorph avatar Apr 06 '22 16:04 SNMetamorph