View Single Post
Author Message
Devvii
BANNED
Join Date: Aug 2022
Location: GB
Old 08-12-2022 , 10:40   Problem with Multi Jump + Bhop
Reply With Quote #1

Hello, I have a problem with the plugin.

On the server, I use commands such as:
sv_autobunnyhopping 1
sv_enablebunnyhopping 1
sv_airaccelerate 100
sv_staminalandcost 0
sv_staminajumpcost 0
sv_staminamax 0
sv_staminajumpcost 0

And I'm using this code for Jumper class // Double Jump
Code:
public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3])
{
if(!IsPlayerAlive(client) || IsFakeClient(client))
{
return Plugin_Continue;
}

if((buttons & IN_JUMP) > 0 && GetEntityMoveType(client) == MOVETYPE_WALK && GetEntProp(client, Prop_Send, "m_nWaterLevel") <= 1)
{
int iOldButtons = GetEntProp(client, Prop_Data, "m_nOldButtons");
SetEntProp(client, Prop_Data, "m_nOldButtons", iOldButtons & ~IN_JUMP);
}

return Plugin_Continue;
}

//How to make the double jump work in bhop??
In running and jumping time, double jump is working properly.
But in Bhop time, sometimes the double jump will work or not at all.
Devvii is offline
Send a message via ICQ to Devvii Send a message via AIM to Devvii Send a message via Yahoo to Devvii Send a message via Skype™ to Devvii