fixed ladder issue
This commit is contained in:
parent
54c9ff0ac6
commit
88741dae43
@ -126,7 +126,13 @@ public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3
|
|||||||
{
|
{
|
||||||
//we use info we just got from OnPlayerRunCmdPre to determine if to jump
|
//we use info we just got from OnPlayerRunCmdPre to determine if to jump
|
||||||
if (!IsValidClient(client) || !IsPlayerAlive(client) || !is_bot_player(client)) return Plugin_Continue;
|
if (!IsValidClient(client) || !IsPlayerAlive(client) || !is_bot_player(client)) return Plugin_Continue;
|
||||||
if ((GetEntityMoveType(client) & MOVETYPE_LADDER) || GetEntProp(client, Prop_Data, "m_nWaterLevel") != 0)
|
if ((GetEntityMoveType(client) & MOVETYPE_LADDER))
|
||||||
|
{
|
||||||
|
GetEntPropVector(client, Prop_Send, "m_vecOrigin", coords_run_cmd[client]);
|
||||||
|
return Plugin_Continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (GetEntProp(client, Prop_Data, "m_nWaterLevel") != 0)
|
||||||
{
|
{
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user