2019-01-21 02:00:14 +00:00
|
|
|
/***
|
|
|
|
*
|
|
|
|
* Copyright (c) 2016-2019 Marco 'eukara' Hladik. All rights reserved.
|
|
|
|
*
|
|
|
|
* See the file LICENSE attached with the sources for usage details.
|
|
|
|
*
|
|
|
|
****/
|
|
|
|
|
2019-01-29 02:40:14 +00:00
|
|
|
vector g_hud_color;
|
|
|
|
|
2019-01-21 02:00:14 +00:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
//Viewmodel stuff
|
|
|
|
entity eViewModel;
|
|
|
|
entity eMuzzleflash;
|
|
|
|
float fNumBones;
|
|
|
|
float fEjectBone;
|
|
|
|
vector vPunchAngle;
|
|
|
|
float fLastWeapon;
|
|
|
|
float fBobTime;
|
|
|
|
float fBob;
|
2019-03-12 00:22:50 +00:00
|
|
|
float damage_alpha;
|
|
|
|
vector damage_pos;
|
2019-03-19 19:01:24 +00:00
|
|
|
|
|
|
|
/* Camera Bob */
|
|
|
|
float flCamMove;
|
|
|
|
float flCamTime;
|
|
|
|
int iCamCycle;
|
|
|
|
float flCamFracSin;
|
|
|
|
float flCamDelta;
|
2019-01-21 02:00:14 +00:00
|
|
|
|
|
|
|
//Player fields
|
|
|
|
entity ePlayer;
|
|
|
|
vector vPlayerOrigin;
|
|
|
|
vector vPlayerOriginOld;
|
|
|
|
vector vPlayerVelocity;
|
|
|
|
float fPlayerFlags;
|
|
|
|
|
|
|
|
// Camera Fields
|
|
|
|
//entity ePlayerEnt;
|
|
|
|
vector vCameraPos;
|
|
|
|
vector vCameraAngle;
|
|
|
|
float fCameraTime;
|
|
|
|
|
|
|
|
//UI fields
|
|
|
|
float fVGUI_Display; // The VGUI menu currently being drawn
|
|
|
|
int iShowScores; // This is seperated from the other VGUI stuff so we can check scores while buying and whatnot
|
|
|
|
|
|
|
|
//buy menu
|
|
|
|
// We can only carry one item per slot, so this is hacking around the last one
|
|
|
|
float fHUDWeaponSelected;
|
2019-01-29 02:40:14 +00:00
|
|
|
float fHUDWeaponSelectTime;
|
2019-01-29 07:51:32 +00:00
|
|
|
|
|
|
|
// Input
|
|
|
|
float fInputKeyCode;
|
|
|
|
float fInputKeyASCII;
|
|
|
|
float fInputKeyDown;
|
|
|
|
|
|
|
|
int iInputAttack2;
|
|
|
|
int iInputReload;
|
|
|
|
int iInputUse;
|
|
|
|
int iInputDuck;
|
|
|
|
|
|
|
|
float fInputSendNext;
|
2019-01-21 02:00:14 +00:00
|
|
|
} seats[4], *pSeat;
|
2019-01-29 02:40:14 +00:00
|
|
|
|
|
|
|
void HUD_DrawAmmo1(void);
|
|
|
|
void HUD_DrawAmmo2(void);
|
|
|
|
void HUD_DrawAmmo3(void);
|