Changeset 9068 in orxonox.OLD for branches/presentation/src/util/multiplayer_team_deathmatch.cc
- Timestamp:
- Jul 3, 2006, 8:55:53 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/util/multiplayer_team_deathmatch.cc
r9059 r9068 455 455 ClassID playableClassId = getPlayableClassId( userId, stats.getPreferedTeamId() ); 456 456 std::string playableModel = getPlayableModelFileName( userId, stats.getPreferedTeamId(), playableClassId ); 457 std::string playableTexture = getPlayableModelTextureFileName( userId, stats.getPreferedTeamId(), playableClassId ); 457 458 458 459 BaseObject * bo = Factory::fabricate( playableClassId ); … … 463 464 Playable & playable = *(dynamic_cast<Playable*>(bo)); 464 465 465 playable.loadModel( playableModel ); 466 if ( playableTexture != "" ) 467 playable.loadMD2Texture( playableTexture ); 468 if ( playableModel != "" ) 469 playable.loadModel( playableModel ); 466 470 playable.setOwner( userId ); 467 471 playable.setUniqueID( SharedNetworkData::getInstance()->getNewUniqueID() ); … … 797 801 } 798 802 803 std::string MultiplayerTeamDeathmatch::getPlayableModelTextureFileName( int userId, int team, ClassID classId ) 804 { 805 if ( classId == CL_FPS_PLAYER ) 806 { 807 return "maps/doom_guy.png"; 808 } 809 810 return ""; 811 } 812
Note: See TracChangeset
for help on using the changeset viewer.