You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This program is free software; you can redistribute it and/or modify it under
8
+
* the terms of the GNU General Public License, version 3.0, as published by the
9
+
* Free Software Foundation.
10
+
*
11
+
* This program is distributed in the hope that it will be useful, but WITHOUT
12
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
+
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14
+
* details.
15
+
*
16
+
* You should have received a copy of the GNU General Public License along with
17
+
* this program. If not, see <http://www.gnu.org/licenses/>.
18
+
*/
19
+
20
+
#include"hud_manager.h"
21
+
#include"../cs2fixes.h"
22
+
#include"../ctimer.h"
23
+
#include"../recipientfilters.h"
24
+
#include"engine/igameeventsystem.h"
25
+
#include"entity/cgamerules.h"
26
+
#include"gameevents.pb.h"
27
+
#include"networksystem/inetworkmessages.h"
28
+
29
+
extern CCSGameRules* g_pGameRules;
30
+
extern IGameEventManager2* g_gameEventManager;
31
+
extern IGameEventSystem* g_gameEventSystem;
32
+
extern CGlobalVars* GetGlobals();
33
+
34
+
CConVar<bool> g_cvarFixHudFlashing("cs2f_fix_hud_flashing", FCVAR_NONE, "Whether to fix hud flashing using a workaround, this BREAKS warmup so pick one or the other", false);
// When multiple hud messages are active, whichever one has highest priority one will display
51
+
// Note this is a basic implementation (TODO: is this worth expanding?), so e.g. a previously sent lower priority message will not display once a higher priority one expires
52
+
voidSendHudMessage(ZEPlayer* pPlayer, int iDuration, int iPriority, constchar* pszMessage, ...);
53
+
voidSendHudMessageAll(int iDuration, int iPriority, constchar* pszMessage, ...);
0 commit comments