God damn it why it won't precache the last( "fleshpound" ) model in ZOMBIE_CLASSES
PHP Code:
new const ZOMBIE_CLASSES[][]= {
"patriv",
"classic",
"scrake",
"siren",
"fleshpound"
}
PHP Code:
// Precache
new modelpath_human[100];
for(new i = 0; i < sizeof ZOMBIE_CLASSES; i++)
{
formatex(modelpath_human, sizeof modelpath_human - 1, "models/player/%s/%s.mdl", ZOMBIE_CLASSES[i], ZOMBIE_CLASSES[i])
if( !file_exists( modelpath_human ) )
{
return 0;
}
engfunc(EngFunc_PrecacheModel, modelpath_human)
formatex(modelpath_human, sizeof modelpath_human - 1, "models/player/%s/%sT.mdl", ZOMBIE_CLASSES[i], ZOMBIE_CLASSES[i])
if ( file_exists( modelpath_human ) )
{
engfunc(EngFunc_PrecacheModel, modelpath_human);
return 1;
}
}
FUCK what the hell, no really? Stupid bugs
I will suicide
__________________