mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-08 07:53:20 +00:00
l4d2hud: Add IsHUDSetup and DeleteHUD
This commit is contained in:
parent
d05c8435f4
commit
fd5f1eee12
1 changed files with 6 additions and 1 deletions
|
@ -134,8 +134,13 @@ void SetHUDText(hudPosition position, const char[] format, any ...) {
|
||||||
L4D2_RunScript(huds[view_as<int>(position)], sBuffer);
|
L4D2_RunScript(huds[view_as<int>(position)], sBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClearHUD(hudPosition position) {
|
bool IsHUDSetup(hudPosition position) {
|
||||||
|
return huds[view_as<int>(position)][0] != '\0';
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteHUD(hudPosition position) {
|
||||||
L4D2_RunVScript("SMHud%d <- { Fields = { } }; HUDSetLayout(SMHud%d); HUDPlace( g_ModeScript.HUD_%s, 0.0, 0.0, 0.0, 0.0 ); g_ModeScript", view_as<int>(position), view_as<int>(position), hudPositions[positions]);
|
L4D2_RunVScript("SMHud%d <- { Fields = { } }; HUDSetLayout(SMHud%d); HUDPlace( g_ModeScript.HUD_%s, 0.0, 0.0, 0.0, 0.0 ); g_ModeScript", view_as<int>(position), view_as<int>(position), hudPositions[positions]);
|
||||||
|
huds[view_as<int>(position)][0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetHUDFormatString(hudPosition position, char[] buffer, int buffersize) {
|
void GetHUDFormatString(hudPosition position, char[] buffer, int buffersize) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue