Quote:
Originally Posted by Slaven555
With l4d_sjm_bacterialfeetride turned on, "1" after the jockey knocks the survivor, an error occurs. If you raise the survivor, he starts walking with accelerated movement.
|
You need change:
Code:
public Action Event_JockeyRideEnd(Event event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(GetEventInt(event, "userid"));
int victim = GetClientOfUserId(GetEventInt(event, "victim"));
if (IsValidClient(client))
{
isRiding[client] = false;
}
if (isBacterialFeetRide && IsValidClient(victim))
{
SetEntDataFloat(victim, laggedMovementOffset, 1.0 * GetConVarFloat(cvarBacterialFeetRideSpeed), true);
}
}
To:
Code:
public Action Event_JockeyRideEnd(Event event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(GetEventInt(event, "userid"));
int victim = GetClientOfUserId(GetEventInt(event, "victim"));
if (IsValidClient(client))
{
isRiding[client] = false;
}
if (isBacterialFeetRide && IsValidClient(victim))
{
SetEntDataFloat(victim, laggedMovementOffset, 1.0, true);
}
}