Skip to content

Instantly share code, notes, and snippets.

@korden32
Created May 10, 2013 13:08
Show Gist options
  • Save korden32/5554293 to your computer and use it in GitHub Desktop.
Save korden32/5554293 to your computer and use it in GitHub Desktop.
Simple BunnyHop for SM
public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
if (IsPlayerAlive(client) && (buttons & IN_JUMP) && !(GetEntityFlags(client) & FL_ONGROUND) && !(GetEntityMoveType(client) & MOVETYPE_LADDER) && (GetEntProp(client, Prop_Data, "m_nWaterLevel") <= 1))
buttons &= ~IN_JUMP;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment