From 7184f4ce39e943c4010b845af793184e8cba8778 Mon Sep 17 00:00:00 2001 From: Shorohov Sergey Date: Fri, 10 Nov 2017 14:36:07 +0300 Subject: [PATCH] Fix C4 angle. (#207) --- regamedll/dlls/wpn_shared/wpn_c4.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/regamedll/dlls/wpn_shared/wpn_c4.cpp b/regamedll/dlls/wpn_shared/wpn_c4.cpp index ce4bb777..04ba54de 100644 --- a/regamedll/dlls/wpn_shared/wpn_c4.cpp +++ b/regamedll/dlls/wpn_shared/wpn_c4.cpp @@ -159,7 +159,12 @@ void CC4::PrimaryAttack() CSGameRules()->m_iC4Timer = int(pev->speed); } - CGrenade *pBomb = CGrenade::ShootSatchelCharge(m_pPlayer->pev, m_pPlayer->pev->origin, Vector(0, 0, 0)); +#ifdef REGAMEDLL_FIXES + Vector vBombAngles = Vector(0, m_pPlayer->pev->angles[1] + 90.0, 0); +#else + Vector vBombAngles = Vector(0, 0, 0); +#endif + CGrenade *pBomb = CGrenade::ShootSatchelCharge(m_pPlayer->pev, m_pPlayer->pev->origin, vBombAngles); MESSAGE_BEGIN(MSG_SPEC, SVC_DIRECTOR); WRITE_BYTE(9);