From 25d2e6ce9e95aa42a72bd640075f076ab30043c9 Mon Sep 17 00:00:00 2001 From: s1lent Date: Wed, 1 Nov 2017 22:47:40 +0700 Subject: [PATCH] Fixes #187 --- regamedll/dlls/ggrenade.cpp | 2 ++ regamedll/dlls/multiplay_gamerules.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/regamedll/dlls/ggrenade.cpp b/regamedll/dlls/ggrenade.cpp index e78f317c..734e6573 100644 --- a/regamedll/dlls/ggrenade.cpp +++ b/regamedll/dlls/ggrenade.cpp @@ -1294,7 +1294,9 @@ void CGrenade::C4Think() // if the defuse process has ended, kill the c4 else if (m_pBombDefuser->pev->deadflag == DEAD_NO) { +#ifndef REGAMEDLL_FIXES Broadcast("BOMBDEF"); +#endif if (TheBots) { diff --git a/regamedll/dlls/multiplay_gamerules.cpp b/regamedll/dlls/multiplay_gamerules.cpp index 96cd6f3b..c3e30b9c 100644 --- a/regamedll/dlls/multiplay_gamerules.cpp +++ b/regamedll/dlls/multiplay_gamerules.cpp @@ -1223,6 +1223,11 @@ bool CHalfLifeMultiplay::Target_Bombed(float tmDelay) bool CHalfLifeMultiplay::Target_Defused(float tmDelay) { Broadcast("ctwin"); + +#ifdef REGAMEDLL_FIXES + Broadcast("BOMBDEF"); +#endif + m_iAccountCT += m_rgRewardAccountRules[RR_BOMB_DEFUSED]; m_iAccountTerrorist += m_rgRewardAccountRules[RR_BOMB_PLANTED];