- Timestamp:
- Jul 5, 2006, 8:14:40 AM (18 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/creatures/fps_player.cc
r9192 r9194 233 233 this->initWeapon = true; 234 234 235 State::getCameraNode()->setParentMode(PNODE_ROTATE_AND_MOVE); 236 237 this->getWeaponManager().getParentNode()->setParentMode(PNODE_ROTATE_AND_MOVE); 238 this->getWeaponManager().getFixedTarget()->setParent(&this->cameraNode); 239 this->getWeaponManager().getFixedTarget()->setParentMode(PNODE_ROTATE_AND_MOVE); 240 241 242 this->aimingSystem->toList(OM_GROUP_01); 243 this->aimingSystem->setParent(&this->cameraNode); 244 this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE); 245 246 235 247 AABB* box = this->getModelAABB(); 236 248 if( box != NULL) … … 240 252 State::getCameraTargetNode()->setRelCoor(10, box->halfLength[1] * f, 0); 241 253 242 State::getCameraNode()->setParentMode(PNODE_ROTATE_AND_MOVE);243 this->cameraNode.setParentMode(PNODE_ROTATE_AND_MOVE);244 this->getWeaponManager().getParentNode()->setParentMode(PNODE_ROTATE_AND_MOVE);245 246 247 254 this->getWeaponManager().setSlotPosition(0, Vector(1.5, box->halfLength[1] * f - 0.7, 1.1)); 248 255 this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * f, 0.0)); 249 250 this->aimingSystem->toList(OM_GROUP_01);251 this->aimingSystem->setParent(&this->cameraNode);252 this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE);253 256 } 254 257 } -
branches/presentation/src/world_entities/weapons/aiming_system.cc
r9192 r9194 116 116 { 117 117 PRINTF(0)("real hit: %s\n", killer->getClassName()); 118 119 118 this->selectionList.push_back(killer); 120 119 } 121 PRINTF(0)("no hit: %s\n", killer->getClassName());122 120 } 123 121
Note: See TracChangeset
for help on using the changeset viewer.