There is this:
- Code: Select all
#ifdef HL2MP
#define HL2_WALK_SPEED 150
#define HL2_NORM_SPEED 190
#define HL2_SPRINT_SPEED 320
#else
#define HL2_WALK_SPEED hl2_walkspeed.GetFloat()
#define HL2_NORM_SPEED hl2_normspeed.GetFloat()
#define HL2_SPRINT_SPEED hl2_sprintspeed.GetFloat()
#endif
and also some HL2_WALK_SPEED, HL2_NORM_SPEED and HL2_SPRINT_SPEED's in various functions. It looks like an easy job for a MP mod but for a SP mod I can't work it out. I tried just doing this:
- Code: Select all
#ifdef HL2MP
#define HL2_WALK_SPEED 150
#define HL2_NORM_SPEED 190
#define HL2_SPRINT_SPEED 320
#else
#define HL2_WALK_SPEED 100
#define HL2_NORM_SPEED 150
#define HL2_SPRINT_SPEED 200
#endif
...which made no difference. I also tried searching for everywhere these occured in functions in the hl2_player.cpp file and directly replacing HL2_NORM_SPEED with a value. Also seemed to make no difference.
I have only just set up VS for my mod to make some small changes like this so I may have done something wrong during that process too but I think I got all the fixes and whatnot sorted.
EDIT: Also just tried changing the ConVars for the speeds to:
- Code: Select all
ConVar hl2_walkspeed( "hl2_walkspeed", "50" );
ConVar hl2_normspeed( "hl2_normspeed", "100" );
ConVar hl2_sprintspeed( "hl2_sprintspeed", "150" );
Still no change!



