No Animation for Combine Models: Difference between revisions
Jump to navigation
Jump to search
(Adding this to the FAQ) |
m (Bah, forgot the category entry) |
||
Line 29: | Line 29: | ||
Replace with: | Replace with: | ||
<pre>szModelName = "models/police.mdl"; //COMBINE MODEL FIX</pre> | <pre>szModelName = "models/police.mdl"; //COMBINE MODEL FIX</pre> | ||
[[Category:Source_SDK_FAQ]] |
Revision as of 14:22, 16 October 2007
If you have created a mod based off of HL2:MP, you may have this issue. Combine players will appear to other players as a simple combine model with his arms out to his side, with no walking animation, nor any other type of animation. When they walk around, they simply appear to glide along the ground. You may need to disable client side model changing in your gameinfo.txt to prevent players from picking a non-working model.
Fix
Open hl2mp_player.cpp
Find:
Q_snprintf( szReturnString, sizeof (szReturnString ), "cl_playermodel models/Combine_Soldier.mdl\n" );
Replace with:
Q_snprintf( szReturnString, sizeof (szReturnString ), "cl_playermodel models/police.mdl\n" ); //COMBINE MODEL FIX
Find:
szModelName = "models/Combine_Soldier.mdl";
Replace with:
szModelName = "models/police.mdl"; //COMBINE MODEL FIX
Find:
pszCurrentModelName = "models/Combine_Soldier.mdl";
Replace with:
pszCurrentModelName = "models/police.mdl"; //COMBINE MODEL FIX
Find (Second occurrence):
szModelName = "models/Combine_Soldier.mdl";
Replace with:
szModelName = "models/police.mdl"; //COMBINE MODEL FIX