2002-08-15 21:00:51 +00:00
|
|
|
#ifndef __ruamoko_message_h
|
|
|
|
#define __ruamoko_message_h
|
2002-08-14 15:40:30 +00:00
|
|
|
|
|
|
|
// protocol bytes
|
|
|
|
#define SVC_TEMPENTITY 23
|
|
|
|
#define SVC_KILLEDMONSTER 27
|
|
|
|
#define SVC_FOUNDSECRET 28
|
|
|
|
#define SVC_INTERMISSION 30
|
|
|
|
#define SVC_FINALE 31
|
|
|
|
#define SVC_CDTRACK 32
|
|
|
|
#define SVC_SELLSCREEN 33
|
|
|
|
#define SVC_SMALLKICK 34
|
|
|
|
#define SVC_BIGKICK 35
|
|
|
|
#define SVC_MUZZLEFLASH 39
|
|
|
|
|
|
|
|
// messages
|
|
|
|
#define MSG_BROADCAST 0
|
|
|
|
#define MSG_ONE 1
|
|
|
|
#define MSG_ALL 2
|
|
|
|
#define MSG_INIT 3
|
|
|
|
#define MSG_MULTICAST 4
|
|
|
|
|
|
|
|
// message levels
|
|
|
|
#define PRINT_LOW 0
|
|
|
|
#define PRINT_MEDIUM 1
|
|
|
|
#define PRINT_HIGH 2
|
|
|
|
#define PRINT_CHAT 3
|
|
|
|
|
|
|
|
// multicast sets
|
|
|
|
#define MULTICAST_ALL 0
|
|
|
|
#define MULTICAST_PHS 1
|
|
|
|
#define MULTICAST_PVS 2
|
|
|
|
#define MULTICAST_ALL_R 3
|
|
|
|
#define MULTICAST_PHS_R 4
|
|
|
|
#define MULTICAST_PVS_R 5
|
|
|
|
|
2002-08-15 07:24:56 +00:00
|
|
|
@extern void (...) bprint;
|
2004-01-05 09:06:06 +00:00
|
|
|
@extern void (entity client, string s) sprint;
|
2003-03-03 16:13:04 +00:00
|
|
|
@extern void (float to, ...) WriteBytes;
|
2002-08-15 06:56:37 +00:00
|
|
|
@extern void (float to, float f) WriteByte;
|
|
|
|
@extern void (float to, float f) WriteChar;
|
|
|
|
@extern void (float to, float f) WriteShort;
|
|
|
|
@extern void (float to, float f) WriteLong;
|
|
|
|
@extern void (float to, float f) WriteCoord;
|
|
|
|
@extern void (float to, float f) WriteAngle;
|
2003-03-03 16:13:04 +00:00
|
|
|
@extern void (float to, vector v) WriteCoordV;
|
|
|
|
@extern void (float to, vector v) WriteAngleV;
|
2002-08-15 06:56:37 +00:00
|
|
|
@extern void (float to, string s) WriteString;
|
|
|
|
@extern void (float to, entity s) WriteEntity;
|
|
|
|
@extern void (...) centerprint;
|
2002-08-14 15:40:30 +00:00
|
|
|
|
2002-08-15 21:00:51 +00:00
|
|
|
#endif//__ruamoko_message_h
|