2001-08-29 00:00:00 +00:00
|
|
|
// hltv.h
|
|
|
|
// all shared consts between server, clients and proxy
|
|
|
|
|
2002-12-23 00:00:00 +00:00
|
|
|
#ifndef HLTV_H
|
|
|
|
#define HLTV_H
|
|
|
|
|
2001-08-29 00:00:00 +00:00
|
|
|
#define TYPE_CLIENT 0 // client is a normal HL client (default)
|
|
|
|
#define TYPE_PROXY 1 // client is another proxy
|
|
|
|
#define TYPE_COMMENTATOR 3 // client is a commentator
|
2002-12-23 00:00:00 +00:00
|
|
|
#define TYPE_DEMO 4 // client is a demo file
|
2023-07-20 18:11:37 +00:00
|
|
|
|
2002-12-23 00:00:00 +00:00
|
|
|
// sub commands of svc_hltv:
|
|
|
|
#define HLTV_ACTIVE 0 // tells client that he's an spectator and will get director commands
|
2001-08-29 00:00:00 +00:00
|
|
|
#define HLTV_STATUS 1 // send status infos about proxy
|
2002-12-23 00:00:00 +00:00
|
|
|
#define HLTV_LISTEN 2 // tell client to listen to a multicast stream
|
|
|
|
|
2023-07-20 18:11:37 +00:00
|
|
|
// director command types:
|
2002-12-23 00:00:00 +00:00
|
|
|
#define DRC_CMD_NONE 0 // NULL director command
|
|
|
|
#define DRC_CMD_START 1 // start director mode
|
|
|
|
#define DRC_CMD_EVENT 2 // informs about director command
|
|
|
|
#define DRC_CMD_MODE 3 // switches camera modes
|
2023-07-20 18:11:37 +00:00
|
|
|
#define DRC_CMD_CAMERA 4 // set fixed camera
|
2002-12-23 00:00:00 +00:00
|
|
|
#define DRC_CMD_TIMESCALE 5 // sets time scale
|
|
|
|
#define DRC_CMD_MESSAGE 6 // send HUD centerprint
|
|
|
|
#define DRC_CMD_SOUND 7 // plays a particular sound
|
2023-07-20 18:11:37 +00:00
|
|
|
#define DRC_CMD_STATUS 8 // HLTV broadcast status
|
|
|
|
#define DRC_CMD_BANNER 9 // set GUI banner
|
|
|
|
#define DRC_CMD_STUFFTEXT 10 // like the normal svc_stufftext but as director command
|
|
|
|
#define DRC_CMD_CHASE 11 // chase a certain player
|
|
|
|
#define DRC_CMD_INEYE 12 // view player through own eyes
|
|
|
|
#define DRC_CMD_MAP 13 // show overview map
|
|
|
|
#define DRC_CMD_CAMPATH 14 // define camera waypoint
|
|
|
|
#define DRC_CMD_WAYPOINTS 15 // start moving camera, inetranl message
|
2001-08-29 00:00:00 +00:00
|
|
|
|
2023-07-20 18:11:37 +00:00
|
|
|
#define DRC_CMD_LAST 15
|
2001-08-29 00:00:00 +00:00
|
|
|
|
|
|
|
|
2023-07-20 18:11:37 +00:00
|
|
|
// DRC_CMD_EVENT event flags
|
2002-12-23 00:00:00 +00:00
|
|
|
#define DRC_FLAG_PRIO_MASK 0x0F // priorities between 0 and 15 (15 most important)
|
|
|
|
#define DRC_FLAG_SIDE (1<<4) //
|
|
|
|
#define DRC_FLAG_DRAMATIC (1<<5) // is a dramatic scene
|
|
|
|
#define DRC_FLAG_SLOWMOTION (1<<6) // would look good in SloMo
|
|
|
|
#define DRC_FLAG_FACEPLAYER (1<<7) // player is doning something (reload/defuse bomb etc)
|
|
|
|
#define DRC_FLAG_INTRO (1<<8) // is a introduction scene
|
|
|
|
#define DRC_FLAG_FINAL (1<<9) // is a final scene
|
|
|
|
#define DRC_FLAG_NO_RANDOM (1<<10) // don't randomize event data
|
2001-08-29 00:00:00 +00:00
|
|
|
|
|
|
|
|
2023-07-20 18:11:37 +00:00
|
|
|
// DRC_CMD_WAYPOINT flags
|
|
|
|
#define DRC_FLAG_STARTPATH 1 // end with speed 0.0
|
|
|
|
#define DRC_FLAG_SLOWSTART 2 // start with speed 0.0
|
|
|
|
#define DRC_FLAG_SLOWEND 4 // end with speed 0.0
|
2001-08-29 00:00:00 +00:00
|
|
|
|
2002-12-23 00:00:00 +00:00
|
|
|
#endif // HLTV_H
|