Tweaked the ACS a bit to display combo numbers past 10.
Code: Select all
#library "SCORE"
#include "zcommon.acs"
int combokills; //Amount of kills
int combotimer; //Timer before combo ends
Script "ComboSystem" ENTER
{
str combomessage;
While(true)
{
If(combokills>0)
{
SetFont("BIGFONT");
HudMessage(s:"\cf",i:combokills,s:"x"; HUDMSG_PLAIN, 100, 0, 0.5, 0.2, 0);
int time = Ceil(FixedDiv(combotimer<<16,35.0));
SetFont("SMALLFONT");
HudMessage(f:time; HUDMSG_PLAIN, 101, 0, 0.5, 0.22, 0);
If(combotimer<=0){combokills=0;} //When timer runs out, combo ends
Else{combotimer--;}
}
Else
{
HudMessage(s:" "; HUDMSG_PLAIN, 100, 0, 0.5, 0.2, 0);
HudMessage(s:" "; HUDMSG_PLAIN, 101, 0, 0.5, 0.2, 0);
}
Delay(1);
}
}
Script "ComboGet" (void)
{
combokills++; //Add to the counter
combotimer=175; //5 seconds
}
You do not have the required permissions to view the files attached to this post.