mirror of
https://github.com/shawns-valve/halflife.git
synced 2024-11-23 12:42:41 +00:00
54 lines
2.2 KiB
C
54 lines
2.2 KiB
C
// hltv.h
|
|
// all shared consts between server, clients and proxy
|
|
|
|
#ifndef HLTV_H
|
|
#define HLTV_H
|
|
|
|
#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
|
|
#define TYPE_DEMO 4 // client is a demo file
|
|
|
|
// sub commands of svc_hltv:
|
|
#define HLTV_ACTIVE 0 // tells client that he's an spectator and will get director commands
|
|
#define HLTV_STATUS 1 // send status infos about proxy
|
|
#define HLTV_LISTEN 2 // tell client to listen to a multicast stream
|
|
|
|
// director command types:
|
|
#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
|
|
#define DRC_CMD_CAMERA 4 // set fixed camera
|
|
#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
|
|
#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
|
|
|
|
#define DRC_CMD_LAST 15
|
|
|
|
|
|
// DRC_CMD_EVENT event flags
|
|
#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
|
|
|
|
|
|
// 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
|
|
|
|
#endif // HLTV_H
|