code
proc combat_strstr 8 0
file "../g_vehicles_parser.c"
line 6
;1:#include "g_local.h"
;2:#include "g_vehicles_parser.h"
;3:
;4:// adnan
;5:// replaced with my own
;6:static char *combat_strstr( const char *string, const char *substring ) {
ADDRGP4 $91
JUMPV
LABELV $90
line 8
;7:   //if(string && substring) {
;8:      while ( *string ) {
line 14
;9:      //while ( string ) {
;10:		   int		i;
;11:
;12:         //printf("strstr: %s\n", string);
;13:
;14:		   for ( i = 0 ; substring[i] ; i++ ) {
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $96
JUMPV
LABELV $93
line 15
;15:			   if ( string[i] != substring[i] ) {
ADDRLP4 0
INDIRI4
ADDRFP4 0
INDIRP4
ADDP4
INDIRI1
CVII4 1
ADDRLP4 0
INDIRI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI1
CVII4 1
EQI4 $97
line 16
;16:				   break;
ADDRGP4 $95
JUMPV
LABELV $97
line 18
;17:			   }
;18:		   }
LABELV $94
line 14
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $96
ADDRLP4 0
INDIRI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI1
CVII4 1
CNSTI4 0
NEI4 $93
LABELV $95
line 21
;19:   		
;20:         //if ( !substring[i] ) {
;21:         if ( substring[i] == '\0' ) {
ADDRLP4 0
INDIRI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI1
CVII4 1
CNSTI4 0
NEI4 $99
line 22
;22:			   return (char *)string;
ADDRFP4 0
INDIRP4
RETP4
ADDRGP4 $89
JUMPV
LABELV $99
line 24
;23:		   }
;24:		   string++;
ADDRFP4 0
ADDRFP4 0
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
line 25
;25:	   }
LABELV $91
line 8
ADDRFP4 0
INDIRP4
INDIRI1
CVII4 1
CNSTI4 0
NEI4 $90
line 27
;26:   //}
;27:	return (char *)0;
CNSTP4 0
RETP4
LABELV $89
endproc combat_strstr 8 0
proc parser_clear_string 4 0
line 30
;28:}
;29:
;30:static void parser_clear_string(char *string, int length) {
line 31
;31:   int i = 0;
ADDRLP4 0
CNSTI4 0
ASGNI4
line 32
;32:   for(i; i < length; i++) {
ADDRGP4 $105
JUMPV
LABELV $102
line 33
;33:      string[i] = '\0';
ADDRLP4 0
INDIRI4
ADDRFP4 0
INDIRP4
ADDP4
CNSTI1 0
ASGNI1
line 34
;34:   }
LABELV $103
line 32
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $105
ADDRLP4 0
INDIRI4
ADDRFP4 4
INDIRI4
LTI4 $102
line 35
;35:}
LABELV $101
endproc parser_clear_string 4 0
export Parser_ParseStats
proc Parser_ParseStats 32 12
line 37
;36:
;37:char *Parser_ParseStats(char *ptr, int *vehiclenum) {
line 38
;38:   int success = -1, i;
ADDRLP4 4
CNSTI4 -1
ASGNI4
line 41
;39:   
;40:   char *new_ptr;
;41:   int health = -1, armor = -1;
ADDRLP4 8
CNSTI4 -1
ASGNI4
ADDRLP4 12
CNSTI4 -1
ASGNI4
line 43
;42:
;43:   new_ptr = ptr;
ADDRLP4 0
ADDRFP4 0
INDIRP4
ASGNP4
line 46
;44:
;45:   //new_ptr = combat_strstr(new_ptr, "stats {\n");
;46:   new_ptr = strstr(new_ptr, "stats {\n");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $107
ARGP4
ADDRLP4 20
ADDRGP4 strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 20
INDIRP4
ASGNP4
line 49
;47:
;48:   // if we found the "weapons #" substring
;49:   if(new_ptr) {
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $108
line 52
;50:      //printf("        starting weapons for vehicle... \n");
;51:      
;52:      success = sscanf(new_ptr, "health %d\n", &health);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $110
ARGP4
ADDRLP4 8
ARGP4
ADDRLP4 24
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 24
INDIRI4
ASGNI4
line 53
;53:      if(success)
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $111
line 54
;54:         g_vehicleTemplates[*vehiclenum].vehicleInfo.vehicleStats.health = health;
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 g_vehicleTemplates+12+20
ADDP4
ADDRLP4 8
INDIRI4
CVIU4 4
CVUU1 4
ASGNU1
LABELV $111
line 56
;55:
;56:      success = sscanf(new_ptr, "armor %d\n", &armor);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $115
ARGP4
ADDRLP4 12
ARGP4
ADDRLP4 28
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 28
INDIRI4
ASGNI4
line 57
;57:      if(success)
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $116
line 58
;58:         g_vehicleTemplates[*vehiclenum].vehicleInfo.vehicleStats.armor = armor;
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 g_vehicleTemplates+12+20+1
ADDP4
ADDRLP4 12
INDIRI4
CVIU4 4
CVUU1 4
ASGNU1
LABELV $116
line 60
;59:
;60:      return new_ptr;
ADDRLP4 0
INDIRP4
RETP4
ADDRGP4 $106
JUMPV
LABELV $108
line 62
;61:   }
;62:   return ptr;
ADDRFP4 0
INDIRP4
RETP4
LABELV $106
endproc Parser_ParseStats 32 12
export Parser_ParseWeapon
proc Parser_ParseWeapon 52 16
line 65
;63:}
;64:
;65:char *Parser_ParseWeapon(char *ptr, int *weaponnum, int *vehiclenum) {
line 66
;66:   int success = -1;
ADDRLP4 4
CNSTI4 -1
ASGNI4
line 72
;67:   char *new_ptr;
;68:
;69:   char weapon_name[16];
;70:   int weapon_ammo;
;71:   
;72:   new_ptr = ptr;
ADDRLP4 0
ADDRFP4 0
INDIRP4
ASGNP4
line 76
;73:
;74:   //printf("          attempting to get the weapon...\n");
;75:   //new_ptr = combat_strstr(new_ptr, "weapon ");
;76:   new_ptr = strstr(new_ptr, "weapon ");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $122
ARGP4
ADDRLP4 28
ADDRGP4 strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 28
INDIRP4
ASGNP4
line 78
;77:
;78:   if(new_ptr) {
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $123
line 79
;79:      parser_clear_string(weapon_name, 16);
ADDRLP4 8
ARGP4
CNSTI4 16
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 80
;80:      success = sscanf(new_ptr, "weapon %s %d\n", weapon_name, &weapon_ammo);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $125
ARGP4
ADDRLP4 8
ARGP4
ADDRLP4 24
ARGP4
ADDRLP4 32
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 32
INDIRI4
ASGNI4
line 82
;81:      
;82:      if(success) {
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $126
line 86
;83:         //printf("          weapon %d: weapon_name: %s, weapon_ammo: %d\n", *weaponnum, weapon_name, weapon_ammo);
;84:         
;85:         // fill up the structs
;86:         g_vehicleTemplates[*vehiclenum].vehicleInfo.weaponInfo.weapons |= VehicleInfo_GetBitForWeapon(weapon_name);
ADDRLP4 8
ARGP4
ADDRLP4 36
ADDRGP4 VehicleInfo_GetBitForWeapon
CALLI4
ASGNI4
ADDRLP4 40
CNSTI4 80
ADDRFP4 8
INDIRP4
INDIRI4
MULI4
ADDRGP4 g_vehicleTemplates+12+24
ADDP4
ASGNP4
ADDRLP4 40
INDIRP4
ADDRLP4 40
INDIRP4
INDIRI4
ADDRLP4 36
INDIRI4
BORI4
ASGNI4
line 87
;87:         g_vehicleTemplates[*vehiclenum].vehicleInfo.weaponInfo.ammo[VehicleInfo_GetIndexForWeapon(VehicleInfo_GetBitForWeapon(weapon_name))] = weapon_ammo;
ADDRLP4 8
ARGP4
ADDRLP4 44
ADDRGP4 VehicleInfo_GetBitForWeapon
CALLI4
ASGNI4
ADDRLP4 44
INDIRI4
ARGI4
ADDRLP4 48
ADDRGP4 VehicleInfo_GetIndexForWeapon
CALLI4
ASGNI4
ADDRLP4 48
INDIRI4
CNSTI4 80
ADDRFP4 8
INDIRP4
INDIRI4
MULI4
ADDRGP4 g_vehicleTemplates+12+24+4
ADDP4
ADDP4
ADDRLP4 24
INDIRI4
CVII1 4
ASGNI1
line 89
;88:         
;89:         return new_ptr;
ADDRLP4 0
INDIRP4
RETP4
ADDRGP4 $121
JUMPV
LABELV $126
line 91
;90:      }
;91:   }
LABELV $123
line 93
;92:   
;93:   return ptr;
ADDRFP4 0
INDIRP4
RETP4
LABELV $121
endproc Parser_ParseWeapon 52 16
export Parser_ParseWeapons
proc Parser_ParseWeapons 28 12
line 96
;94:}
;95:
;96:char *Parser_ParseWeapons(char *ptr, int *vehiclenum) {
line 97
;97:   int success = -1, i;
ADDRLP4 12
CNSTI4 -1
ASGNI4
line 100
;98:   
;99:   char *new_ptr;
;100:   int weapons = -1;
ADDRLP4 8
CNSTI4 -1
ASGNI4
line 102
;101:
;102:   new_ptr = ptr;
ADDRLP4 0
ADDRFP4 0
INDIRP4
ASGNP4
line 105
;103:
;104:   //new_ptr = combat_strstr(new_ptr, "weapons ");
;105:   new_ptr = strstr(new_ptr, "weapons ");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $134
ARGP4
ADDRLP4 16
ADDRGP4 strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 16
INDIRP4
ASGNP4
line 108
;106:
;107:   // if we found the "weapons #" substring
;108:   if(new_ptr) {
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $135
line 112
;109:      //printf("        starting weapons for vehicle... \n");
;110:      
;111:      // read the number of classes from the current "weapons #" substring
;112:      success = sscanf(new_ptr, "weapons %d {\n", &weapons);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $137
ARGP4
ADDRLP4 8
ARGP4
ADDRLP4 20
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 12
ADDRLP4 20
INDIRI4
ASGNI4
line 115
;113:
;114:      // if we read the number of weapons successfully
;115:      if(success) {
ADDRLP4 12
INDIRI4
CNSTI4 0
EQI4 $138
line 119
;116:         // parse items
;117:         //printf("        weapons %d {\n", weapons);
;118:         
;119:         for(i = 0; i < weapons; i++) {
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $143
JUMPV
LABELV $140
line 120
;120:            new_ptr = Parser_ParseWeapon(new_ptr, &i, vehiclenum);
ADDRLP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRLP4 24
ADDRGP4 Parser_ParseWeapon
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 24
INDIRP4
ASGNP4
line 124
;121:            
;122:            // force it to the next line...
;123:            // should fix this...
;124:            new_ptr++;
ADDRLP4 0
ADDRLP4 0
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
line 125
;125:         }
LABELV $141
line 119
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $143
ADDRLP4 4
INDIRI4
ADDRLP4 8
INDIRI4
LTI4 $140
line 129
;126:         
;127:         //printf("        }\n");
;128:
;129:         return new_ptr;
ADDRLP4 0
INDIRP4
RETP4
ADDRGP4 $133
JUMPV
LABELV $138
line 131
;130:      }
;131:   }
LABELV $135
line 132
;132:   return ptr;
ADDRFP4 0
INDIRP4
RETP4
LABELV $133
endproc Parser_ParseWeapons 28 12
export Parser_ParsePhysics
proc Parser_ParsePhysics 64 12
line 135
;133:}
;134:
;135:char *Parser_ParsePhysics(char *ptr, int *vehiclenum) {
line 136
;136:   int success = -1, i;
ADDRLP4 4
CNSTI4 -1
ASGNI4
line 140
;137:   
;138:   char *new_ptr;
;139:
;140:   new_ptr = ptr;
ADDRLP4 0
ADDRFP4 0
INDIRP4
ASGNP4
line 143
;141:
;142:   //new_ptr = combat_strstr(new_ptr, "physics {\n");
;143:   new_ptr = strstr(new_ptr, "physics {\n");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $145
ARGP4
ADDRLP4 12
ADDRGP4 strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 12
INDIRP4
ASGNP4
line 145
;144:
;145:   if(new_ptr) {
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $146
line 147
;146:      char type[16];
;147:      int width = -1, height = -1, maxspeed = -1;
ADDRLP4 16
CNSTI4 -1
ASGNI4
ADDRLP4 20
CNSTI4 -1
ASGNI4
ADDRLP4 24
CNSTI4 -1
ASGNI4
line 149
;148:
;149:      parser_clear_string(type, 16);
ADDRLP4 28
ARGP4
CNSTI4 16
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 151
;150:
;151:      success = sscanf(new_ptr, "type %s\n", &type);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $148
ARGP4
ADDRLP4 28
ARGP4
ADDRLP4 44
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 44
INDIRI4
ASGNI4
line 152
;152:      if(success)
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $149
line 153
;153:         g_vehicleTemplates[*vehiclenum].vehicleInfo.physicsInfo.movementType = VehicleInfo_GetBitForMovementType(type);
ADDRLP4 28
ARGP4
ADDRLP4 48
ADDRGP4 VehicleInfo_GetBitForMovementType
CALLI4
ASGNI4
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 g_vehicleTemplates+12+60
ADDP4
ADDRLP4 48
INDIRI4
CVIU4 4
CVUU1 4
ASGNU1
LABELV $149
line 155
;154:
;155:      success = sscanf(new_ptr, "width %s\n", &width);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $153
ARGP4
ADDRLP4 16
ARGP4
ADDRLP4 52
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 52
INDIRI4
ASGNI4
line 156
;156:      if(success)
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $154
line 157
;157:         g_vehicleTemplates[*vehiclenum].vehicleInfo.physicsInfo.width = width;
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 g_vehicleTemplates+12+60+1
ADDP4
ADDRLP4 16
INDIRI4
CVIU4 4
CVUU1 4
ASGNU1
LABELV $154
line 159
;158:
;159:      success = sscanf(new_ptr, "height %s\n", &height);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $159
ARGP4
ADDRLP4 20
ARGP4
ADDRLP4 56
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 56
INDIRI4
ASGNI4
line 160
;160:      if(success)
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $160
line 161
;161:         g_vehicleTemplates[*vehiclenum].vehicleInfo.physicsInfo.height = height;
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 g_vehicleTemplates+12+60+2
ADDP4
ADDRLP4 20
INDIRI4
CVIU4 4
CVUU1 4
ASGNU1
LABELV $160
line 163
;162:
;163:      success = sscanf(new_ptr, "maxspeed %s\n", &maxspeed);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $165
ARGP4
ADDRLP4 24
ARGP4
ADDRLP4 60
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 60
INDIRI4
ASGNI4
line 164
;164:      if(success)
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $166
line 165
;165:         g_vehicleTemplates[*vehiclenum].vehicleInfo.physicsInfo.maxSpeed = maxspeed;
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 g_vehicleTemplates+12+60+4
ADDP4
ADDRLP4 24
INDIRI4
ASGNI4
LABELV $166
line 167
;166:
;167:      return new_ptr;
ADDRLP4 0
INDIRP4
RETP4
ADDRGP4 $144
JUMPV
LABELV $146
line 169
;168:   }
;169:   return ptr;
ADDRFP4 0
INDIRP4
RETP4
LABELV $144
endproc Parser_ParsePhysics 64 12
export Parser_ParseVehicle
proc Parser_ParseVehicle 72 12
line 172
;170:}
;171:
;172:char *Parser_ParseVehicle(char *ptr, int *vehiclenum) {
line 174
;173:   char *new_ptr;
;174:   int success = -1;
ADDRLP4 4
CNSTI4 -1
ASGNI4
line 177
;175:   char vehiclename[16];
;176:
;177:   new_ptr = ptr;
ADDRLP4 0
ADDRFP4 0
INDIRP4
ASGNP4
line 178
;178:   new_ptr = strstr(new_ptr, "vehicle ");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 24
ADDRGP4 strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 24
INDIRP4
ASGNP4
line 181
;179:      
;180:   // if the "vehicle #" substring exists...
;181:   if(new_ptr) {
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $173
line 182
;182:      g_vehicleTemplates[*vehiclenum].templateNum = *vehiclenum;
ADDRLP4 28
ADDRFP4 4
INDIRP4
INDIRI4
ASGNI4
CNSTI4 80
ADDRLP4 28
INDIRI4
MULI4
ADDRGP4 g_vehicleTemplates+8
ADDP4
ADDRLP4 28
INDIRI4
ASGNI4
line 184
;183:
;184:      parser_clear_string(vehiclename, 16);
ADDRLP4 8
ARGP4
CNSTI4 16
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 186
;185:      // scan the vehicle # from the "vehicle #" substring
;186:      success = sscanf(new_ptr, "vehicle %s {\n", vehiclename);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $176
ARGP4
ADDRLP4 8
ARGP4
ADDRLP4 32
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 32
INDIRI4
ASGNI4
line 189
;187:            
;188:      // process current vehicle
;189:      if(success) {
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $177
line 191
;190:         char vehicletype[16];
;191:         parser_clear_string(vehicletype, 16);
ADDRLP4 36
ARGP4
CNSTI4 16
ARGI4
ADDRGP4 parser_clear_string
CALLV
pop
line 197
;192:
;193:         //printf("      vehiclename %d: vehiclename name: %s {\n", *vehiclenum, vehiclename);
;194:         
;195:         // fill the structs
;196:
;197:         strcpy(g_vehicleTemplates[*vehiclenum].vehicleInfo.vehicleName, vehiclename);
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 g_vehicleTemplates+12+4
ADDP4
ARGP4
ADDRLP4 8
ARGP4
ADDRGP4 strcpy
CALLP4
pop
line 200
;198:
;199:         // scan the type
;200:         success = sscanf(new_ptr, "type %s {\n", vehicletype);
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $181
ARGP4
ADDRLP4 36
ARGP4
ADDRLP4 52
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 52
INDIRI4
ASGNI4
line 201
;201:         g_vehicleTemplates[*vehiclenum].vehicleInfo.vehicleType = VehicleInfo_GetBitForVehicleType(vehicletype);
ADDRLP4 36
ARGP4
ADDRLP4 56
ADDRGP4 VehicleInfo_GetBitForVehicleType
CALLI4
ASGNI4
CNSTI4 80
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRGP4 g_vehicleTemplates+12
ADDP4
ADDRLP4 56
INDIRI4
ASGNI4
line 203
;202:         
;203:         new_ptr = Parser_ParseStats(new_ptr, vehiclenum);
ADDRLP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRLP4 60
ADDRGP4 Parser_ParseStats
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 60
INDIRP4
ASGNP4
line 204
;204:         new_ptr = Parser_ParseWeapons(new_ptr, vehiclenum);
ADDRLP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRLP4 64
ADDRGP4 Parser_ParseWeapons
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 64
INDIRP4
ASGNP4
line 208
;205:         // display and sound should be done on client side...
;206:         //new_ptr = Parser_ParseDisplay(new_ptr, vehiclenum);
;207:         //new_ptr = Parser_ParseSound(new_ptr, vehiclenum);
;208:         new_ptr = Parser_ParsePhysics(new_ptr, vehiclenum);
ADDRLP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRLP4 68
ADDRGP4 Parser_ParsePhysics
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 68
INDIRP4
ASGNP4
line 211
;209:
;210:         //printf("      }\n");
;211:         return new_ptr;
ADDRLP4 0
INDIRP4
RETP4
ADDRGP4 $171
JUMPV
LABELV $177
line 213
;212:      }
;213:   }
LABELV $173
line 215
;214:
;215:   return ptr;
ADDRFP4 0
INDIRP4
RETP4
LABELV $171
endproc Parser_ParseVehicle 72 12
export Parser_ParseVehicles
proc Parser_ParseVehicles 28 12
line 218
;216:}
;217:
;218:char *Parser_ParseVehicles(char *ptr) {
line 219
;219:   int success = -1, i;
ADDRLP4 12
CNSTI4 -1
ASGNI4
line 222
;220:   
;221:   char *new_ptr;
;222:   int vehicles = -1;
ADDRLP4 8
CNSTI4 -1
ASGNI4
line 224
;223:   
;224:   new_ptr = ptr;
ADDRLP4 0
ADDRFP4 0
INDIRP4
ASGNP4
line 226
;225:
;226:   new_ptr = strstr(new_ptr, "vehicles");
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $184
ARGP4
ADDRLP4 16
ADDRGP4 strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 16
INDIRP4
ASGNP4
line 229
;227:
;228:   // if the "vehicles #" substring exists, being processing vehicles
;229:   if(new_ptr) {
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $185
line 232
;230:
;231:      // read the number of vehicles to expect
;232:      success = sscanf(ptr, "vehicles %d {\n", &vehicles);
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $187
ARGP4
ADDRLP4 8
ARGP4
ADDRLP4 20
ADDRGP4 sscanf
CALLI4
ASGNI4
ADDRLP4 12
ADDRLP4 20
INDIRI4
ASGNI4
line 235
;233:      
;234:      // if the number of vehicles exists and we read it properly
;235:      if(success) {
ADDRLP4 12
INDIRI4
CNSTI4 0
EQI4 $188
line 239
;236:         //printf("vehicles %d {\n", vehicles);
;237:         
;238:         // process each level individually
;239:         for(i = 0; i < vehicles; i++) {
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $193
JUMPV
LABELV $190
line 240
;240:            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 241
;241:         }
LABELV $191
line 239
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $193
ADDRLP4 4
INDIRI4
ADDRLP4 8
INDIRI4
LTI4 $190
line 244
;242:         //printf("}\n");
;243:
;244:         return new_ptr;
ADDRLP4 0
INDIRP4
RETP4
ADDRGP4 $183
JUMPV
LABELV $188
line 246
;245:      }
;246:   }
LABELV $185
line 247
;247:   return ptr;
ADDRFP4 0
INDIRP4
RETP4
LABELV $183
endproc Parser_ParseVehicles 28 12
export Parser_ParseVehicleInfo
proc Parser_ParseVehicleInfo 10024 12
line 250
;248:}
;249:
;250:int Parser_ParseVehicleInfo(char *filename) {
line 253
;251:   int success;
;252:
;253:   int file_size = 0;
ADDRLP4 0
CNSTI4 0
ASGNI4
line 259
;254:   fileHandle_t script_file;
;255:
;256:   //char *filename = "./scripts/test.classinfo.small";
;257:
;258:   // get the file length, reset the file pointer, and allocate a buffer
;259:   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 262
;260:
;261:   // begin parsing
;262:   if(file_size > 0) {
ADDRLP4 0
INDIRI4
CNSTI4 0
LEI4 $195
line 263
;263:      char *ptr = 0;
ADDRLP4 16
CNSTP4 0
ASGNP4
line 273
;264:      char buffer[10000];
;265:      
;266:      //fseek(script_file, 0L, 0);
;267:      //buffer = malloc(sizeof(char) * file_size + 1);
;268:      //buffer = G_Alloc(sizeof(char) * file_size + 1);
;269:
;270:      //printf("file_size: %d\n", file_size);
;271:
;272:      // read in the file to the buffer and terminate the buffer
;273:      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 274
;274:      buffer[sizeof(char) * file_size] = '\0';
CNSTU4 1
ADDRLP4 0
INDIRI4
CVIU4 4
MULU4
ADDRLP4 20
ADDP4
CNSTI1 0
ASGNI1
line 279
;275:
;276:      //Com_Printf("%d\n%s\n", file_size, buffer);
;277:      
;278:      // start at the beginning of the buffer
;279:      ptr = buffer;
ADDRLP4 16
ADDRLP4 20
ASGNP4
line 282
;280:
;281:      // and awaaaayyyyy we go!
;282:      ptr = Parser_ParseVehicles(ptr);
ADDRLP4 16
INDIRP4
ARGP4
ADDRLP4 10020
ADDRGP4 Parser_ParseVehicles
CALLP4
ASGNP4
ADDRLP4 16
ADDRLP4 10020
INDIRP4
ASGNP4
line 284
;283:
;284:      trap_FS_FCloseFile(script_file);
ADDRLP4 4
INDIRI4
ARGI4
ADDRGP4 trap_FS_FCloseFile
CALLV
pop
line 291
;285:      //getch();
;286:
;287:      //if(buffer)
;288:      //   free(buffer);
;289:      //BG_TempFree(sizeof(char) * file_size + 1);
;290:
;291:      return 1;
CNSTI4 1
RETI4
ADDRGP4 $194
JUMPV
LABELV $195
line 294
;292:   }
;293:
;294:   return 0;
CNSTI4 0
RETI4
LABELV $194
endproc Parser_ParseVehicleInfo 10024 12
import Parser_ParseStat
import trap_ROFF_Purge_Ent
import trap_ROFF_Play
import trap_ROFF_Cache
import trap_ROFF_UpdateEntities
import trap_ROFF_Clean
import trap_SP_GetStringTextString
import trap_SP_Register
import trap_SP_RegisterServer
import trap_SnapVector
import trap_GeneticParentsAndChildSelection
import trap_BotResetWeaponState
import trap_BotFreeWeaponState
import trap_BotAllocWeaponState
import trap_BotLoadWeaponWeights
import trap_BotGetWeaponInfo
import trap_BotChooseBestFightWeapon
import trap_BotAddAvoidSpot
import trap_BotInitMoveState
import trap_BotFreeMoveState
import trap_BotAllocMoveState
import trap_BotPredictVisiblePosition
import trap_BotMovementViewTarget
import trap_BotReachabilityArea
import trap_BotResetLastAvoidReach
import trap_BotResetAvoidReach
import trap_BotMoveInDirection
import trap_BotMoveToGoal
import trap_BotResetMoveState
import trap_BotFreeGoalState
import trap_BotAllocGoalState
import trap_BotMutateGoalFuzzyLogic
import trap_BotSaveGoalFuzzyLogic
import trap_BotInterbreedGoalFuzzyLogic
import trap_BotFreeItemWeights
import trap_BotLoadItemWeights
import trap_BotUpdateEntityItems
import trap_BotInitLevelItems
import trap_BotSetAvoidGoalTime
import trap_BotAvoidGoalTime
import trap_BotGetLevelItemGoal
import trap_BotGetMapLocationGoal
import trap_BotGetNextCampSpotGoal
import trap_BotItemGoalInVisButNotVisible
import trap_BotTouchingGoal
import trap_BotChooseNBGItem
import trap_BotChooseLTGItem
import trap_BotGetSecondGoal
import trap_BotGetTopGoal
import trap_BotGoalName
import trap_BotDumpGoalStack
import trap_BotDumpAvoidGoals
import trap_BotEmptyGoalStack
import trap_BotPopGoal
import trap_BotPushGoal
import trap_BotResetAvoidGoals
import trap_BotRemoveFromAvoidGoals
import trap_BotResetGoalState
import trap_BotSetChatName
import trap_BotSetChatGender
import trap_BotLoadChatFile
import trap_BotReplaceSynonyms
import trap_UnifyWhiteSpaces
import trap_BotMatchVariable
import trap_BotFindMatch
import trap_StringContains
import trap_BotGetChatMessage
import trap_BotEnterChat
import trap_BotChatLength
import trap_BotReplyChat
import trap_BotNumInitialChats
import trap_BotInitialChat
import trap_BotNumConsoleMessages
import trap_BotNextConsoleMessage
import trap_BotRemoveConsoleMessage
import trap_BotQueueConsoleMessage
import trap_BotFreeChatState
import trap_BotAllocChatState
import trap_Characteristic_String
import trap_Characteristic_BInteger
import trap_Characteristic_Integer
import trap_Characteristic_BFloat
import trap_Characteristic_Float
import trap_BotFreeCharacter
import trap_BotLoadCharacter
import trap_EA_ResetInput
import trap_EA_GetInput
import trap_EA_EndRegular
import trap_EA_ForcePower
import trap_EA_Alt_Attack
import trap_EA_View
import trap_EA_Move
import trap_EA_DelayedJump
import trap_EA_Jump
import trap_EA_SelectWeapon
import trap_EA_MoveRight
import trap_EA_MoveLeft
import trap_EA_MoveBack
import trap_EA_MoveForward
import trap_EA_MoveDown
import trap_EA_MoveUp
import trap_EA_Crouch
import trap_EA_Respawn
import trap_EA_Use
import trap_EA_Attack
import trap_EA_Talk
import trap_EA_Gesture
import trap_EA_Action
import trap_EA_Command
import trap_EA_SayTeam
import trap_EA_Say
import trap_AAS_PredictClientMovement
import trap_AAS_Swimming
import trap_AAS_AlternativeRouteGoals
import trap_AAS_PredictRoute
import trap_AAS_EnableRoutingArea
import trap_AAS_AreaTravelTimeToGoalArea
import trap_AAS_AreaReachability
import trap_AAS_IntForBSPEpairKey
import trap_AAS_FloatForBSPEpairKey
import trap_AAS_VectorForBSPEpairKey
import trap_AAS_ValueForBSPEpairKey
import trap_AAS_NextBSPEntity
import trap_AAS_PointContents
import trap_AAS_TraceAreas
import trap_AAS_PointReachabilityAreaIndex
import trap_AAS_PointAreaNum
import trap_AAS_Time
import trap_AAS_PresenceTypeBoundingBox
import trap_AAS_Initialized
import trap_AAS_EntityInfo
import trap_AAS_AreaInfo
import trap_AAS_BBoxAreas
import trap_BotUserCommand
import trap_BotGetServerCommand
import trap_BotGetSnapshotEntity
import trap_BotLibTest
import trap_BotLibUpdateEntity
import trap_BotLibLoadMap
import trap_BotLibStartFrame
import trap_BotLibDefine
import trap_BotLibVarGet
import trap_BotLibVarSet
import trap_BotLibShutdown
import trap_BotLibSetup
import trap_DebugPolygonDelete
import trap_DebugPolygonCreate
import trap_GetEntityToken
import trap_GetUsercmd
import trap_BotFreeClient
import trap_BotAllocateClient
import trap_EntityContact
import trap_EntitiesInBox
import trap_UnlinkEntity
import trap_LinkEntity
import trap_AreasConnected
import trap_AdjustAreaPortalState
import trap_InPVSIgnorePortals
import trap_InPVS
import trap_PointContents
import trap_Trace
import trap_SetBrushModel
import trap_GetServerinfo
import trap_SetUserinfo
import trap_GetUserinfo
import trap_GetConfigstring
import trap_SetConfigstring
import trap_SendServerCommand
import trap_DropClient
import trap_LocateGameData
import trap_Cvar_VariableStringBuffer
import trap_Cvar_VariableValue
import trap_Cvar_VariableIntegerValue
import trap_Cvar_Set
import trap_Cvar_Update
import trap_Cvar_Register
import trap_SendConsoleCommand
import trap_FS_GetFileList
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_Milliseconds
import trap_Error
import trap_Printf
import g_austrian
import g_saberDebugPrint
import g_saberDmgDelay_Wound
import g_saberDmgDelay_Idle
import g_saberDmgVelocityScale
import g_timeouttospec
import g_forceDodge
import g_dismember
import g_singlePlayer
import g_enableBreath
import g_enableDust
import g_rankings
import pmove_msec
import pmove_fixed
import g_smoothClients
import g_blueteam
import g_redteam
import g_debugUp
import g_debugRight
import g_debugForward
import g_filterBan
import g_banIPs
import g_teamForceBalance
import g_teamAutoJoin
import g_allowVote
import g_blood
import g_doWarmup
import g_warmup
import g_motd
import g_synchronousClients
import g_adaptRespawn
import g_weaponTeamRespawn
import g_weaponRespawn
import g_debugDamage
import g_debugAlloc
import g_debugMove
import g_inactivity
import g_forcerespawn
import g_quadfactor
import g_knockback
import g_speed
import g_gravity
import g_needpass
import g_password
import g_friendlySaber
import g_friendlyFire
import g_saberInterpolate
import g_capturelimit
import g_timelimit
import g_duel_fraglimit
import g_fraglimit
import g_duelWeaponDisable
import g_fraglimitVoteCorrection
import g_allowDuelSuicide
import g_weaponDisable
import g_forcePowerDisable
import g_spawnInvulnerability
import g_forceRegenTime
import g_saberDamageScale
import g_slowmoDuelEnd
import g_logClientInfo
import g_saberBoxTraceSize
import g_saberAlwaysBoxTrace
import g_saberGhoul2Collision
import g_saberTraceSaberFirst
import g_saberLockFactor
import g_saberLocking
import g_privateDuel
import g_forceBasedTeams
import g_maxForceRank
import g_dmflags
import g_autoMapCycle
import g_trueJedi
import g_restarted
import g_maxGameClients
import g_maxclients
import g_cheats
import g_dedicated
import g_gametype
import g_vehicles
import g_vehicleTemplates
import vehicleId
import VehicleTemplateArray_GetTemplateIndexForName
import VehicleTemplateArray_OutputTemplates
import VehicleTemplateArray_InitVehicleTemplateArray
import VehicleArray_OutputVehicles
import VehicleArray_RemoveVehicleForId
import VehicleArray_AddVehicle
import VehicleArray_SetVehicleForId
import VehicleArray_GetVehicleForId
import VehicleArray_InitVehicleArray
import G_SpawnVehicle
import Touch_Vehicle
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 g_entities
import level
import Pickup_Team
import CheckTeamStatus
import TeamplayInfoMessage
import Team_GetLocationMsg
import Team_GetLocation
import SelectSagaSpawnPoint
import SelectCTFSpawnPoint
import Team_FreeEntity
import Team_ReturnFlag
import Team_InitGame
import Team_CheckHurtCarrier
import Team_FragBonuses
import Team_DroppedFlagThink
import AddTeamScore
import TeamColorString
import OtherTeamName
import TeamName
import OtherTeam
import BotAIStartFrame
import BotAIShutdownClient
import BotAISetupClient
import BotAILoadMap
import BotAIShutdown
import BotAISetup
import B_CleanupAlloc
import B_InitAlloc
import InFieldOfVision
import BotOrder
import OrgVisible
import InitSagaMode
import G_ClearClientLog
import G_LogExit
import G_LogWeaponOutput
import G_LogWeaponInit
import G_LogWeaponItem
import G_LogWeaponPowerup
import G_LogWeaponFrag
import G_LogWeaponDeath
import G_LogWeaponKill
import G_LogWeaponDamage
import G_LogWeaponFire
import G_LogWeaponPickup
import Jedi_DodgeEvasion
import ForceTelepathy
import ForceThrow
import ForceSeeing
import ForceTeamForceReplenish
import ForceTeamHeal
import ForceAbsorb
import ForceProtect
import ForceGrip
import ForceRage
import ForceSpeed
import ForceHeal
import ForcePowerUsableOn
import WP_ForcePowersUpdate
import WP_SpawnInitForcePowers
import WP_InitForcePowers
import WP_SaberInitBladeData
import WP_SaberCanBlock
import WP_SaberPositionUpdate
import WP_ForcePowerStop
import HasSetSaberOnly
import G_PreDefSound
import G_RefreshNextMap
import G_DoesMapSupportGametype
import BotInterbreedEndMatch
import Svcmd_BotList_f
import Svcmd_AddBot_f
import G_BotConnect
import G_RemoveQueuedBotBegin
import G_CheckBotSpawn
import G_GetBotInfoByName
import G_GetBotInfoByNumber
import G_InitBots
import UpdateTournamentInfo
import G_WriteSessionData
import G_InitWorldSession
import G_InitSessionData
import G_ReadSessionData
import Svcmd_GameMem_f
import G_InitMemory
import G_Alloc
import Team_CheckDroppedItem
import OnSameTeam
import G_RunClient
import ClientEndFrame
import ClientThink
import G_CheckClientTimeouts
import ClientCommand
import ClientBegin
import ClientDisconnect
import ClientUserinfoChanged
import ClientConnect
import G_GetStripEdString
import G_Error
import G_Printf
import SendScoreboardMessageToAllClients
import G_LogPrintf
import G_RunThink
import CheckTeamLeader
import SetLeader
import FindIntermissionPoint
import gSlowMoDuelTime
import gDoSlowMoDuel
import g_ff_objectives
import DeathmatchScoreboardMessage
import G_SetStats
import MoveClientToIntermission
import BlowDetpacks
import FireWeapon
import G_FilterPacket
import G_ProcessIPBans
import ConsoleCommand
import gJMSaberEnt
import SpotWouldTelefrag
import CalculateRanks
import AddScore
import player_die
import ClientSpawn
import InitBodyQue
import BeginIntermission
import respawn
import CopyToBodyQue
import SelectSpawnPoint
import SetClientViewAngle
import PickTeam
import TeamLeader
import TeamCount
import CheckGauntletAttack
import SnapVectorTowards
import CalcMuzzlePoint
import LogAccuracyHit
import WP_FireGenericBlasterMissile
import WP_FireTurretMissile
import G_CreateExampleAnimEnt
import G_PlayerBecomeATST
import ATST_ManageDamageBoxes
import TeleportPlayer
import trigger_teleporter_touch
import Touch_DoorTrigger
import G_RunMover
import WP_FireBlasterMissile
import G_ExplodeMissile
import G_BounceProjectile
import CreateMissile
import G_RunMissile
import G_ReflectMissile
import gGAvoidDismember
import G_CheckForDismemberment
import ExplodeDeath
import TossClientCubes
import TossClientItems
import TossClientWeapon
import body_die
import G_RadiusDamage
import G_Damage
import CanDamage
import trap_G2API_SetBoneAnim
import trap_G2API_GetGLAName
import trap_G2API_SetBoneAngles
import trap_G2API_CollisionDetect
import trap_G2API_CleanGhoul2Models
import trap_G2API_RemoveGhoul2Model
import trap_G2API_HasGhoul2ModelOnIndex
import trap_G2API_DuplicateGhoul2Instance
import trap_G2API_CopySpecificGhoul2Model
import trap_G2API_CopyGhoul2Instance
import trap_G2API_SetBoltInfo
import trap_G2API_AddBolt
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 G_SkinIndex
import BuildShaderStateConfig
import AddRemap
import G_SetOrigin
import G_AddEvent
import G_AddPredictableEvent
import vtos
import tv
import G_RunObject
import G_TouchSolids
import G_TouchTriggers
import G_EntitiesFree
import G_FreeEntity
import G_KillG2Queue
import G_SendG2KillQueue
import TryUse
import G_EntitySound
import G_SoundAtLoc
import G_Sound
import G_MuteSound
import G_ScreenShake
import G_PlayEffect
import G_TempEntity
import G_Spawn
import G_InitGentity
import G_SetAngles
import G_SetMovedir
import G_UseTargets
import G_PickTarget
import G_RadiusList
import G_Find
import G_KillBox
import G_TeamCommand
import G_EffectIndex
import G_SoundIndex
import G_ModelIndex
import SaveRegisteredItems
import RegisterItem
import ClearRegisteredItems
import Touch_Item
import Add_Ammo
import ArmorIndex
import Think_Weapon
import FinishSpawningItem
import G_SpawnItem
import SetRespawn
import LaunchItem
import Drop_Item
import PrecacheItem
import UseHoldableItem
import RespawnItem
import G_RunItem
import G_CheckTeamItems
import ItemUse_MedPack
import ItemUse_Seeker
import ItemUse_Sentry
import ItemUse_Shield
import ItemUse_Binoculars
import G_GetDuelWinner
import Cmd_EngageDuel_f
import Cmd_ToggleSaber_f
import G_ItemUsable
import Cmd_SaberAttackCycle_f
import Cmd_FollowCycle_f
import SetTeam
import BroadcastTeamChange
import StopFollowing
import Cmd_Score_f
import G_NewString
import G_SpawnEntitiesFromString
import G_SpawnVector
import G_SpawnInt
import G_SpawnFloat
import G_SpawnString
import gEscapeTime
import gEscaping
import g2SaberInstance
import precachedKyle
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 $187
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 $184
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 $181
byte 1 116
byte 1 121
byte 1 112
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 $176
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 $172
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 $165
byte 1 109
byte 1 97
byte 1 120
byte 1 115
byte 1 112
byte 1 101
byte 1 101
byte 1 100
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $159
byte 1 104
byte 1 101
byte 1 105
byte 1 103
byte 1 104
byte 1 116
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $153
byte 1 119
byte 1 105
byte 1 100
byte 1 116
byte 1 104
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $148
byte 1 116
byte 1 121
byte 1 112
byte 1 101
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $145
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 10
byte 1 0
align 1
LABELV $137
byte 1 119
byte 1 101
byte 1 97
byte 1 112
byte 1 111
byte 1 110
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 $134
byte 1 119
byte 1 101
byte 1 97
byte 1 112
byte 1 111
byte 1 110
byte 1 115
byte 1 32
byte 1 0
align 1
LABELV $125
byte 1 119
byte 1 101
byte 1 97
byte 1 112
byte 1 111
byte 1 110
byte 1 32
byte 1 37
byte 1 115
byte 1 32
byte 1 37
byte 1 100
byte 1 10
byte 1 0
align 1
LABELV $122
byte 1 119
byte 1 101
byte 1 97
byte 1 112
byte 1 111
byte 1 110
byte 1 32
byte 1 0
align 1
LABELV $115
byte 1 97
byte 1 114
byte 1 109
byte 1 111
byte 1 114
byte 1 32
byte 1 37
byte 1 100
byte 1 10
byte 1 0
align 1
LABELV $110
byte 1 104
byte 1 101
byte 1 97
byte 1 108
byte 1 116
byte 1 104
byte 1 32
byte 1 37
byte 1 100
byte 1 10
byte 1 0
align 1
LABELV $107
byte 1 115
byte 1 116
byte 1 97
byte 1 116
byte 1 115
byte 1 32
byte 1 123
byte 1 10
byte 1 0
