| 541 | |
| 542 | |
| 543 | static void LoadWeaponsModels( |
| 544 | const Vfs& vfs, |
| 545 | GameResources& game_resources ) |
| 546 | { |
| 547 | game_resources.weapons_models.resize( game_resources.weapons_description.size() ); |
| 548 | |
| 549 | Vfs::FileContent file_content; |
| 550 | Vfs::FileContent animation_file_content[2u]; |
| 551 | |
| 552 | for( unsigned int i= 0u; i < game_resources.weapons_models.size(); i++ ) |
| 553 | { |
| 554 | const GameResources::WeaponDescription& weapon_description= game_resources.weapons_description[i]; |
| 555 | |
| 556 | char model_file_path[ GameResources::c_max_file_path_size ]= "MODELS/"; |
| 557 | char animation_file_path[ GameResources::c_max_file_path_size ]= "ANI/WEAPON/"; |
| 558 | char reloading_animation_file_path[ GameResources::c_max_file_path_size ]= "ANI/WEAPON/"; |
| 559 | |
| 560 | std::strcat( model_file_path, weapon_description.model_file_name ); |
| 561 | std::strcat( animation_file_path, weapon_description.animation_file_name ); |
| 562 | std::strcat( reloading_animation_file_path, weapon_description.reloading_animation_file_name ); |
| 563 | |
| 564 | vfs.ReadFile( model_file_path, file_content ); |
| 565 | vfs.ReadFile( animation_file_path, animation_file_content[0] ); |
| 566 | vfs.ReadFile( reloading_animation_file_path, animation_file_content[1] ); |
| 567 | |
| 568 | LoadModel_o3( file_content, animation_file_content, 2u, game_resources.weapons_models[i] ); |
| 569 | } |
| 570 | } |
| 571 | |
| 572 | static void LoadRocketsModels( |
| 573 | const Vfs& vfs, |
no test coverage detected