1 #ifndef __ruamoko_message_h
2 #define __ruamoko_message_h
3 
4 // protocol bytes
5 #define SVC_TEMPENTITY 23
6 #define SVC_KILLEDMONSTER 27
7 #define SVC_FOUNDSECRET 28
8 #define SVC_INTERMISSION 30
9 #define SVC_FINALE 31
10 #define SVC_CDTRACK 32
11 #define SVC_SELLSCREEN 33
12 #define SVC_SMALLKICK 34
13 #define SVC_BIGKICK 35
14 #define SVC_MUZZLEFLASH 39
15 
16 // messages
17 #define MSG_BROADCAST 0
18 #define MSG_ONE 1
19 #define MSG_ALL 2
20 #define MSG_INIT 3
21 #define MSG_MULTICAST 4
22 
23 // message levels
24 #define PRINT_LOW 0
25 #define PRINT_MEDIUM 1
26 #define PRINT_HIGH 2
27 #define PRINT_CHAT 3
28 
29 // multicast sets
30 #define MULTICAST_ALL 0
31 #define MULTICAST_PHS 1
32 #define MULTICAST_PVS 2
33 #define MULTICAST_ALL_R 3
34 #define MULTICAST_PHS_R 4
35 #define MULTICAST_PVS_R 5
36 
37 @extern void bprint (...);
38 @extern void sprint (entity client, string s);
39 @extern void WriteBytes (float to, ...);
40 @extern void WriteByte (float to, float f);
41 @extern void WriteChar (float to, float f);
42 @extern void WriteShort (float to, float f);
43 @extern void WriteLong (float to, float f);
44 @extern void WriteCoord (float to, float f);
45 @extern void WriteAngle (float to, float f);
46 @extern void WriteCoordV (float to, vector v);
47 @extern void WriteAngleV (float to, vector v);
48 @extern void WriteString (float to, string s);
49 @extern void WriteEntity (float to, entity s);
50 @extern void centerprint (...);
51 
52 #endif//__ruamoko_message_h
53