- Timestamp:
- Jan 24, 2007, 10:28:18 AM (18 years ago)
- Location:
- trunk/src
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/bsp/bsp_file.cc
r10317 r10321 1046 1046 Face->meshvert = patchOffset -sz; //3*(patchOffset-sz)*level1*level1; 1047 1047 Face->n_meshverts = sz; 1048 PRINTF( 0)("BSP FILE: sz: %i. \n", sz);1049 PRINTF( 0)("BSP FILE: Face->meshvert %i . \n", Face->meshvert);1048 PRINTF(4)("BSP FILE: sz: %i. \n", sz); 1049 PRINTF(4)("BSP FILE: Face->meshvert %i . \n", Face->meshvert); 1050 1050 1051 1051 //Face->n_meshverts = sz; -
trunk/src/lib/script_engine/script.cc
r10319 r10321 94 94 { 95 95 std::string filedest(Resources::ResourceManager::getInstance()->mainGlobalPath().name()); 96 filedest += "/scripts/" + filename; 96 97 std::string directory = ""; 98 std::string file = filename; 99 100 unsigned int seperation = filename.find_last_of('/'); 101 if (seperation != std::string::npos) 102 { 103 directory = filename.substr( 0, seperation+1 ); 104 file = filename.substr( seperation+1 ); 105 } 106 filedest += "scripts/" + directory + file; 97 107 98 108 this->addThisScript(); -
trunk/src/world_entities/WorldEntities.am
r10276 r10321 1 1 2 ## THE SUBCLASSES. THESE MUST BE DYNAMICALLY LINKED OR COMPILED IN DIRECTLY 2 3 WorldEntities_SOURCES_ = \ … … 25 26 world_entities/bsp_entity.cc \ 26 27 world_entities/mount_point.cc \ 28 world_entities/sound_entity.cc \ 27 29 \ 28 30 world_entities/weapons/test_gun.cc \ … … 65 67 world_entities/environments/model_entity.cc \ 66 68 world_entities/environments/building.cc \ 69 world_entities/environments/rotor.cc \ 67 70 world_entities/environments/mapped_water.cc \ 68 world_entities/environments/rotor.cc \69 71 \ 70 72 world_entities/elements/image_entity.cc \ … … 130 132 bsp_entity.h \ 131 133 mount_point.h \ 134 sound_entity.h \ 132 135 \ 133 136 weapons/test_gun.h \ … … 169 172 environments/model_entity.h \ 170 173 environments/building.h \ 174 environments/rotor.h \ 171 175 environments/mapped_water.h \ 172 environments/rotor.h \173 176 \ 174 177 elements/image_entity.h \ … … 206 209 weather_effects/lense_flare.h 207 210 211 -
trunk/src/world_entities/creatures/fps_player.cc
r10316 r10321 119 119 registerEvent(EV_MOUSE_MOTION); 120 120 121 121 this->aimingSystem = NULL; 122 122 123 123 // weapon manager for the fps … … 241 241 242 242 243 this->aimingSystem->toList(OM_GROUP_01); 244 this->aimingSystem->setParent(&this->cameraNode); 245 // this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE); 246 this->aimingSystem->setRelDir(Quaternion(M_PI_4*-0.58f, Vector(0,0,1))); 247 this->aimingSystem->setRelCoor(0, -1, -1); 243 if( this->aimingSystem != NULL) 244 { 245 this->aimingSystem->toList(OM_GROUP_01); 246 this->aimingSystem->setParent(&this->cameraNode); 247 // this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE); 248 this->aimingSystem->setRelDir(Quaternion(M_PI_4*-0.58f, Vector(0,0,1))); 249 this->aimingSystem->setRelCoor(0, -1, -1); 250 } 248 251 249 252 -
trunk/src/world_entities/script_trigger.cc
r10319 r10321 187 187 } 188 188 189 if( !invert && this->distance(target) < radius) 190 { 191 executeAction(timestep); 192 scriptCalled = true; 193 return; 194 195 } 196 else if( invert && this->distance(target) > radius) 197 { 198 executeAction(timestep); 199 scriptCalled = true; 200 return; 189 if( this->target != NULL) 190 { 191 if( !invert && this->distance(target) < radius) 192 { 193 executeAction(timestep); 194 scriptCalled = true; 195 return; 196 197 } 198 else if( invert && this->distance(target) > radius) 199 { 200 executeAction(timestep); 201 scriptCalled = true; 202 return; 203 } 201 204 } 202 205 //else
Note: See TracChangeset
for help on using the changeset viewer.