Fixing Per-Material Footsteps in HL2MP

From Valve Developer Community
Jump to navigation Jump to search

The information has been taken from the Prop Footsteps page, as these steps are required before making that fix. But, I have found that in Source SDK 2013 MP, Footsteps are not correct until these steps have been taken.

Code Changes

src\cl_dll\hl2mp\c_hl2mp_player.h

Prototype Removal

  • PlayStepSound
  • PrecacheFootStepSounds

src\game_shared\hl2mp\hl2mp_player_shared.cpp

Symbol Removal

  • PlayStepSound
  • PrecacheFootStepSounds

src\dlls\hl2mp_dll\hl2mp_player.cpp

Precache

In function CHL2MP_Player::Precache
Remove
	PrecacheFootStepSounds();

src\dlls\hl2mp_dll\hl2mp_player.h

Prototype Removal

  • PlayStepSound
  • PrecacheFootStepSounds