diff --git a/source/games/exhumed/src/runlist.cpp b/source/games/exhumed/src/runlist.cpp index 13b4156ce..0b1ad0b0f 100644 --- a/source/games/exhumed/src/runlist.cpp +++ b/source/games/exhumed/src/runlist.cpp @@ -23,8 +23,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "sound.h" #include -CVARD(Bool, cl_exdamagepush, false, CVAR_ARCHIVE, "enables player damage pushback from explosions, etc.") - BEGIN_PS_NS enum @@ -1776,22 +1774,13 @@ int runlist_CheckRadialDamage(DExhumedActor* pActor) { if ((nPush = max((nRadialDamage * (nDamageRadius - nDist)) / nDamageRadius, 0.)) > 20) { - const auto nVel = DVector3(pos.Angle().ToVector(), -24 * (1. / 256.)) * nPush; - pActor->vel.Z += nVel.Z; + pActor->vel += DVector3(pos.Angle().ToVector() * 0.125, -24 * (1. / 256.)) * nPush; if (pActor->vel.Z < -14) pActor->vel.Z = -14; if (pActor->spr.statnum == 100) - { - // The player's max vel is 15.25 for reference. - pActor->vel.XY() += nVel.XY() * 0.1875 * cl_exdamagepush; getPlayer(GetPlayerFromActor(pActor))->bJumping = true; - } - else - { - pActor->vel.XY() += nVel.XY() * 0.125; - } } }