Skip to content

Commit

Permalink
add regameadd macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaqtincha committed Oct 28, 2024
1 parent 4810e0b commit 0096a4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions regamedll/pm_shared/pm_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2435,7 +2435,12 @@ inline real_t PM_JumpHeight(bool longjump)
else if (pmoveplayer->m_flJumpHeight > 0.0)
return pmoveplayer->m_flJumpHeight;
#endif

#ifdef REGAMEDLL_ADD
return Q_sqrt(2.0 * 800.0f * (longjump ? 56.0f : Q_max(jump_height.value, 0.0f)));
#else
return Q_sqrt(2.0 * 800.0f * (longjump ? 56.0f : 45.0f));
#endif
}

LINK_HOOK_VOID_CHAIN2(PM_Jump)
Expand Down

0 comments on commit 0096a4a

Please sign in to comment.