From e53c30bacfd00324389b19c5f82f1d0f4351d909 Mon Sep 17 00:00:00 2001 From: Freeman-AM Date: Tue, 8 Jul 2014 12:58:12 +0200 Subject: [PATCH 1/4] hlsdk_const.inc : Add iuser1 constants --- plugins/include/hlsdk_const.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/include/hlsdk_const.inc b/plugins/include/hlsdk_const.inc index 31f05473..4502363f 100644 --- a/plugins/include/hlsdk_const.inc +++ b/plugins/include/hlsdk_const.inc @@ -111,6 +111,15 @@ #define EF_LIGHT 64 // Rocket flare glow sprite #define EF_NODRAW 128 // Don't draw entity +// pev(entity, pev_iuser1) values +#define OBS_NONE 0 +#define OBS_CHASE_LOCKED 1 // Locked Chase Cam +#define OBS_CHASE_FREE 2 // Free Chase Cam +#define OBS_ROAMING 3 // Free Look +#define OBS_IN_EYE 4 // First Person +#define OBS_MAP_FREE 5 // Free Overview +#define OBS_MAP_CHASE 6 // Chase Overview + // engfunc(EngFunc_PointContents, Float:origin) return values #define CONTENTS_EMPTY -1 #define CONTENTS_SOLID -2 From 600e5dce97674345e86d16e025f07ed2fb38ea0e Mon Sep 17 00:00:00 2001 From: Freeman-AM Date: Fri, 1 Aug 2014 18:18:56 +0200 Subject: [PATCH 2/4] hlsdk_const.inc : modification of constants description. --- plugins/include/hlsdk_const.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/include/hlsdk_const.inc b/plugins/include/hlsdk_const.inc index 4502363f..bb97a863 100644 --- a/plugins/include/hlsdk_const.inc +++ b/plugins/include/hlsdk_const.inc @@ -111,7 +111,8 @@ #define EF_LIGHT 64 // Rocket flare glow sprite #define EF_NODRAW 128 // Don't draw entity -// pev(entity, pev_iuser1) values +// Camera mode constants +// Usually stored in pev_iuser1 field in Counter-Strike and Half-Life #define OBS_NONE 0 #define OBS_CHASE_LOCKED 1 // Locked Chase Cam #define OBS_CHASE_FREE 2 // Free Chase Cam From 5ef5f4b41fa81da0f1abc188a94b81041347ef01 Mon Sep 17 00:00:00 2001 From: Freeman-AM Date: Fri, 1 Aug 2014 18:53:19 +0200 Subject: [PATCH 3/4] hlsdk_const.inc : modification of constants description. --- plugins/include/hlsdk_const.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/include/hlsdk_const.inc b/plugins/include/hlsdk_const.inc index bb97a863..f88f756d 100644 --- a/plugins/include/hlsdk_const.inc +++ b/plugins/include/hlsdk_const.inc @@ -111,8 +111,13 @@ #define EF_LIGHT 64 // Rocket flare glow sprite #define EF_NODRAW 128 // Don't draw entity -// Camera mode constants -// Usually stored in pev_iuser1 field in Counter-Strike and Half-Life +/* +* Spectating camera mode constants +* +* those constants are linked to differents camera mode available when you are spectating. +* (death or spectator team) +* they are usually stored in pev_iuser1 field in Counter-Strike and Half-Life games +*/ #define OBS_NONE 0 #define OBS_CHASE_LOCKED 1 // Locked Chase Cam #define OBS_CHASE_FREE 2 // Free Chase Cam From 7aa895089ac851221b60de771cc249280848958d Mon Sep 17 00:00:00 2001 From: Freeman-AM Date: Fri, 1 Aug 2014 19:09:47 +0200 Subject: [PATCH 4/4] hlsdk_const.inc : modification of constants description. --- plugins/include/hlsdk_const.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/include/hlsdk_const.inc b/plugins/include/hlsdk_const.inc index f88f756d..0d96958f 100644 --- a/plugins/include/hlsdk_const.inc +++ b/plugins/include/hlsdk_const.inc @@ -111,12 +111,12 @@ #define EF_LIGHT 64 // Rocket flare glow sprite #define EF_NODRAW 128 // Don't draw entity -/* +/** * Spectating camera mode constants * -* those constants are linked to differents camera mode available when you are spectating. +* Those constants are linked to differents camera mode available when you are spectating. * (death or spectator team) -* they are usually stored in pev_iuser1 field in Counter-Strike and Half-Life games +* They are usually stored in pev_iuser1 field in Counter-Strike and Half-Life games. */ #define OBS_NONE 0 #define OBS_CHASE_LOCKED 1 // Locked Chase Cam