void MODELCMD_Origin (int modeltype) { if (g_forcemodel) modeltype = g_forcemodel; Cmd_Origin (); /* switch(modeltype) { case MODEL_MD2: Cmd_Origin (); break; case MODEL_FM: Cmd_FMOrigin (); break; } */ }
/* =============== ParseScript =============== */ void ParseScript (void) { while (1) { do { // look for a line starting with a $ command GetToken (qtrue); if (endofscript) return; if (token[0] == '$') break; while (TokenAvailable()) GetToken (qfalse); } while (1); // // model commands // if (!strcmp (token, "$modelname")) Cmd_Modelname (); else if (!strcmp (token, "$base")) Cmd_Base (); else if ( !strcmp( token, "$exit" ) ) break; else if ( !strcmp( token, "$3dsconvert" ) ) Cmd_3DSConvert(); else if (!strcmp (token, "$spritebase")) Cmd_SpriteBase (); else if (!strcmp (token, "$cd")) Cmd_Cd (); else if (!strcmp (token, "$origin")) Cmd_Origin (); else if (!strcmp (token, "$scale")) Cmd_ScaleUp (); else if (!strcmp (token, "$frame")) Cmd_Frame (); else if (!strcmp (token, "$skin" )) Cmd_Skin(); else if (!strcmp (token, "$spriteshader")) Cmd_SpriteShader(); else if (!strcmp( token, "$aseconvert" )) Cmd_ASEConvert( qfalse ); else if (!strcmp( token, "$aseanimconvert" ) ) Cmd_ASEConvert( qtrue ); // // image commands // else if (!strcmp (token, "$grab")) Cmd_Grab (); else if (!strcmp (token, "$raw")) Cmd_Raw (); else if (!strcmp (token, "$colormap")) Cmd_Colormap (); else if (!strcmp (token, "$environment")) Cmd_Environment (); // // video // else if (!strcmp (token, "$video")) Cmd_Video (); // // misc // else if (!strcmp (token, "$file")) Cmd_File (); else if (!strcmp (token, "$dir")) Cmd_Dir (); else if (!strcmp (token, "$maps")) Cmd_Maps (); else Error ("bad command %s\n", token); } }
/* =============== ParseScript =============== */ void ParseScript (void) { while (1) { do { // look for a line starting with a $ command GetToken (true); if (endofscript) return; if (token[0] == '$') break; while (TokenAvailable()) GetToken (false); } while (1); // // model commands // if (!strcmp (token, "$modelname")) Cmd_Modelname (); else if (!strcmp (token, "$base")) Cmd_Base (); else if (!strcmp (token, "$cd")) Cmd_Cd (); else if (!strcmp (token, "$origin")) Cmd_Origin (); else if (!strcmp (token, "$scale")) Cmd_ScaleUp (); else if (!strcmp (token, "$frame")) Cmd_Frame (); else if (!strcmp (token, "$skin")) Cmd_Skin (); else if (!strcmp (token, "$skinsize")) Cmd_Skinsize (); // // sprite commands // else if (!strcmp (token, "$spritename")) Cmd_SpriteName (); else if (!strcmp (token, "$load")) Cmd_Load (); else if (!strcmp (token, "$spriteframe")) Cmd_SpriteFrame (); // // image commands // else if (!strcmp (token, "$grab")) Cmd_Grab (); else if (!strcmp (token, "$raw")) Cmd_Raw (); else if (!strcmp (token, "$colormap")) Cmd_Colormap (); else if (!strcmp (token, "$mippal")) Cmd_Mippal (); else if (!strcmp (token, "$mipdir")) Cmd_Mipdir (); else if (!strcmp (token, "$mip")) Cmd_Mip (); else if (!strcmp (token, "$environment")) Cmd_Environment (); // // video // else if (!strcmp (token, "$video")) Cmd_Video (); // // misc // else if (!strcmp (token, "$file")) Cmd_File (); else if (!strcmp (token, "$dir")) Cmd_Dir (); else if (!strcmp (token, "$maps")) Cmd_Maps (); else if (!strcmp (token, "$alphalight")) Cmd_Alphalight (); else if (!strcmp (token, "$inverse16table" )) Cmd_Inverse16Table(); else Error ("bad command %s\n", token); } }