//returns name of model to use for MR
string FindMRModel(int rank)
{
//rank = 10; //testing
string modelch[2];
int i;
int size = 2;
if(rank<3) return "towngirl2";
modelch[0] = "towngirl2";
modelch[1] = "towngirl2_1"; // LDH fix name = 05Jan09
if(rank>=3)
{
for(i = 0; i < 5; i++) //actually +1 because above
{
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "towngirl2";
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "towngirl2_1"; // LDH fix name = 05Jan09
}
}
if(rank>=4)
{
for(i = 0; i < 9; i++)
{
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "towngirl5";
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "towngirl6";
}
}
if(rank>=5)
{
for(i = 0; i < 11; i++)
{
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "towngirl3";
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "towngirl3_1"; // LDH fix name = 05Jan09
}
}
if(rank>=6)
{
for(i = 0; i < 15; i++)
{
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "towngirl1";
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "towngirl1_1"; // LDH fix name = 05Jan09
}
}
if(rank>=7)
{
for(i = 0; i < 35; i++)
{
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "towngirl7";
}
}
if(rank>=7)
{
for(i = 0; i < 39; i++)
{
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "towngirl4";
}
}
if(rank>=8)
{
for(i = 0; i < 44; i++)
{
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "liz1"; // KK
}
}
if(rank>=9)
{
for(i = 0; i < 49; i++)
{
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "lady04_ab";
}
}
if(rank>=10)
{
for(i = 0; i < 54; i++)
{
size++;
SetArraySize(&modelch,size);
modelch[size-1] = "lady6"; // KK
}
}
return modelch[rand(size-1)];
}