Announcement

Collapse
No announcement yet.

GroundStrafe

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • GroundStrafe

    CL_CreateMove:

    Code:
    if(cvar.groundstrafe && me.alive && cmd->buttons&IN_USE)
    {
    strafe(cmd);
    }
    HUD_PlayerMove:
    Code:
    me.bInDuck = ppmove->bInDuck;
    client.cpp (new void):
    Code:
    void strafe(usercmd_s *cmd)
    {
    if (g_Local.pmFlags & FL_ONGROUND)
    cmd->buttons |= IN_DUCK;
    if (((g_Local.pmFlags & FL_ONGROUND) && (g_Local.bInDuck)) || !(g_Local.pmFlags & FL_ONGROUND))
    cmd->buttons &= ~IN_DUCK;
    }
Working...
X