Plugin-VoxAnnouncer: Include events.h to properly choose the vox-say event id

This commit is contained in:
Marco Cawthorne 2021-01-24 02:42:37 +01:00
parent 70268440ee
commit 4e7829de53

View file

@ -14,11 +14,13 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "../shared/events.h"
void
VoxFunc(string strMessage)
{
WriteByte(MSG_MULTICAST, SVC_CGAMEPACKET);
WriteByte(MSG_MULTICAST, 27);
WriteByte(MSG_MULTICAST, EV_CHAT_VOX);
WriteString(MSG_MULTICAST, strMessage);
msg_entity = world;
multicast([0,0,0], MULTICAST_ALL);