Changeset 10321 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 24, 2007, 10:28:18 AM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.