If i knew tho format of mdl7 i can do something like this
Code:
#include <acknex.h>
#include <default.c>
typedef struct {
  char v[4]; // "MDL3", "MDL4", or "MDL5"
  long unused1;    // not used
  float scale[3];  // 3D position scale factors.
  float offset[3]; // 3D position offset.
  long unused2;    // not used
  float unused3[3];// not used
  long numskins;   // number of skin textures
  long skinwidth;  // width of skin texture, for MDL3 and MDL4;
  long skinheight; // height of skin texture, for MDL3 and MDL4;
  long numverts;   // number of 3d wireframe vertices
  long numtris;    // number of triangles surfaces
  long numframes;  // number of frames
  long numskinverts; // number of 2D skin vertices
  long f;     // always 0
  long unused4;   // not used
} mdl_header;
mdl_header* qaz;
var h;
char b[84];
void main()
{

  	video_screen = 0;
	wait(1);
	h=file_open_read("A.mdl");/*name of mdl5 file change it if you want to use another file*/
	qaz=&b[0];
	int i;
	for( i=0;i<84;i++)
		b[i]=file_asc_read(h);
	printf("\nscale-x : %6.4f ; scale-y : %6.4f ; scale-z : %6.4f",(double)(*qaz).scale[0],(double)(*qaz).scale[1],(double)(*qaz).scale[2]);
	printf("\noffset-x : %6.4f ; offset-y : %6.4f ; offset-z : %6.4f",(double)(*qaz).offset[0],(double)(*qaz).offset[1],(double)(*qaz).offset[2]);
	printf("\nversion : %s",(*qaz).v);
	printf("\nskinwidth: %i",(*qaz).skinwidth);
	printf("\nskinheight: %i",(*qaz).skinheight);
	printf("\nnumskins: %i",(*qaz).numskins);
	printf("\nnumskinverts: %i",(*qaz).numskinverts);
	printf("\nnumverts: %i",(*qaz).numverts);
	printf("\nnumtris: %i",(*qaz).numtris);
	printf("\nnumframes: %i",(*qaz).numframes);
	printf("\nunused1 : %i",(*qaz).unused1);
	printf("\nunused2 : %i",(*qaz).unused2);
	printf("\nunused3[0] : %6.4f ; unused3[1] : %6.4f ; unused3[2] : %6.4f",(double)(*qaz).unused3[0],(double)(*qaz).unused3[1],(double)(*qaz).unused3[2]);
	printf("\nunused4 : %i",(*qaz).unused4);
	printf("\nflags : %i",(*qaz).f);
	
	file_close(h);	
}



Last edited by qwe; 04/26/13 11:47.