From 5af43d302b0fc48fbf5262db76a00afef09847a2 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Fri, 23 Aug 2019 01:16:34 -0700 Subject: [PATCH] Fixed wrong multicast message type being used. --- Source/server/cstrike/damage.c | 16 ++++++++-------- Source/shared/cstrike/radio.c | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Source/server/cstrike/damage.c b/Source/server/cstrike/damage.c index 22bd23c5..b4553a1b 100644 --- a/Source/server/cstrike/damage.c +++ b/Source/server/cstrike/damage.c @@ -15,14 +15,14 @@ Sends a message to the clients to display a death message */ void Damage_CastOrbituary(entity eAttacker, entity eTarget, float fWeapon, float fHeadShot) { - WriteByte(MSG_BROADCAST, SVC_CGAMEPACKET); - WriteByte(MSG_BROADCAST, EV_ORBITUARY); - WriteByte(MSG_BROADCAST, num_for_edict(eAttacker) - 1); - WriteByte(MSG_BROADCAST, eAttacker.team); - WriteByte(MSG_BROADCAST, num_for_edict(eTarget) - 1); - WriteByte(MSG_BROADCAST, eTarget.team); - WriteByte(MSG_BROADCAST, fWeapon); - WriteByte(MSG_BROADCAST, fHeadShot); + WriteByte(MSG_MULTICAST, SVC_CGAMEPACKET); + WriteByte(MSG_MULTICAST, EV_ORBITUARY); + WriteByte(MSG_MULTICAST, num_for_edict(eAttacker) - 1); + WriteByte(MSG_MULTICAST, eAttacker.team); + WriteByte(MSG_MULTICAST, num_for_edict(eTarget) - 1); + WriteByte(MSG_MULTICAST, eTarget.team); + WriteByte(MSG_MULTICAST, fWeapon); + WriteByte(MSG_MULTICAST, fHeadShot); msg_entity = self; multicast([0,0,0], MULTICAST_ALL); } diff --git a/Source/shared/cstrike/radio.c b/Source/shared/cstrike/radio.c index 92fce770..95e523aa 100755 --- a/Source/shared/cstrike/radio.c +++ b/Source/shared/cstrike/radio.c @@ -197,7 +197,7 @@ void Radio_BroadcastMessage( float fMessage ) { WriteByte( MSG_MULTICAST, EV_RADIOMSG ); WriteByte( MSG_MULTICAST, fMessage ); msg_entity = self; - multicast( '0 0 0', MSG_BROADCAST ); + multicast( '0 0 0', MULTICAST_ALL ); } /*