Fix Missing Player Animations: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (β†’β€Žtop: clean up, added orphan, deadend tags)
Line 1: Line 1:
{{Multiple issues|
{{Dead end|date=January 2024}}
{{Orphan|date=January 2024}}
}}
This article only applies to the latest HL2DM OB SDK (06/15/2009).
This article only applies to the latest HL2DM OB SDK (06/15/2009).



Revision as of 10:02, 21 January 2024

Wikipedia - Letter.png
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

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 models go into their reference pose and glide around.

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.