View Single Post
ddd123
Senior Member
Join Date: May 2021
Old 10-15-2021 , 20:07   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #19

Quote:
Originally Posted by Silvers View Post
2. Not using "m_flLaggedMovementValue" and having stuttered movement, but no sped up jump etc.
About the stuttered movement
Since it looks drugged on player but how about just apply this plugin only on survivors bots?

HTML Code:
public Action L4D_OnGetRunTopSpeed(int client, float &retVal)
{
	if( g_fSpeedRun[client] && IsFakeClient(client) && GetClientTeam(client) == 2)
	{
		retVal = g_fSpeedRun[client];
		return Plugin_Handled;
	}

	return Plugin_Continue;
}

public Action L4D_OnGetWalkTopSpeed(int client, float &retVal)
{
	if( g_fSpeedWalk[client] && IsFakeClient(client) && GetClientTeam(client) == 2)
	{
		retVal = g_fSpeedWalk[client];
		return Plugin_Handled;
	}

	return Plugin_Continue;
}

public Action L4D_OnGetCrouchTopSpeed(int client, float &retVal)
{
	if( g_fSpeedCrouch[client] && IsFakeClient(client) && GetClientTeam(client) == 2)
	{
		retVal = g_fSpeedCrouch[client];
		return Plugin_Handled;
	}

	return Plugin_Continue;
}
I try this but it's seem is not working on teammate bots
Got any idea how it work only on bots teammate?

Last edited by ddd123; 10-15-2021 at 20:10.
ddd123 is offline