- Timestamp:
- Nov 2, 2006, 4:34:52 PM (18 years ago)
- Location:
- branches/network/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/graphics/importer/md2/md2Model.cc
r9869 r9912 452 452 this->loadModel(modelFileName); 453 453 this->loadSkin(skinFileName); 454 455 PRINTF(0)("model %s, skin %s\n", modelFileName.c_str(), skinFileName.c_str()); 454 456 } 455 457 -
branches/network/src/lib/graphics/importer/md2/resource_md2.cc
r9869 r9912 10 10 { 11 11 Resources::StorePointer* ptr = this->acquireResource(loadString(modelName, skinName, scale)); 12 12 13 13 if (ptr) 14 14 { … … 20 20 PRINTF(0)("NOT FOUND MD2: %s\n", modelName.c_str()); 21 21 std::string modelFileName = this->Resource::locateFile(modelName); 22 //std::string skinFileName = this->Resource::locateFile(skinName); 22 std::string skinFileName = this->Resource::locateFile(skinName); 23 PRINTF(0)("NEW %s::%s\n", modelName.c_str(), modelFileName.c_str()); 23 24 this->MD2Model::load(modelFileName, skinName, scale); 24 this->Resource::addResource(new ResourceMD2::MD2ResourcePointer(loadString(modelName, skin Name, scale), keepLevel, this->MD2Model::dataPointer()));25 this->Resource::addResource(new ResourceMD2::MD2ResourcePointer(loadString(modelName, skinFileName, scale), keepLevel, this->MD2Model::dataPointer())); 25 26 } 26 27 -
branches/network/src/lib/lang/base_object.cc
r9869 r9912 45 45 for (it = this->_classes.begin(); it != this->_classes.end(); ++it) 46 46 { 47 if (ORX_DEBUG >= 5)47 //if (ORX_DEBUG >= 5) 48 48 assert((*it)._objectList->checkIteratorInList((*it)._iterator) || (*it)._objectList->checkObjectInList(this)); 49 49 (*it)._objectList->unregisterObject((*it)._iterator); -
branches/network/src/lib/network/network_game_manager.cc
r9869 r9912 111 111 playable.loadMD2Texture( playableTexture ); 112 112 playable.setTeam(team); 113 playable.loadModel( playableModel, 100.0f);113 playable.loadModel( playableModel, playableScale ); 114 114 playable.setOwner( userId ); 115 115 playable.setUniqueID( SharedNetworkData::getInstance()->getNewUniqueID() ); -
branches/network/src/util/multiplayer_team_deathmatch.cc
r9911 r9912 306 306 { 307 307 if (classId == CL_TURBINE_HOVER) 308 { 309 assert(false); 308 310 return "models/ships/hoverglider_mainbody.obj"; 311 } 309 312 if ( team == 0 ) 310 313 return "models/creatures/doom_guy.md2"; … … 312 315 return "models/creatures/male.md2"; 313 316 else 317 { 314 318 return ""; 319 } 315 320 } 316 321 317 322 std::string MultiplayerTeamDeathmatch::getPlayableModelTextureFileName( int userId, int team, const ClassID& classId ) 318 323 { 319 if ( classId == CL_FPS_PLAYER)324 if ( team == 0 || team == 1 ) 320 325 { 321 326 if ( team == 0 ) 322 return " maps/doom_guy.png";327 return "doom_guy.png"; 323 328 else 324 return "ma ps/male_fiend.pcx";329 return "male_fiend.pcx"; 325 330 } 326 331 … … 493 498 Playable & playable = *(dynamic_cast<Playable*>(bo)); 494 499 500 PRINTF(0)("%s %s %f\n", playableModel.c_str(), playableTexture.c_str(), playableScale ); 501 495 502 playable.loadMD2Texture( playableTexture ); 496 503 playable.loadModel( playableModel, playableScale );
Note: See TracChangeset
for help on using the changeset viewer.