No Animation for Combine Models: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Adding this to the FAQ)
 
mNo edit summary
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
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.
{{lang|No Animation for Combine Models}}
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 ==
== Fix ==
Line 7: Line 8:
<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/police.mdl\n" );  //COMBINE MODEL FIX</pre>
<pre>Q_snprintf( szReturnString, sizeof (szReturnString ), "cl_playermodel models/Police.mdl\n" );  //COMBINE MODEL FIX</pre>


----
----
Line 14: Line 15:
<pre>szModelName = "models/Combine_Soldier.mdl";</pre>
<pre>szModelName = "models/Combine_Soldier.mdl";</pre>
Replace with:
Replace with:
<pre>szModelName = "models/police.mdl"; //COMBINE MODEL FIX</pre>
<pre>szModelName = "models/Police.mdl"; //COMBINE MODEL FIX</pre>


----
----
Line 21: Line 22:
<pre>pszCurrentModelName = "models/Combine_Soldier.mdl";</pre>
<pre>pszCurrentModelName = "models/Combine_Soldier.mdl";</pre>
Replace with:
Replace with:
<pre>pszCurrentModelName = "models/police.mdl"; //COMBINE MODEL FIX</pre>
<pre>pszCurrentModelName = "models/Police.mdl"; //COMBINE MODEL FIX</pre>


----
----
Line 28: Line 29:
<pre>szModelName = "models/Combine_Soldier.mdl";</pre>
<pre>szModelName = "models/Combine_Soldier.mdl";</pre>
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]]

Latest revision as of 19:15, 15 November 2022

English (en)Русский (ru)Translate (Translate)

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