Is there a way to check if the result of division is a whole number?
Making a freezetag mod so every x melts, the whole team gets melted. If the cvar is set to 15, then when Allies melt 15 people in one round, all allies will be thawed, when they melt 30 it will happen again, and again when they melt 45 people. My idea was something like this:
if ((alliesmelt / local.MeltTheTeam) = whole number)
{
stuffsrv "!allies ftmelt"
}
Any ideas?
I could always hard code a few options like
if (alliesmelt = 15)
do stuff
...
But that's not as cool.