Changeset 9186 in orxonox.OLD for branches/presentation/src/world_entities
- Timestamp:
- Jul 5, 2006, 7:21:25 AM (18 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/creatures/fps_player.cc
r9185 r9186 140 140 141 141 this->getWeaponManager().setParentNode(&this->cameraNode); 142 this->getWeaponManager().getParentNode()->setParentMode(PNODE_ROTATE_AND_MOVE);143 142 this->cameraNode.addNodeFlags(PNODE_PROHIBIT_CHILD_DELETE); 144 143 … … 239 238 240 239 State::getCameraNode()->setParentMode(PNODE_ROTATE_AND_MOVE); 240 this->cameraNode.setParentMode(PNODE_ROTATE_AND_MOVE); 241 this->getWeaponManager().getParentNode()->setParentMode(PNODE_ROTATE_AND_MOVE); 241 242 242 243 … … 244 245 this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * f, 0.0)); 245 246 246 this->aimingSystem->toList(/*OM_LIST(this->getOMListNumber() + 1)*/ OM_ COMMON);247 this->aimingSystem->toList(/*OM_LIST(this->getOMListNumber() + 1)*/ OM_GROUP_01); 247 248 } 248 249 } -
branches/presentation/src/world_entities/npcs/generic_npc.cc
r9162 r9186 82 82 { 83 83 this->setClassID(CL_GENERIC_NPC, "GenericNPC"); 84 84 85 this->toList(OM_GROUP_00); 85 86 -
branches/presentation/src/world_entities/weapons/aiming_system.cc
r9185 r9186 35 35 */ 36 36 AimingSystem::AimingSystem (WorldEntity* entity) 37 : WorldEntity() 37 38 { 38 39 this->owner = entity; … … 61 62 62 63 // registering default reactions: 64 this->unsubscribeReaction(CREngine::CR_OBJECT_DAMAGE); 63 65 this->subscribeReaction(CREngine::CR_OBJECT_DAMAGE, CL_WORLD_ENTITY); 64 66 … … 120 122 121 123 PRINTF(0)("hit hit hit, got: %s\n", killer->getClassName()); 124 printf("aimingsystem: hit()\n"); 122 125 } 123 126 -
branches/presentation/src/world_entities/weapons/aiming_system.h
r9172 r9186 33 33 void setRange(float range){this->range = range;}; 34 34 35 void hit(float damage, WorldEntity* killer); 35 virtual void hit(float damage, WorldEntity* killer); 36 virtual void destroy(WorldEntity* entity) {} 36 37 37 38 virtual void tick(float dt); -
branches/presentation/src/world_entities/world_entity.cc
r9168 r9186 414 414 bool WorldEntity::registerCollision(WorldEntity* entityA, WorldEntity* entityB, BoundingVolume* bvA, BoundingVolume* bvB) 415 415 { 416 PRINTF(5)("registering collision of type: %s vs %s\n", entityA->getClassName(), entityB->getClassName()); 416 417 // is there any handler listening? 417 418 if( !this->bReactive)
Note: See TracChangeset
for help on using the changeset viewer.