hlsdk-portable
hlsdk-portable copied to clipboard
Client crash when sequence mdl is missing (e.g. 01.mdl)
If sequence mdl (01, 02, etc.) is missing and game is trying to use the sequence, the client crashes in CStudioModelRenderer::StudioCalcBoneQuaterion.
I wonder if it's possible to handle in the game code so instead of crashing the game could show some meaningful error.
I'm not sure if it's a good workaround, but fan PC port of Decay has such check: https://github.com/hoaxer/Half-Life-Decay/blob/main/cl_dlls/StudioModelRenderer.cpp#L180
panim is not null even if sequence file is missing.
It comes from StudioGetAnim which never returns null