Fix Missing Player Animations

From Valve Developer Community
Revision as of 15:27, 1 August 2009 by £cho (talk | contribs) (Created page with 'This article only applies to the latest HL2DM OB SDK (06/15/2009). By default, the 06/15/2009 Source SDK update includes source code that makes several calls to swimming animati…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This article only applies to the latest HL2DM OB SDK (06/15/2009).

By default, the 06/15/2009 Source SDK update includes source code that makes several calls to swimming animations that do not yet exist with the current HL2DM player animations. As a result, whenever water goes up to a player's waist, the player enters the famous "T-pose" or "Jesus pose".

The Fix

Here's how to fix this issue:

multiplayer_animstate.cpp bool CMultiPlayerAnimState::HandleSwimming( Activity &idealActivity )

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 HL2DM run animation, which is a good alternative because it already exists in the current HL2DM player animations and makes the player look as though they are actually swimming and wading though the water.