2004-05-26 05:15:40 +00:00
|
|
|
#ifndef _MSGS_INCLUDE_H
|
|
|
|
#define _MSGS_INCLUDE_H
|
|
|
|
|
|
|
|
#include "engine.h"
|
|
|
|
|
|
|
|
#define MAX_MESSAGES 255
|
|
|
|
|
|
|
|
#define BLOCK_NOT 0
|
|
|
|
#define BLOCK_ONCE 1
|
|
|
|
#define BLOCK_SET 2
|
|
|
|
|
|
|
|
enum {
|
|
|
|
arg_byte = 1,
|
|
|
|
arg_char,
|
|
|
|
arg_short,
|
|
|
|
arg_long,
|
|
|
|
arg_angle,
|
|
|
|
arg_coord,
|
|
|
|
arg_string,
|
|
|
|
arg_entity,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
type_int = 1,
|
|
|
|
type_float,
|
|
|
|
type_string,
|
|
|
|
};
|
|
|
|
|
|
|
|
class argMsg
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
argMsg();
|
|
|
|
void Reset();
|
|
|
|
void Send();
|
|
|
|
int Type();
|
|
|
|
|
|
|
|
int type;
|
2005-07-19 16:14:52 +00:00
|
|
|
union
|
|
|
|
{
|
|
|
|
REAL fData;
|
|
|
|
int iData;
|
|
|
|
} v;
|
2004-09-08 21:13:04 +00:00
|
|
|
String cData;
|
2004-05-26 05:15:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern AMX_NATIVE_INFO msg_Natives[];
|
2005-07-14 04:50:46 +00:00
|
|
|
extern CVector<argMsg> Msg;
|
2004-08-30 22:24:43 +00:00
|
|
|
extern CVector<int> msgHooks[256];
|
2004-06-24 07:36:43 +00:00
|
|
|
extern int msgBlocks[256];
|
2004-05-26 05:15:40 +00:00
|
|
|
|
2004-08-24 05:44:31 +00:00
|
|
|
#endif //_MSGS_INCLUDE_H
|
|
|
|
|