Skip to content

Commit

Permalink
Update ability_free_damage_melee_heavy_boxing_champ_ability.sp
Browse files Browse the repository at this point in the history
  • Loading branch information
higps committed Feb 19, 2024
1 parent 15691b0 commit 6fc0319
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ability_free_damage_melee_heavy_boxing_champ_ability.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6fc0319

Please sign in to comment.