mirror of
https://github.com/rehlds/hitboxtracker.git
synced 2025-01-15 16:17:55 +03:00
196 lines
4.9 KiB
C
196 lines
4.9 KiB
C
|
/*
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify it
|
||
|
* under the terms of the GNU General Public License as published by the
|
||
|
* Free Software Foundation; either version 2 of the License, or (at
|
||
|
* your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful, but
|
||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program; if not, write to the Free Software Foundation,
|
||
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||
|
*
|
||
|
* In addition, as a special exception, the author gives permission to
|
||
|
* link the code of this program with the Half-Life Game Engine ("HL
|
||
|
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
|
||
|
* L.L.C ("Valve"). You must obey the GNU General Public License in all
|
||
|
* respects for all of the code used other than the HL Engine and MODs
|
||
|
* from Valve. If you modify this file, you may extend this exception
|
||
|
* to your version of the file, but you are not obligated to do so. If
|
||
|
* you do not wish to do so, delete this exception statement from your
|
||
|
* version.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
const int MAX_WEAPON_SLOTS = 5; // hud item selection slots
|
||
|
const int MAX_ITEM_TYPES = 6; // hud item selection slots
|
||
|
const int MAX_AMMO_SLOTS = 32; // not really slots
|
||
|
const int MAX_ITEMS = 4; // hard coded item types
|
||
|
|
||
|
const int DEFAULT_FOV = 90; // the default field of view
|
||
|
|
||
|
#define HIDEHUD_WEAPONS BIT(0)
|
||
|
#define HIDEHUD_FLASHLIGHT BIT(1)
|
||
|
#define HIDEHUD_ALL BIT(2)
|
||
|
#define HIDEHUD_HEALTH BIT(3)
|
||
|
#define HIDEHUD_TIMER BIT(4)
|
||
|
#define HIDEHUD_MONEY BIT(5)
|
||
|
#define HIDEHUD_CROSSHAIR BIT(6)
|
||
|
#define HIDEHUD_OBSERVER_CROSSHAIR BIT(7)
|
||
|
|
||
|
#define STATUSICON_HIDE 0
|
||
|
#define STATUSICON_SHOW 1
|
||
|
#define STATUSICON_FLASH 2
|
||
|
|
||
|
#define HUD_PRINTNOTIFY 1
|
||
|
#define HUD_PRINTCONSOLE 2
|
||
|
#define HUD_PRINTTALK 3
|
||
|
#define HUD_PRINTCENTER 4
|
||
|
#define HUD_PRINTRADIO 5
|
||
|
|
||
|
#define TEAM_UNASSIGNED 0
|
||
|
#define TEAM_TERRORIST 1
|
||
|
#define TEAM_CT 2
|
||
|
#define TEAM_SPECTATOR 3
|
||
|
|
||
|
#define STATUS_NIGHTVISION_ON 1
|
||
|
#define STATUS_NIGHTVISION_OFF 0
|
||
|
|
||
|
#define ITEM_STATUS_NIGHTVISION BIT(0)
|
||
|
#define ITEM_STATUS_DEFUSER BIT(1)
|
||
|
|
||
|
#define SCORE_STATUS_DEAD BIT(0)
|
||
|
#define SCORE_STATUS_BOMB BIT(1)
|
||
|
#define SCORE_STATUS_VIP BIT(2)
|
||
|
|
||
|
// player data iuser3
|
||
|
#define PLAYER_CAN_SHOOT BIT(0)
|
||
|
#define PLAYER_FREEZE_TIME_OVER BIT(1)
|
||
|
#define PLAYER_IN_BOMB_ZONE BIT(2)
|
||
|
#define PLAYER_HOLDING_SHIELD BIT(3)
|
||
|
|
||
|
#define MENU_KEY_1 BIT(0)
|
||
|
#define MENU_KEY_2 BIT(1)
|
||
|
#define MENU_KEY_3 BIT(2)
|
||
|
#define MENU_KEY_4 BIT(3)
|
||
|
#define MENU_KEY_5 BIT(4)
|
||
|
#define MENU_KEY_6 BIT(5)
|
||
|
#define MENU_KEY_7 BIT(6)
|
||
|
#define MENU_KEY_8 BIT(7)
|
||
|
#define MENU_KEY_9 BIT(8)
|
||
|
#define MENU_KEY_0 BIT(9)
|
||
|
|
||
|
#define CS_NUM_SKIN 4
|
||
|
#define CZ_NUM_SKIN 5
|
||
|
|
||
|
#define FIELD_ORIGIN0 0
|
||
|
#define FIELD_ORIGIN1 1
|
||
|
#define FIELD_ORIGIN2 2
|
||
|
|
||
|
#define FIELD_ANGLES0 3
|
||
|
#define FIELD_ANGLES1 4
|
||
|
#define FIELD_ANGLES2 5
|
||
|
|
||
|
#define CUSTOMFIELD_ORIGIN0 0
|
||
|
#define CUSTOMFIELD_ORIGIN1 1
|
||
|
#define CUSTOMFIELD_ORIGIN2 2
|
||
|
|
||
|
#define CUSTOMFIELD_ANGLES0 3
|
||
|
#define CUSTOMFIELD_ANGLES1 4
|
||
|
#define CUSTOMFIELD_ANGLES2 5
|
||
|
|
||
|
#define CUSTOMFIELD_SKIN 6
|
||
|
#define CUSTOMFIELD_SEQUENCE 7
|
||
|
#define CUSTOMFIELD_ANIMTIME 8
|
||
|
|
||
|
#define HUD_PRINTNOTIFY 1
|
||
|
#define HUD_PRINTCONSOLE 2
|
||
|
#define HUD_PRINTTALK 3
|
||
|
#define HUD_PRINTCENTER 4
|
||
|
|
||
|
#define WEAPON_SUIT 31
|
||
|
#define WEAPON_ALLWEAPONS (~(1<<WEAPON_SUIT))
|
||
|
|
||
|
// custom enum
|
||
|
enum ChooseTeamMenuSlot
|
||
|
{
|
||
|
MENU_SLOT_TEAM_UNDEFINED = -1,
|
||
|
|
||
|
MENU_SLOT_TEAM_TERRORIST = 1,
|
||
|
MENU_SLOT_TEAM_CT,
|
||
|
MENU_SLOT_TEAM_VIP,
|
||
|
|
||
|
MENU_SLOT_TEAM_RANDOM = 5,
|
||
|
MENU_SLOT_TEAM_SPECT
|
||
|
};
|
||
|
|
||
|
// custom enum
|
||
|
enum BuyItemMenuSlot
|
||
|
{
|
||
|
MENU_SLOT_ITEM_VEST = 1,
|
||
|
MENU_SLOT_ITEM_VESTHELM,
|
||
|
MENU_SLOT_ITEM_FLASHGREN,
|
||
|
MENU_SLOT_ITEM_HEGREN,
|
||
|
MENU_SLOT_ITEM_SMOKEGREN,
|
||
|
MENU_SLOT_ITEM_NVG,
|
||
|
MENU_SLOT_ITEM_DEFUSEKIT,
|
||
|
MENU_SLOT_ITEM_SHIELD,
|
||
|
};
|
||
|
|
||
|
// custom enum
|
||
|
enum VGUIMenu
|
||
|
{
|
||
|
VGUI_Menu_Team = 2,
|
||
|
VGUI_Menu_MapBriefing = 4,
|
||
|
|
||
|
VGUI_Menu_Class_T = 26,
|
||
|
VGUI_Menu_Class_CT,
|
||
|
VGUI_Menu_Buy,
|
||
|
VGUI_Menu_Buy_Pistol,
|
||
|
VGUI_Menu_Buy_ShotGun,
|
||
|
VGUI_Menu_Buy_Rifle,
|
||
|
VGUI_Menu_Buy_SubMachineGun,
|
||
|
VGUI_Menu_Buy_MachineGun,
|
||
|
VGUI_Menu_Buy_Item,
|
||
|
};
|
||
|
|
||
|
// custom enum
|
||
|
enum VGUIMenuSlot
|
||
|
{
|
||
|
VGUI_MenuSlot_Buy_Pistol = 1,
|
||
|
VGUI_MenuSlot_Buy_ShotGun,
|
||
|
VGUI_MenuSlot_Buy_SubMachineGun,
|
||
|
VGUI_MenuSlot_Buy_Rifle,
|
||
|
VGUI_MenuSlot_Buy_MachineGun,
|
||
|
VGUI_MenuSlot_Buy_PrimAmmo,
|
||
|
VGUI_MenuSlot_Buy_SecAmmo,
|
||
|
VGUI_MenuSlot_Buy_Item,
|
||
|
};
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
float m_fTimeEnteredPVS;
|
||
|
|
||
|
} ENTITYPVSSTATUS;
|
||
|
|
||
|
const int MAX_ENTITIES = 1380;
|
||
|
struct PLAYERPVSSTATUS
|
||
|
{
|
||
|
ENTITYPVSSTATUS m_Status[MAX_ENTITIES];
|
||
|
int headnode;
|
||
|
int num_leafs;
|
||
|
short int leafnums[MAX_ENT_LEAFS];
|
||
|
};
|
||
|
|
||
|
struct entity_field_alias_t
|
||
|
{
|
||
|
char name[32];
|
||
|
int field;
|
||
|
};
|