- Timestamp:
- Jan 25, 2006, 11:27:35 AM (19 years ago)
- Location:
- branches/network/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/world_entity.cc
r6634 r6687 54 54 this->energyMax = 1.0f; 55 55 this->energy = 1.0f; 56 this->scaling = 1.0f; 57 58 /* OSOLETE */ 59 this->bVisible = true; 60 this->bCollide = true; 56 61 57 62 this->md2TextureFileName = NULL; 58 59 60 this->setVisibiliy(true);61 63 62 64 this->objectListNumber = OM_INIT; … … 122 124 void WorldEntity::loadModel(const char* fileName, float scaling, unsigned int modelNumber) 123 125 { 126 this->modelLODName = fileName; 124 127 this->scaling = scaling; 125 128 if ( fileName != NULL && strcmp(fileName, "") ) … … 511 514 SYNCHELP_READ_FKT( PNode::writeState ); 512 515 513 SYNCHELP_READ_STRINGM( modelFileName );516 SYNCHELP_READ_STRINGM( this->modelLODName ); 514 517 SYNCHELP_READ_FLOAT( scaling ); 515 518 //check if modelFileName is relative to datadir or absolute 516 519 520 521 PRINTF(0)("================ LOADING MODEL %s, %f\n", modelFileName, scaling); 522 517 523 if ( strcmp(modelFileName, "") ) 518 524 { 519 loadModel( modelFileName, scaling 525 loadModel( modelFileName, scaling); 520 526 } 521 527 delete[] modelFileName; -
branches/network/src/world_entities/world_entity.h
r6512 r6687 111 111 std::vector<Model*> models; //!< The model that should be loaded for this entity. 112 112 const char* md2TextureFileName; //!< the file name of the md2 model texture, only if this 113 const char* modelLODName; //!< the name of the model lod file 113 114 BVTree* obbTree; //!< this is the obb tree reference needed for collision detection 114 115
Note: See TracChangeset
for help on using the changeset viewer.