Alright, how about add the vertex no. to your entity's name
f.e. :

string model1 = <monster28.mdl>;

then str_trunc "28" from model1 and store it to a variable?

just a thought, haven't try it.