code
proc parser_clear_string 4 0
file "../cg_vehicles_parser.c"
line 4
;1:#include "cg_local.h"
;2:#include "cg_vehicles_parser.h"
;3:
;4:static void parser_clear_string(char *string, int length) {
line 5
;5:   int i = 0;
ADDRLP4 0
CNSTI4 0
ASGNI4
line 6
;6:   for(i; i < length; i++) {
ADDRGP4 $135
JUMPV
LABELV $132
line 7
;7:      string[i] = '\0';
ADDRLP4 0
INDIRI4
ADDRFP4 0
INDIRP4
ADDP4
CNSTI1 0
ASGNI1
line 8
;8:   }
LABELV $133
line 6
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $135
ADDRLP4 0
INDIRI4
ADDRFP4 4
INDIRI4
LTI4 $132
line 9
;9:}
LABELV $131
endproc parser_clear_string 4 0
proc combat_strstr 152 8
line 13
;10:
;11:// adnan
;12:// replaced with my own
;13:static char *combat_strstr( const char *string, const char *substring ) {
line 17
;14:   int i, len;
;15:   char source[MAX_QPATH], target[MAX_QPATH];
;16:
;17:   parser_clear_string(target, MAX_QPATH);
ADDRLP4 72
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 18
;18:   len = strlen(substring);
ADDRFP4 4
INDIRP4
ARGP4
ADDRLP4 136
ADDRGP4 strlen
CALLI4
ASGNI4
ADDRLP4 68
ADDRLP4 136
INDIRI4
ASGNI4
line 19
;19:   for(i = 0; i < len-1; i++)
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $140
JUMPV
LABELV $137
line 20
;20:      target[i] = substring[i];
ADDRLP4 0
INDIRI4
ADDRLP4 72
ADDP4
ADDRLP4 0
INDIRI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI1
ASGNI1
LABELV $138
line 19
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $140
ADDRLP4 0
INDIRI4
ADDRLP4 68
INDIRI4
CNSTI4 1
SUBI4
LTI4 $137
line 21
;21:   target[i] = '\0';
ADDRLP4 0
INDIRI4
ADDRLP4 72
ADDP4
CNSTI1 0
ASGNI1
ADDRGP4 $142
JUMPV
LABELV $141
line 24
;22: 
;23:   //if(string && substring) {
;24:      while ( *string ) {
line 27
;25:      //while ( string ) {
;26:   
;27:         parser_clear_string(source, MAX_QPATH);
ADDRLP4 4
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 31
;28:
;29:         //printf("strstr: %s\n", string);
;30:
;31:         for( i = 0; i < len-1; i++)
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $147
JUMPV
LABELV $144
line 32
;32:            source[i] = string[i];
ADDRLP4 0
INDIRI4
ADDRLP4 4
ADDP4
ADDRLP4 0
INDIRI4
ADDRFP4 0
INDIRP4
ADDP4
INDIRI1
ASGNI1
LABELV $145
line 31
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $147
ADDRLP4 0
INDIRI4
ADDRLP4 68
INDIRI4
CNSTI4 1
SUBI4
LTI4 $144
line 33
;33:         source[i] = '\0';
ADDRLP4 0
INDIRI4
ADDRLP4 4
ADDP4
CNSTI1 0
ASGNI1
line 35
;34:
;35:         if(strcmp(source, target) == 0)
ADDRLP4 4
ARGP4
ADDRLP4 72
ARGP4
ADDRLP4 148
ADDRGP4 strcmp
CALLI4
ASGNI4
ADDRLP4 148
INDIRI4
CNSTI4 0
NEI4 $148
line 36
;36:            return (char*)string;
ADDRFP4 0
INDIRP4
RETP4
ADDRGP4 $136
JUMPV
LABELV $148
line 53
;37:
;38:         /*
;39:		   for ( i = 0 ; substring[i] ; i++ ) {
;40:			   if ( string[i] != substring[i] ) {
;41:				   break;
;42:			   }
;43:            if(i == len-1)
;44:               return string;
;45:		   }
;46:         
;47:   		
;48:         //if ( !substring[i] ) {
;49:         if ( substring[i] == '\0' ) {
;50:			   return (char *)string;
;51:		   }
;52:         */
;53:		   string++;
ADDRFP4 0
ADDRFP4 0
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
line 54
;54:	   }
LABELV $142
line 24
ADDRFP4 0
INDIRP4
INDIRI1
CVII4 1
CNSTI4 0
NEI4 $141
line 56
;55:   //}
;56:	return (char *)0;
CNSTP4 0
RETP4
LABELV $136
endproc combat_strstr 152 8
export Parser_ParseDisplay
proc Parser_ParseDisplay 312 12
line 59
;57:}
;58:
;59:char *Parser_ParseDisplay(char *ptr, int *vehiclenum) {
line 60
;60:   int success = -1, i;
ADDRLP4 4
CNSTI4 -1
ASGNI4
line 64
;61:   
;62:   char *new_ptr;
;63:
;64:   new_ptr = ptr;
ADDRLP4 0
ADDRFP4 0
INDIRP4
ASGNP4
line 67
;65:
;66:   //new_ptr = combat_strstr(new_ptr, "display {\n");
;67:   new_ptr = combat_strstr(new_ptr, "display {\n");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $151
ARGP4
ADDRLP4 12
ADDRGP4 combat_strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 12
INDIRP4
ASGNP4
line 69
;68:
;69:   if(new_ptr) {
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $152
line 72
;70:      char turretmodel[MAX_QPATH], basemodel[MAX_QPATH], turretshader[MAX_QPATH], baseshader[MAX_QPATH];
;71:
;72:      parser_clear_string(turretmodel, MAX_QPATH);
ADDRLP4 144
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 73
;73:      parser_clear_string(basemodel, MAX_QPATH);
ADDRLP4 208
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 74
;74:      parser_clear_string(turretshader, MAX_QPATH);
ADDRLP4 16
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 75
;75:      parser_clear_string(baseshader, MAX_QPATH);
ADDRLP4 80
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 77
;76:      
;77:      new_ptr = combat_strstr(new_ptr, "turretmodel");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $154
ARGP4
ADDRLP4 272
ADDRGP4 combat_strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 272
INDIRP4
ASGNP4
line 78
;78:      success = sscanf(new_ptr, "turretmodel %s\n", &turretmodel);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $155
ARGP4
ADDRLP4 144
ARGP4
ADDRLP4 276
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 276
INDIRI4
ASGNI4
line 79
;79:      Com_Printf("registering model: %s", turretmodel);
ADDRGP4 $156
ARGP4
ADDRLP4 144
ARGP4
ADDRGP4 Com_Printf
CALLV
pop
line 80
;80:      if(success) { 
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $157
line 81
;81:         cg_vehicleTemplates[*vehiclenum].vehicleInfo.displayInfo.turretmodel = trap_R_RegisterModel(turretmodel);
ADDRLP4 144
ARGP4
ADDRLP4 280
ADDRGP4 trap_R_RegisterModel
CALLI4
ASGNI4
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 cg_vehicleTemplates+12+36
ADDP4
ADDRLP4 280
INDIRI4
ASGNI4
line 82
;82:      }
LABELV $157
line 84
;83:
;84:      new_ptr = combat_strstr(new_ptr, "basemodel");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $161
ARGP4
ADDRLP4 280
ADDRGP4 combat_strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 280
INDIRP4
ASGNP4
line 85
;85:      success = sscanf(new_ptr, "basemodel %s\n", &basemodel);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 208
ARGP4
ADDRLP4 284
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 284
INDIRI4
ASGNI4
line 86
;86:      Com_Printf("registering model: %s", basemodel);
ADDRGP4 $156
ARGP4
ADDRLP4 208
ARGP4
ADDRGP4 Com_Printf
CALLV
pop
line 87
;87:      if(success) {     
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $163
line 88
;88:         cg_vehicleTemplates[*vehiclenum].vehicleInfo.displayInfo.basemodel = trap_R_RegisterModel(basemodel);
ADDRLP4 208
ARGP4
ADDRLP4 288
ADDRGP4 trap_R_RegisterModel
CALLI4
ASGNI4
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 cg_vehicleTemplates+12+36+4
ADDP4
ADDRLP4 288
INDIRI4
ASGNI4
line 89
;89:      }
LABELV $163
line 91
;90:
;91:      new_ptr = combat_strstr(new_ptr, "turretshader");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $168
ARGP4
ADDRLP4 288
ADDRGP4 combat_strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 288
INDIRP4
ASGNP4
line 92
;92:      success = sscanf(new_ptr, "turretshader %s\n", &turretshader);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $169
ARGP4
ADDRLP4 16
ARGP4
ADDRLP4 292
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 292
INDIRI4
ASGNI4
line 93
;93:      Com_Printf("registering shader: %s", turretshader);
ADDRGP4 $170
ARGP4
ADDRLP4 16
ARGP4
ADDRGP4 Com_Printf
CALLV
pop
line 94
;94:      if(success) {
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $171
line 95
;95:         if(strcmp(turretshader, "none") == 0)
ADDRLP4 16
ARGP4
ADDRGP4 $175
ARGP4
ADDRLP4 296
ADDRGP4 strcmp
CALLI4
ASGNI4
ADDRLP4 296
INDIRI4
CNSTI4 0
NEI4 $173
line 96
;96:            cg_vehicleTemplates[*vehiclenum].vehicleInfo.displayInfo.turretshader = -1;
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 cg_vehicleTemplates+12+36+8
ADDP4
CNSTI4 -1
ASGNI4
ADDRGP4 $174
JUMPV
LABELV $173
line 98
;97:         else
;98:            cg_vehicleTemplates[*vehiclenum].vehicleInfo.displayInfo.turretshader = trap_R_RegisterShader(turretshader);
ADDRLP4 16
ARGP4
ADDRLP4 300
ADDRGP4 trap_R_RegisterShader
CALLI4
ASGNI4
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 cg_vehicleTemplates+12+36+8
ADDP4
ADDRLP4 300
INDIRI4
ASGNI4
LABELV $174
line 99
;99:      }
LABELV $171
line 101
;100:
;101:      new_ptr = combat_strstr(new_ptr, "baseshader");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $182
ARGP4
ADDRLP4 296
ADDRGP4 combat_strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 296
INDIRP4
ASGNP4
line 102
;102:      success = sscanf(new_ptr, "baseshader %s\n", &baseshader);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $183
ARGP4
ADDRLP4 80
ARGP4
ADDRLP4 300
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 300
INDIRI4
ASGNI4
line 103
;103:      Com_Printf("registering shader: %s", baseshader);
ADDRGP4 $170
ARGP4
ADDRLP4 80
ARGP4
ADDRGP4 Com_Printf
CALLV
pop
line 104
;104:      if(success) {
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $184
line 105
;105:         if(strcmp(baseshader, "none") == 0)
ADDRLP4 80
ARGP4
ADDRGP4 $175
ARGP4
ADDRLP4 304
ADDRGP4 strcmp
CALLI4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 0
NEI4 $186
line 106
;106:            cg_vehicleTemplates[*vehiclenum].vehicleInfo.displayInfo.baseshader = -1;
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 cg_vehicleTemplates+12+36+12
ADDP4
CNSTI4 -1
ASGNI4
ADDRGP4 $187
JUMPV
LABELV $186
line 108
;107:         else
;108:            cg_vehicleTemplates[*vehiclenum].vehicleInfo.displayInfo.baseshader = trap_R_RegisterShader(baseshader);
ADDRLP4 80
ARGP4
ADDRLP4 308
ADDRGP4 trap_R_RegisterShader
CALLI4
ASGNI4
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 cg_vehicleTemplates+12+36+12
ADDP4
ADDRLP4 308
INDIRI4
ASGNI4
LABELV $187
line 109
;109:      }
LABELV $184
line 111
;110:
;111:      return new_ptr;
ADDRLP4 0
INDIRP4
RETP4
ADDRGP4 $150
JUMPV
LABELV $152
line 113
;112:   }
;113:   return ptr;
ADDRFP4 0
INDIRP4
RETP4
LABELV $150
endproc Parser_ParseDisplay 312 12
export Parser_ParseSound
proc Parser_ParseSound 160 12
line 116
;114:}
;115:
;116:char *Parser_ParseSound(char *ptr, int *vehiclenum) {
line 117
;117:   int success = -1, i;
ADDRLP4 4
CNSTI4 -1
ASGNI4
line 121
;118:   
;119:   char *new_ptr;
;120:
;121:   new_ptr = ptr;
ADDRLP4 0
ADDRFP4 0
INDIRP4
ASGNP4
line 124
;122:
;123:   //new_ptr = combat_strstr(new_ptr, "sound {\n");
;124:   new_ptr = strstr(new_ptr, "sound {\n");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $195
ARGP4
ADDRLP4 12
ADDRGP4 strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 12
INDIRP4
ASGNP4
line 126
;125:
;126:   if(new_ptr) {
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $196
line 129
;127:      char movesound1[MAX_QPATH], movesound2[MAX_QPATH];
;128:
;129:      parser_clear_string(movesound1, MAX_QPATH);
ADDRLP4 16
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 130
;130:      parser_clear_string(movesound2, MAX_QPATH);
ADDRLP4 80
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 132
;131:      
;132:      success = sscanf(new_ptr, "movesound1 %s\n", &movesound1);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $198
ARGP4
ADDRLP4 16
ARGP4
ADDRLP4 144
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 144
INDIRI4
ASGNI4
line 133
;133:      if(success)
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $199
line 134
;134:         cg_vehicleTemplates[*vehiclenum].vehicleInfo.soundInfo.movesound1 = trap_S_RegisterSound(movesound1);
ADDRLP4 16
ARGP4
ADDRLP4 148
ADDRGP4 trap_S_RegisterSound
CALLI4
ASGNI4
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 cg_vehicleTemplates+12+52
ADDP4
ADDRLP4 148
INDIRI4
ASGNI4
LABELV $199
line 136
;135:
;136:      success = sscanf(new_ptr, "movesound2 %s\n", &movesound2);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $203
ARGP4
ADDRLP4 80
ARGP4
ADDRLP4 152
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 152
INDIRI4
ASGNI4
line 137
;137:      if(success)
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $204
line 138
;138:         cg_vehicleTemplates[*vehiclenum].vehicleInfo.soundInfo.movesound2 = trap_S_RegisterSound(movesound2);
ADDRLP4 80
ARGP4
ADDRLP4 156
ADDRGP4 trap_S_RegisterSound
CALLI4
ASGNI4
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 cg_vehicleTemplates+12+52+4
ADDP4
ADDRLP4 156
INDIRI4
ASGNI4
LABELV $204
line 140
;139:
;140:      return new_ptr;
ADDRLP4 0
INDIRP4
RETP4
ADDRGP4 $194
JUMPV
LABELV $196
line 142
;141:   }
;142:   return ptr;
ADDRFP4 0
INDIRP4
RETP4
LABELV $194
endproc Parser_ParseSound 160 12
export Parser_ParseVehicle
proc Parser_ParseVehicle 168 12
line 146
;143:}
;144:
;145:
;146:char *Parser_ParseVehicle(char *ptr, int *vehiclenum) {
line 148
;147:   char *new_ptr;
;148:   int success = -1;
ADDRLP4 4
CNSTI4 -1
ASGNI4
line 151
;149:   char vehiclename[MAX_QPATH];
;150:
;151:   new_ptr = ptr;
ADDRLP4 0
ADDRFP4 0
INDIRP4
ASGNP4
line 152
;152:   new_ptr = strstr(new_ptr, "vehicle ");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $210
ARGP4
ADDRLP4 72
ADDRGP4 strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 72
INDIRP4
ASGNP4
line 155
;153:      
;154:   // if the "vehicle #" substring exists...
;155:   if(new_ptr) {
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $211
line 156
;156:      parser_clear_string(vehiclename, MAX_QPATH);
ADDRLP4 8
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 158
;157:      // scan the vehicle # from the "vehicle #" substring
;158:      success = sscanf(new_ptr, "vehicle %s {\n", vehiclename);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $213
ARGP4
ADDRLP4 8
ARGP4
ADDRLP4 76
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 76
INDIRI4
ASGNI4
line 161
;159:      
;160:      // process current vehicle
;161:      if(success) {
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $214
line 163
;162:         char vehicletype[MAX_QPATH];
;163:         parser_clear_string(vehicletype, MAX_QPATH);
ADDRLP4 80
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 168
;164:
;165:         //printf("      vehiclename %d: vehiclename name: %s {\n", *vehiclenum, vehiclename);
;166:         
;167:         // fill the structs
;168:         cg_vehicleTemplates[*vehiclenum].templateNum = *vehiclenum;
ADDRLP4 144
ADDRFP4 4
INDIRP4
INDIRI4
ASGNI4
CNSTI4 80
ADDRLP4 144
INDIRI4
MULI4
ADDRGP4 cg_vehicleTemplates+8
ADDP4
ADDRLP4 144
INDIRI4
ASGNI4
line 170
;169:
;170:         strcpy(cg_vehicleTemplates[*vehiclenum].vehicleInfo.vehicleName, vehiclename);
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 cg_vehicleTemplates+12+4
ADDP4
ARGP4
ADDRLP4 8
ARGP4
ADDRGP4 strcpy
CALLP4
pop
line 173
;171:
;172:         // display and sound should be done on client side...
;173:         new_ptr = Parser_ParseDisplay(new_ptr, vehiclenum);
ADDRLP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRLP4 148
ADDRGP4 Parser_ParseDisplay
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 148
INDIRP4
ASGNP4
line 174
;174:         new_ptr = Parser_ParseSound(new_ptr, vehiclenum);
ADDRLP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRLP4 152
ADDRGP4 Parser_ParseSound
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 152
INDIRP4
ASGNP4
line 176
;175:         
;176:         new_ptr = strstr(new_ptr, "physics {");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $219
ARGP4
ADDRLP4 156
ADDRGP4 strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 156
INDIRP4
ASGNP4
line 177
;177:         new_ptr = strstr(new_ptr, "}");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 160
ADDRGP4 strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 160
INDIRP4
ASGNP4
line 178
;178:         new_ptr = strstr(new_ptr, "}");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 164
ADDRGP4 strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 164
INDIRP4
ASGNP4
line 181
;179:
;180:         //printf("      }\n");
;181:         return new_ptr;
ADDRLP4 0
INDIRP4
RETP4
ADDRGP4 $209
JUMPV
LABELV $214
line 183
;182:      }
;183:   }
LABELV $211
line 185
;184:
;185:   return ptr;
ADDRFP4 0
INDIRP4
RETP4
LABELV $209
endproc Parser_ParseVehicle 168 12
export Parser_ParseVehicles
proc Parser_ParseVehicles 28 12
line 188
;186:}
;187:
;188:char *Parser_ParseVehicles(char *ptr) {
line 189
;189:   int success = -1, i;
ADDRLP4 12
CNSTI4 -1
ASGNI4
line 192
;190:   
;191:   char *new_ptr;
;192:   int vehicles = -1;
ADDRLP4 8
CNSTI4 -1
ASGNI4
line 194
;193:   
;194:   new_ptr = ptr;
ADDRLP4 0
ADDRFP4 0
INDIRP4
ASGNP4
line 196
;195:
;196:   new_ptr = strstr(new_ptr, "vehicles");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $222
ARGP4
ADDRLP4 16
ADDRGP4 strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 16
INDIRP4
ASGNP4
line 199
;197:
;198:   // if the "vehicles #" substring exists, being processing vehicles
;199:   if(new_ptr) {
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $223
line 202
;200:
;201:      // read the number of vehicles to expect
;202:      success = sscanf(ptr, "vehicles %d {\n", &vehicles);
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $225
ARGP4
ADDRLP4 8
ARGP4
ADDRLP4 20
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 12
ADDRLP4 20
INDIRI4
ASGNI4
line 205
;203:      
;204:      // if the number of vehicles exists and we read it properly
;205:      if(success) {
ADDRLP4 12
INDIRI4
CNSTI4 0
EQI4 $226
line 209
;206:         //printf("vehicles %d {\n", vehicles);
;207:         
;208:         // process each level individually
;209:         for(i = 0; i < vehicles; i++) {
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $231
JUMPV
LABELV $228
line 210
;210:            new_ptr = Parser_ParseVehicle(new_ptr, &i);
ADDRLP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
ADDRLP4 24
ADDRGP4 Parser_ParseVehicle
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 24
INDIRP4
ASGNP4
line 211
;211:         }
LABELV $229
line 209
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $231
ADDRLP4 4
INDIRI4
ADDRLP4 8
INDIRI4
LTI4 $228
line 214
;212:         //printf("}\n");
;213:
;214:         return new_ptr;
ADDRLP4 0
INDIRP4
RETP4
ADDRGP4 $221
JUMPV
LABELV $226
line 216
;215:      }
;216:   }
LABELV $223
line 217
;217:   return ptr;
ADDRFP4 0
INDIRP4
RETP4
LABELV $221
endproc Parser_ParseVehicles 28 12
export Parser_ParseVehicleInfo
proc Parser_ParseVehicleInfo 10024 12
line 220
;218:}
;219:
;220:int Parser_ParseVehicleInfo(char *filename) {
line 223
;221:   int success;
;222:
;223:   int file_size = 0;
ADDRLP4 0
CNSTI4 0
ASGNI4
line 229
;224:   fileHandle_t script_file;
;225:
;226:   //char *filename = "./scripts/test.classinfo.small";
;227:
;228:   // get the file length, reset the file pointer, and allocate a buffer
;229:   file_size = trap_FS_FOpenFile (filename, &script_file, FS_READ);
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
CNSTI4 0
ARGI4
ADDRLP4 12
ADDRGP4 trap_FS_FOpenFile
CALLI4
ASGNI4
ADDRLP4 0
ADDRLP4 12
INDIRI4
ASGNI4
line 232
;230:
;231:   // begin parsing
;232:   if(file_size > 0) {
ADDRLP4 0
INDIRI4
CNSTI4 0
LEI4 $233
line 233
;233:      char *ptr = 0;
ADDRLP4 16
CNSTP4 0
ASGNP4
line 243
;234:      char buffer[10000];
;235:      
;236:      //fseek(script_file, 0L, 0);
;237:      //buffer = malloc(sizeof(char) * file_size + 1);
;238:      //buffer = G_Alloc(sizeof(char) * file_size + 1);
;239:
;240:      //printf("file_size: %d\n", file_size);
;241:
;242:      // read in the file to the buffer and terminate the buffer
;243:      trap_FS_Read(&buffer, file_size, script_file);
ADDRLP4 20
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 4
INDIRI4
ARGI4
ADDRGP4 trap_FS_Read
CALLV
pop
line 244
;244:      buffer[sizeof(char) * file_size] = '\0';
CNSTU4 1
ADDRLP4 0
INDIRI4
CVIU4 4
MULU4
ADDRLP4 20
ADDP4
CNSTI1 0
ASGNI1
line 249
;245:
;246:      //Com_Printf("%d\n%s\n", file_size, buffer);
;247:      
;248:      // start at the beginning of the buffer
;249:      ptr = buffer;
ADDRLP4 16
ADDRLP4 20
ASGNP4
line 252
;250:
;251:      // and awaaaayyyyy we go!
;252:      ptr = Parser_ParseVehicles(ptr);
ADDRLP4 16
INDIRP4
ARGP4
ADDRLP4 10020
ADDRGP4 Parser_ParseVehicles
CALLP4
ASGNP4
ADDRLP4 16
ADDRLP4 10020
INDIRP4
ASGNP4
line 254
;253:
;254:      trap_FS_FCloseFile(script_file);
ADDRLP4 4
INDIRI4
ARGI4
ADDRGP4 trap_FS_FCloseFile
CALLV
pop
line 261
;255:      //getch();
;256:
;257:      //if(buffer)
;258:      //   free(buffer);
;259:      //BG_TempFree(sizeof(char) * file_size + 1);
;260:
;261:      return 1;
CNSTI4 1
RETI4
ADDRGP4 $232
JUMPV
LABELV $233
line 264
;262:   }
;263:
;264:   return 0;
CNSTI4 0
RETI4
LABELV $232
endproc Parser_ParseVehicleInfo 10024 12
import g2WeaponInstances
import CG_CheckPlayerG2Weapons
import CG_CopyG2WeaponInstance
import CG_ShutDownG2Weapons
import CG_InitG2Weapons
import CG_CreateBBRefEnts
import CG_SetGhoul2Info
import CG_Init_CGents
import CG_Init_CG
import trap_G2API_SetNewOrigin
import trap_G2API_SetSurfaceOnOff
import trap_G2API_SetRootSurface
import trap_G2API_SetBoneAnim
import trap_G2API_GetGLAName
import trap_G2API_SetBoneAngles
import trap_G2API_CleanGhoul2Models
import trap_G2API_SetBoltInfo
import trap_G2API_AddBolt
import trap_G2API_RemoveGhoul2Model
import trap_G2API_HasGhoul2ModelOnIndex
import trap_G2API_DuplicateGhoul2Instance
import trap_G2API_CopySpecificGhoul2Model
import trap_G2API_CopyGhoul2Instance
import trap_G2API_GiveMeVectorFromMatrix
import trap_G2API_InitGhoul2Model
import trap_G2API_GetBoltMatrix_NoRecNoRot
import trap_G2API_GetBoltMatrix_NoReconstruct
import trap_G2API_GetBoltMatrix
import trap_G2_HaveWeGhoul2Models
import trap_G2_SetGhoul2ModelIndexes
import trap_G2_ListModelBones
import trap_G2_ListModelSurfaces
import trap_G2API_CollisionDetect
import FX_ForceDrained
import FX_TieLaserAltFireThink
import FX_TieLaserWeaponHitPlayer
import FX_TieLaserWeaponHitWall
import FX_TieLaserProjectileThink
import FX_BlasterWeaponHitPlayer
import FX_BlasterWeaponHitWall
import FX_BlasterAltFireThink
import FX_BlasterProjectileThink
import FX_BryarAltHitPlayer
import FX_BryarHitPlayer
import FX_BryarAltHitWall
import FX_BryarHitWall
import CG_Spark
import FX_TurretHitPlayer
import FX_TurretHitWall
import FX_TurretProjectileThink
import CG_NewParticleArea
import initparticles
import CG_GetStripEdString
import CG_ParticleExplosion
import CG_ParticleMisc
import CG_ParticleDust
import CG_ParticleSparks
import CG_ParticleBulletDebris
import CG_ParticleSnowFlurry
import CG_AddParticleShrapnel
import CG_ParticleSmoke
import CG_ParticleSnow
import CG_AddParticles
import CG_ClearParticles
import trap_ROFF_Purge_Ent
import trap_ROFF_Play
import trap_ROFF_Cache
import trap_ROFF_UpdateEntities
import trap_ROFF_Clean
import trap_CG_RegisterSharedMemory
import trap_SP_GetStringTextString
import trap_SP_Print
import trap_FX_AddSprite
import trap_FX_AddPrimitive
import trap_FX_AddBezier
import trap_FX_AddPoly
import trap_FX_AdjustTime
import trap_FX_FreeSystem
import trap_FX_InitSystem
import trap_FX_AddScheduledEffects
import trap_FX_PlayBoltedEffectID
import trap_FX_PlayEntityEffectID
import trap_FX_PlayEffectID
import trap_FX_PlaySimpleEffectID
import trap_FX_PlayEntityEffect
import trap_FX_PlayEffect
import trap_FX_PlaySimpleEffect
import trap_FX_RegisterEffect
import trap_R_inPVS
import trap_GetEntityToken
import trap_getCameraInfo
import trap_startCamera
import trap_loadCamera
import trap_SnapVector
import trap_CIN_SetExtents
import trap_CIN_DrawCinematic
import trap_CIN_RunCinematic
import trap_CIN_StopCinematic
import trap_CIN_PlayCinematic
import BG_CycleForce
import BG_ProperForceIndex
import BG_CycleInven
import trap_Key_GetKey
import trap_Key_SetCatcher
import trap_Key_GetCatcher
import trap_Key_IsDown
import trap_MemoryRemaining
import testPrintFloat
import testPrintInt
import trap_OpenUIMenu
import trap_SetClientTurnExtent
import trap_SetClientForceAngle
import trap_SetUserCmdValue
import trap_GetUserCmd
import trap_GetCurrentCmdNumber
import trap_GetServerCommand
import trap_GetSnapshot
import trap_GetCurrentSnapshotNumber
import trap_GetGameState
import trap_GetGlconfig
import trap_FX_AddLine
import trap_R_GetBModelVerts
import trap_R_SetLightStyle
import trap_R_GetLightStyle
import trap_R_RemapShader
import trap_R_DrawRotatePic2
import trap_R_DrawRotatePic
import trap_R_LerpTag
import trap_R_ModelBounds
import trap_R_DrawStretchPic
import trap_R_SetColor
import trap_R_RenderScene
import trap_R_LightForPoint
import trap_R_AddLightToScene
import trap_R_AddPolysToScene
import trap_R_AddPolyToScene
import trap_R_AddRefEntityToScene
import trap_R_ClearScene
import trap_AnyLanguage_ReadCharFromString
import trap_Language_UsesSpaces
import trap_Language_IsAsian
import trap_R_Font_DrawString
import trap_R_Font_HeightPixels
import trap_R_Font_StrLenChars
import trap_R_Font_StrLenPixels
import trap_R_RegisterFont
import trap_R_RegisterShaderNoMip
import trap_R_RegisterShader
import trap_R_RegisterSkin
import trap_R_RegisterModel
import trap_R_LoadWorldMap
import trap_S_StopBackgroundTrack
import trap_S_StartBackgroundTrack
import trap_S_RegisterSound
import trap_S_Respatialize
import trap_S_UpdateEntityPosition
import trap_S_AddRealLoopingSound
import trap_S_AddLoopingSound
import trap_S_ClearLoopingSounds
import trap_S_StartLocalSound
import trap_S_StopLoopingSound
import trap_S_StartSound
import trap_S_MuteSound
import trap_CM_MarkFragments
import trap_CM_TransformedBoxTrace
import trap_CM_BoxTrace
import trap_CM_TransformedPointContents
import trap_CM_PointContents
import trap_CM_TempBoxModel
import trap_CM_InlineModel
import trap_CM_NumInlineModels
import trap_CM_LoadMap
import trap_UpdateScreen
import trap_SendClientCommand
import trap_AddCommand
import trap_SendConsoleCommand
import trap_FS_FCloseFile
import trap_FS_Write
import trap_FS_Read
import trap_FS_FOpenFile
import trap_Args
import trap_Argv
import trap_Argc
import trap_Cvar_VariableStringBuffer
import trap_Cvar_Set
import trap_Cvar_Update
import trap_Cvar_Register
import trap_Milliseconds
import trap_Error
import trap_Print
import CG_SagaObjectiveCompleted
import CG_SagaRoundOver
import CG_InitSagaMode
import CG_CheckChangedPredictableEvents
import CG_TransitionPlayerState
import CG_Respawn
import CG_IsMindTricked
import CG_PlayBufferedVoiceChats
import CG_VoiceChatLocal
import CG_ShaderStateChanged
import CG_LoadVoiceChats
import CG_SetConfigValues
import CG_ParseServerinfo
import CG_ExecuteNewServerCommands
import CG_InitConsoleCommands
import CG_ConsoleCommand
import CG_DrawOldTourneyScoreboard
import CG_DrawOldScoreboard
import CG_DrawInformation
import CG_LoadingClient
import CG_LoadingItem
import CG_LoadingString
import CG_ProcessSnapshots
import CG_InitGlass
import CG_TestLine
import CG_SurfaceExplosion
import CG_MakeExplosion
import CG_Bleed
import CG_ScorePlum
import CG_CreateDebris
import CG_GlassShatter
import CG_BubbleTrail
import CG_SmokePuff
import CG_AddLocalEntities
import CG_AllocLocalEntity
import CG_InitLocalEntities
import CG_ImpactMark
import CG_AddMarks
import CG_InitMarkPolys
import CG_OutOfAmmoChange
import CG_DrawIconBackground
import CG_DrawWeaponSelect
import CG_AddPlayerWeapon
import CG_AddViewWeapon
import CG_MissileHitPlayer
import CG_MissileHitWall
import CG_FireWeapon
import CG_RegisterItemVisuals
import CG_RegisterWeapon
import CG_Weapon_f
import CG_PrevWeapon_f
import CG_NextWeapon_f
import CG_GetClientWeaponMuzzleBoltPoint
import TurretClientRun
import ScaleModelAxis
import CG_PositionRotatedEntityOnTag
import CG_PositionEntityOnTag
import CG_AdjustPositionForMover
import CG_Beam
import CG_ManualEntityRender
import CG_AddPacketEntities
import CG_SetEntitySoundPosition
import CG_ReattachLimb
import CG_PainEvent
import CG_EntityEvent
import CG_PlaceString
import CG_CheckEvents
import CG_LoadDeferredPlayers
import CG_PredictPlayerState
import CG_Trace
import CG_PointContents
import CG_BuildSolidList
import CG_PlayerShieldHit
import CG_CustomSound
import CG_NewClientInfo
import CG_AddRefEntityWithPowerups
import CG_ResetPlayerEntity
import CG_Player
import CG_StatusHandle
import CG_OtherTeamHasFlag
import CG_YourTeamHasFlag
import CG_GameTypeString
import CG_CheckOrderPending
import CG_Text_PaintChar
import CG_Draw3DModel
import CG_GetKillerText
import CG_GetGameStatusText
import CG_GetTeamColor
import CG_InitTeamChat
import CG_SetPrintString
import CG_ShowResponseHead
import CG_DeferMenuScript
import CG_RunMenuScript
import CG_OwnerDrawVisible
import CG_GetValue
import CG_SelectNextPlayer
import CG_SelectPrevPlayer
import CG_Text_Height
import CG_Text_Width
import CG_Text_Paint
import CG_OwnerDraw
import CG_DrawTeamBackground
import CG_DrawFlagModel
import CG_DrawActive
import CG_DrawHead
import CG_CenterPrint
import CG_AddLagometerSnapshotInfo
import CG_AddLagometerFrameInfo
import teamChat2
import teamChat1
import systemChat
import drawTeamOverlayModificationCount
import numSortedTeamPlayers
import sortedTeamPlayers
import CG_DrawTopBottom
import CG_DrawSides
import CG_DrawRect
import UI_DrawScaledProportionalString
import UI_DrawProportionalString
import CG_GetColorForHealth
import CG_ColorForHealth
import CG_TileClear
import CG_TeamColor
import CG_FadeColor
import CG_DrawStrlen
import CG_DrawSmallStringColor
import CG_DrawSmallString
import CG_DrawBigStringColor
import CG_DrawBigString
import CG_DrawStringExt
import CG_DrawNumField
import CG_DrawString
import CG_DrawRotatePic2
import CG_DrawRotatePic
import CG_DrawPic
import CG_FillRect
import CG_TestModelAnimate_f
import CG_TestModelSetAnglespost_f
import CG_TestModelSetAnglespre_f
import CG_ListModelBones_f
import CG_ListModelSurfaces_f
import CG_TestModelSurfaceOnOff_f
import CG_TestG2Model_f
import CG_DrawActiveFrame
import CG_AddBufferedSound
import CG_ZoomUp_f
import CG_ZoomDown_f
import CG_TestModelPrevSkin_f
import CG_TestModelNextSkin_f
import CG_TestModelPrevFrame_f
import CG_TestModelNextFrame_f
import CG_TestGun_f
import CG_TestModel_f
import CG_PrevForcePower_f
import CG_NextForcePower_f
import CG_PrevInventory_f
import CG_NextInventory_f
import CG_BuildSpectatorString
import CG_SetScoreSelection
import CG_RankRunFrame
import CG_EventHandling
import CG_MouseEvent
import CG_KeyEvent
import CG_LoadMenus
import CG_LastAttacker
import CG_CrosshairPlayer
import CG_UpdateCvars
import CG_StartMusic
import CG_Error
import CG_Printf
import CG_Argv
import CG_ConfigString
import cg_followCamTransition
import cg_followCam
import cg_roll
import cg_throttle
import cg_debugBB
import ui_myteam
import cg_recordSPDemoName
import cg_recordSPDemo
import cg_singlePlayerActive
import cg_enableBreath
import cg_enableDust
import cg_singlePlayer
import cg_currentSelectedPlayerName
import cg_currentSelectedPlayer
import cg_blueTeamName
import cg_redTeamName
import cg_trueLightning
import cg_noProjectileTrail
import cg_noTaunt
import cg_bigFont
import cg_smallFont
import cg_cameraMode
import cg_timescale
import cg_timescaleFadeSpeed
import cg_timescaleFadeEnd
import cg_cameraOrbitDelay
import cg_cameraOrbit
import pmove_msec
import pmove_fixed
import cg_smoothClients
import cg_hudFiles
import cg_scorePlum
import cg_noVoiceText
import cg_noVoiceChats
import cg_teamChatsOnly
import cg_drawFriend
import cg_deferPlayers
import cg_predictItems
import cg_blood
import cg_paused
import cg_buildScript
import cg_forceModel
import cg_stats
import cg_teamChatHeight
import cg_teamChatTime
import cg_synchronousClients
import cg_drawEnemyInfo
import cg_lagometer
import cg_stereoSeparation
import cg_thirdPersonHorzOffset
import cg_thirdPersonAlpha
import cg_thirdPersonTargetDamp
import cg_thirdPersonCameraDamp
import cg_thirdPersonVertOffset
import cg_thirdPersonPitchOffset
import cg_thirdPersonAngle
import cg_thirdPersonRange
import cg_thirdPerson
import cg_dismember
import cg_animBlend
import cg_auraShell
import cg_speedTrail
import cg_duelHeadAngles
import cg_saberTrail
import cg_saberContact
import cg_saberDynamicMarkTime
import cg_saberDynamicMarks
import cg_fpls
import cg_saberModelTraceEffect
import cg_oldPainSounds
import cg_swingAngles
import cg_zoomFov
import cg_fov
import cg_simpleItems
import cg_ignore
import cg_autoswitch
import cg_tracerLength
import cg_tracerWidth
import cg_tracerChance
import cg_viewsize
import cg_drawGun
import cg_gun_z
import cg_gun_y
import cg_gun_x
import cg_gun_frame
import cg_addMarks
import cg_footsteps
import cg_showmiss
import cg_noPlayerAnims
import cg_nopredict
import cg_errorDecay
import cg_debugEvents
import cg_debugPosition
import cg_debugAnim
import cg_animSpeed
import cg_draw2D
import cg_drawStatus
import cg_crosshairHealth
import cg_crosshairSize
import cg_crosshairY
import cg_crosshairX
import cg_teamOverlayUserinfo
import cg_drawTeamOverlay
import cg_drawRewards
import cg_dynamicCrosshair
import cg_drawScores
import cg_drawCrosshairNames
import cg_drawCrosshair
import cg_drawAmmoWarning
import cg_drawIcons
import cg_draw3dIcons
import cg_drawSnapshot
import cg_drawFPS
import cg_drawTimer
import cg_shadows
import cg_bobroll
import cg_bobpitch
import cg_bobup
import cg_runroll
import cg_runpitch
import cg_centertime
import cg_vehicleTemplates
import cg_vehicles
import VehicleInfo_GetNameForMovementType
import VehicleInfo_GetBitForMovementType
import VehicleInfo_GetNameForWeapon
import VehicleInfo_GetIndexForWeapon
import VehicleInfo_GetBitForWeapon
import VehicleInfo_GetBitForVehicleType
import Vehicle_CopyVehicle
import Vehicle_InitVehicle
import cg_markPolys
import cg_items
import cg_weapons
import cg_entities
import cg
import cgs
import CGCam_SetMusicMult
import CGCam_Shake
import cgScreenEffects
import ammoTicPos
import forceTicPos
import forcePowerDarkLight
import WeaponAttackAnim
import WeaponReadyAnim
import BG_OutOfMemory
import BG_StringAlloc
import BG_TempFree
import BG_TempAlloc
import BG_AllocUnaligned
import BG_Alloc
import BG_CanUseFPNow
import BG_HasYsalamiri
import BG_GetItemIndexByTag
import BG_ParseAnimationFile
import BG_PlayerTouchesItem
import BG_PlayerStateToEntityStateExtraPolate
import BG_PlayerStateToEntityState
import BG_TouchJumpPad
import BG_AddPredictableEventToPlayerstate
import BG_EvaluateTrajectoryDelta
import BG_EvaluateTrajectory
import BG_ForcePowerDrain
import BG_SaberStartTransAnim
import BG_InDeathAnim
import BG_InRoll
import BG_KnockawayForParry
import BG_BrokenParryForParry
import BG_BrokenParryForAttack
import BG_SaberInSpecialAttack
import BG_SpinningSaberAnim
import BG_FlippingAnim
import BG_SaberInIdle
import BG_SaberInSpecial
import BG_SaberInAttack
import BG_DirectFlippingAnim
import BG_InSaberStandAnim
import BG_InSpecialJump
import BG_LegalizedForcePowers
import saberMoveData
import BG_CanItemBeGrabbed
import BG_FindItemForHoldable
import BG_FindItemForPowerup
import BG_FindItemForWeapon
import BG_FindItem
import vectoyaw
import bg_numItems
import bg_itemlist
import PM_CalculateRelativeViewAngles
import Pmove
import PM_QuaternionViewAngles
import PM_UpdateViewAngles
import pm
import bgForcePowerCost
import forceMasteryPoints
import forceMasteryLevels
import bgGlobalAnimations
import BGPAFtextLoaded
import forcePowerSorted
import WP_MuzzlePoint
import ammoData
import weaponData
import GetStringForID
import GetIDForString
import Q_irand
import irand
import flrand
import Rand_Init
import Com_Printf
import Com_Error
import Info_NextPair
import Info_Validate
import Info_SetValueForKey_Big
import Info_SetValueForKey
import Info_RemoveKey_big
import Info_RemoveKey
import Info_ValueForKey
import va
import Q_CleanStr
import Q_PrintStrlen
import Q_strcat
import Q_strncpyz
import Q_strrchr
import Q_strupr
import Q_strlwr
import Q_stricmpn
import Q_strncmp
import Q_stricmp
import Q_isalpha
import Q_isupper
import Q_islower
import Q_isprint
import Com_sprintf
import Parse3DMatrix
import Parse2DMatrix
import Parse1DMatrix
import SkipRestOfLine
import SkipBracedSection
import COM_MatchToken
import COM_ParseVec4
import COM_ParseFloat
import COM_ParseInt
import COM_ParseString
import COM_ParseWarning
import COM_ParseError
import COM_Compress
import COM_ParseExt
import COM_Parse
import SkipWhitespace
import COM_GetCurrentParseLine
import COM_BeginParseSession
import COM_DefaultExtension
import COM_StripExtension
import COM_SkipPath
import Com_Clamp
import MatrixToEuler
import QuatToAngles
import QuatMul
import AnglesToQuat
import AxisToQuaternion
import QuaternionToAxis
import QuaternionToEuler
import QuatToAxis
import QuaternionMultiply
import QuaternionNormalize
import QuaternionMagnitude
import QuaternionFromString
import AnglesToTieFloats
import AnglesFromTieFloats
import QuaternionToTieFloats
import QuaternionFromTieFloats
import QuaternionCopy
import PerpendicularVector
import AngleVectors
import RotationMatrixAroundDir
import MatrixMultiply
import MakeNormalVectors
import RotateAroundDirection
import RotatePointAroundVector
import ProjectPointOnPlane
import PlaneFromPoints
import AngleDelta
import AngleNormalize180
import AngleNormalize360
import AnglesSubtract
import AngleSubtract
import LerpAngle
import AngleMod
import BoxOnPlaneSide
import SetPlaneSignbits
import AxisCopy
import AxisClear
import AnglesToAxis
import vectoangles
import Q_crandom
import Q_random
import Q_rand
import Q_acos
import Q_log2
import VectorRotate
import Vector4Scale
import VectorNormalize2
import VectorNormalize
import CrossProduct
import VectorInverse
import VectorNormalizeFast
import DistanceSquared
import Distance
import VectorLengthSquared
import VectorLength
import VectorCompare
import AddPointToBounds
import ClearBounds
import RadiusFromBounds
import NormalizeColor
import ColorBytes4
import ColorBytes3
import _VectorMA
import _VectorScale
import _VectorCopy
import _VectorAdd
import _VectorSubtract
import _DotProduct
import ByteToDir
import DirToByte
import powf
import ClampShort
import ClampChar
import Q_rsqrt
import Q_fabs
import axisDefault
import vec3_origin
import g_color_table
import colorDkBlue
import colorLtBlue
import colorDkGrey
import colorMdGrey
import colorLtGrey
import colorWhite
import colorCyan
import colorMagenta
import colorYellow
import colorBlue
import colorGreen
import colorRed
import colorBlack
import colorTable
import bytedirs
import Com_Memcpy
import Com_Memset
import Hunk_Alloc
import forceSpeedLevels
import FloatSwap
import LongSwap
import ShortSwap
import acos
import fabs
import abs
import tan
import atan2
import cos
import sin
import sqrt
import floor
import ceil
import memcpy
import memset
import memmove
import sscanf
import vsprintf
import _atoi
import atoi
import _atof
import atof
import toupper
import tolower
import strncpy
import strstr
import strchr
import strcmp
import strcpy
import strcat
import strlen
import rand
import srand
import qsort
lit
align 1
LABELV $225
byte 1 118
byte 1 101
byte 1 104
byte 1 105
byte 1 99
byte 1 108
byte 1 101
byte 1 115
byte 1 32
byte 1 37
byte 1 100
byte 1 32
byte 1 123
byte 1 10
byte 1 0
align 1
LABELV $222
byte 1 118
byte 1 101
byte 1 104
byte 1 105
byte 1 99
byte 1 108
byte 1 101
byte 1 115
byte 1 0
align 1
LABELV $220
byte 1 125
byte 1 0
align 1
LABELV $219
byte 1 112
byte 1 104
byte 1 121
byte 1 115
byte 1 105
byte 1 99
byte 1 115
byte 1 32
byte 1 123
byte 1 0
align 1
LABELV $213
byte 1 118
byte 1 101
byte 1 104
byte 1 105
byte 1 99
byte 1 108
byte 1 101
byte 1 32
byte 1 37
byte 1 115
byte 1 32
byte 1 123
byte 1 10
byte 1 0
align 1
LABELV $210
byte 1 118
byte 1 101
byte 1 104
byte 1 105
byte 1 99
byte 1 108
byte 1 101
byte 1 32
byte 1 0
align 1
LABELV $203
byte 1 109
byte 1 111
byte 1 118
byte 1 101
byte 1 115
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 50
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $198
byte 1 109
byte 1 111
byte 1 118
byte 1 101
byte 1 115
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 49
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $195
byte 1 115
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 32
byte 1 123
byte 1 10
byte 1 0
align 1
LABELV $183
byte 1 98
byte 1 97
byte 1 115
byte 1 101
byte 1 115
byte 1 104
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $182
byte 1 98
byte 1 97
byte 1 115
byte 1 101
byte 1 115
byte 1 104
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $175
byte 1 110
byte 1 111
byte 1 110
byte 1 101
byte 1 0
align 1
LABELV $170
byte 1 114
byte 1 101
byte 1 103
byte 1 105
byte 1 115
byte 1 116
byte 1 101
byte 1 114
byte 1 105
byte 1 110
byte 1 103
byte 1 32
byte 1 115
byte 1 104
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 58
byte 1 32
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $169
byte 1 116
byte 1 117
byte 1 114
byte 1 114
byte 1 101
byte 1 116
byte 1 115
byte 1 104
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $168
byte 1 116
byte 1 117
byte 1 114
byte 1 114
byte 1 101
byte 1 116
byte 1 115
byte 1 104
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $162
byte 1 98
byte 1 97
byte 1 115
byte 1 101
byte 1 109
byte 1 111
byte 1 100
byte 1 101
byte 1 108
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $161
byte 1 98
byte 1 97
byte 1 115
byte 1 101
byte 1 109
byte 1 111
byte 1 100
byte 1 101
byte 1 108
byte 1 0
align 1
LABELV $156
byte 1 114
byte 1 101
byte 1 103
byte 1 105
byte 1 115
byte 1 116
byte 1 101
byte 1 114
byte 1 105
byte 1 110
byte 1 103
byte 1 32
byte 1 109
byte 1 111
byte 1 100
byte 1 101
byte 1 108
byte 1 58
byte 1 32
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $155
byte 1 116
byte 1 117
byte 1 114
byte 1 114
byte 1 101
byte 1 116
byte 1 109
byte 1 111
byte 1 100
byte 1 101
byte 1 108
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $154
byte 1 116
byte 1 117
byte 1 114
byte 1 114
byte 1 101
byte 1 116
byte 1 109
byte 1 111
byte 1 100
byte 1 101
byte 1 108
byte 1 0
align 1
LABELV $151
byte 1 100
byte 1 105
byte 1 115
byte 1 112
byte 1 108
byte 1 97
byte 1 121
byte 1 32
byte 1 123
byte 1 10
byte 1 0
