B3none / csgo-retakes-hud

Displays the current bombsite in a HUD message. This will work with all versions of the Retakes plugin.
45 stars 9 forks source link

Bombsite Message PrintHintText #7

Closed lazhoroni closed 5 years ago

lazhoroni commented 5 years ago

Can you show the bombsite as a message for 6 seconds? You can repeat every second. When you have finished for 6 seconds, you end the message.

public void OnPluginStart() { HookEvent("round_start", event_start); } public Action event_start(Event event, char[] name, bool dontBroadcast) { gH_Timer = CreateTimer(1.0, TimerSecond, , TIMER_REPEAT); } if (gI_Time < 6) { PrintHintTextToAll("DEFEND: %s", bombsite); } else { TryClearData(); }

B3none commented 5 years ago

Hey, I’m happy to accept a PR with the changes. You’ll need to put this behind a cvar

lazhoroni commented 5 years ago

I can't see the hud message when the round starts. If the hinttext message goes away, everyone will see more comfortably in the middle of the screen. it might be right to change the message when the bomb was set. PrintHintText(i, "%T"...

lazhoroni commented 5 years ago

Can you show the retakeside message in the hinttext message for 6 seconds without the bomb message being displayed?