No Animation for Combine Models: Difference between revisions
Jump to navigation
Jump to search
m ({{ru}}) |
m (→Fix) |
||
Line 9: | Line 9: | ||
<pre>Q_snprintf( szReturnString, sizeof (szReturnString ), "cl_playermodel models/Combine_Soldier.mdl\n" );</pre> | <pre>Q_snprintf( szReturnString, sizeof (szReturnString ), "cl_playermodel models/Combine_Soldier.mdl\n" );</pre> | ||
Replace with: | Replace with: | ||
<pre>Q_snprintf( szReturnString, sizeof (szReturnString ), "cl_playermodel models/ | <pre>Q_snprintf( szReturnString, sizeof (szReturnString ), "cl_playermodel models/Police.mdl\n" ); //COMBINE MODEL FIX</pre> | ||
---- | ---- | ||
Line 16: | Line 16: | ||
<pre>szModelName = "models/Combine_Soldier.mdl";</pre> | <pre>szModelName = "models/Combine_Soldier.mdl";</pre> | ||
Replace with: | Replace with: | ||
<pre>szModelName = "models/ | <pre>szModelName = "models/Police.mdl"; //COMBINE MODEL FIX</pre> | ||
---- | ---- | ||
Line 23: | Line 23: | ||
<pre>pszCurrentModelName = "models/Combine_Soldier.mdl";</pre> | <pre>pszCurrentModelName = "models/Combine_Soldier.mdl";</pre> | ||
Replace with: | Replace with: | ||
<pre>pszCurrentModelName = "models/ | <pre>pszCurrentModelName = "models/Police.mdl"; //COMBINE MODEL FIX</pre> | ||
---- | ---- | ||
Line 30: | Line 30: | ||
<pre>szModelName = "models/Combine_Soldier.mdl";</pre> | <pre>szModelName = "models/Combine_Soldier.mdl";</pre> | ||
Replace with: | Replace with: | ||
<pre>szModelName = "models/ | <pre>szModelName = "models/Police.mdl"; //COMBINE MODEL FIX</pre> | ||
[[Category:Source_SDK_FAQ]] | [[Category:Source_SDK_FAQ]] |
Revision as of 01:55, 14 October 2011
Template:Otherlang2 If you have created a mod based on 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