Fix Missing Player Animations
Jump to navigation
Jump to search
Note:This article only applies to the
Source 2009 Multiplayer SDK.

This article is an orphan, meaning that few or no articles link to it.
You can help by
adding links to this article from other relevant articles.
January 2024
You can help by

January 2024


By default, the Source 2009 SDK includes source code that makes several calls to swimming animations that do not yet exist with the current Half-Life 2: Deathmatch player animations. As a result, whenever water goes above a player's waist, the models go into their reference pose.
To fix this issue, open multiplayer_animstate.cpp
and in the bool CMultiPlayerAnimState::HandleSwimming( Activity &idealActivity )
function,
Change:
idealActivity = ACT_MP_SWIM;
...to...
idealActivity = ACT_MP_RUN;
Now, whenever water goes up to a player's waist, the code will call for the Half-Life 2: Deathmatch run animation, which is a good alternative because it already exists and makes the player look like they are swimming and wading through the water.