From 6fc0319c33dd9ab9c370e35afc87217ccfc3b940 Mon Sep 17 00:00:00 2001 From: higps <59850204+higps@users.noreply.github.com> Date: Mon, 19 Feb 2024 02:03:16 +0100 Subject: [PATCH] Update ability_free_damage_melee_heavy_boxing_champ_ability.sp --- ability_free_damage_melee_heavy_boxing_champ_ability.sp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ability_free_damage_melee_heavy_boxing_champ_ability.sp b/ability_free_damage_melee_heavy_boxing_champ_ability.sp index 5a297298..322c29c5 100644 --- a/ability_free_damage_melee_heavy_boxing_champ_ability.sp +++ b/ability_free_damage_melee_heavy_boxing_champ_ability.sp @@ -30,6 +30,7 @@ float g_done_dash; bool isready; + public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3], float angles[3], int& weapon, int& subtype, int& cmdnum, int& tickcount, int& seed, int mouse[2]) { if (IsRobot(client, "Boxing Champ")) @@ -109,10 +110,16 @@ void DrawHUD(int client) if(iCountDown <= 0) { + if(!TF2Spawn_IsClientInSpawn(client)) + { Format(sHUDText, sizeof(sHUDText), "Crouch Dash Ready!"); SetHudTextParams(1.0, 0.8, 0.5, 0, 255, 0, 255); - + }else + { + Format(sHUDText, sizeof(sHUDText), "Crouch Dash Ready!\nUnavailable in spawn"); + SetHudTextParams(1.0, 0.8, 0.5, 255, 0, 0, 255); + } } else { SetHudTextParams(1.0, 0.8, 0.5, 255, 255, 255, 255);