20.05.2015, 21:29
I didn't know there was a plug and play method for that, that part of storing the data shouldn't be a difficult task, e.g:
Though I am still looking at how modelsizes stores the offsets.
pawn Код:
stock StoreAsArray(model1, model2) {
new Float: x, Float: y, Float: z, Float: radius, bufferstring[300], string[126];
for (new i = model1; i != model2; ++i)
{
CA_GetModelBoundingSphere(model1, x, y, z, radius);
format(string, sizeof string, ",%f, %f, %f", x, y, z);
strcat(bufferstring, string, sizeof(bufferstring));
}
printf(bufferstring);
new File: handle = fopen("offsets.txt");
if(handle) {
fwrite(handle, bufferstring);
fclose(handle);
}
return bufferstring;
}