From ec55c3011dd5125f6fc2d18abc28e0a03496e8cb Mon Sep 17 00:00:00 2001 From: "ALLEN-PC\\acj30" Date: Wed, 8 Jan 2025 09:31:56 -0600 Subject: [PATCH] Fix citizen SelectModel VScript hook having issues in save/restore --- sp/src/game/server/hl2/npc_citizen17.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sp/src/game/server/hl2/npc_citizen17.cpp b/sp/src/game/server/hl2/npc_citizen17.cpp index 02baaf07..c66ca4e5 100644 --- a/sp/src/game/server/hl2/npc_citizen17.cpp +++ b/sp/src/game/server/hl2/npc_citizen17.cpp @@ -839,6 +839,9 @@ void CNPC_Citizen::SelectModel() } } + // Models selected this way must be unique to avoid conflicts in save/restore + m_Type = CT_UNIQUE; + // Just set the model right here SetModelName( AllocPooledString( returnValue.m_pszString ) ); return;