Fixed wrong multicast message type being used.

This commit is contained in:
Marco Cawthorne 2019-08-23 01:16:34 -07:00
parent 7ac8765af6
commit 5af43d302b
2 changed files with 9 additions and 9 deletions

View file

@ -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);
}

View file

@ -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 );
}
/*