Describe the bug
Normal model-generation behavior in npc_citizen17.cpp leads to precaching fail when calling it for player_setclass in CBasePlayer::SetStats
To Reproduce
Steps to reproduce the behavior:
Mimic behavior of CNPC_Citizen::SelectModel in CNPC_Citizen::GetBaseData in the default section
in console enter "player_setclass citizen"
See how the game breakes while trying to precache because the value of szModelName changes in CBasePlayer::SetModelCaching
Expected behavior
The player model changes and uses a random head (for now)
Additional context
It seems as if the string-creation is the problem here... as fixed strings do not have the issue (current circumvention)
Describe the bug Normal model-generation behavior in npc_citizen17.cpp leads to precaching fail when calling it for player_setclass in CBasePlayer::SetStats
To Reproduce Steps to reproduce the behavior:
Expected behavior The player model changes and uses a random head (for now)
Additional context It seems as if the string-creation is the problem here... as fixed strings do not have the issue (current circumvention)