This may fix it.....
change the zero to a one in each of these:
int rnd = GetRandomInt(0,46);
Do this for each of your classes since you don't have a Case 0 for any of them.
for example, change:
Code:
case TFClass_Soldier:
{
int rnd = GetRandomInt(0,46);
switch (rnd)
{
To read:
case TFClass_Soldier:
{
int rnd = GetRandomInt(1,46);
switch (rnd)
{