Changeset 10550 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 31, 2007, 6:33:43 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/npc.cc
r10549 r10550 81 81 this->registerObject(this, NPC::_objectList); 82 82 83 this->toList(OM_GROUP_0 0);83 this->toList(OM_GROUP_01); 84 84 this->bAIEnabled = false; 85 85 … … 318 318 return; 319 319 320 LOAD_PARAM_START_CYCLE(root, element);321 {322 PRINTF(0)("got weapon: %s\n", element->Value());323 BaseObject* obj = Factory::fabricate(element);324 if( obj != NULL && obj->isA( Weapon::staticClassID()))325 {326 Weapon* w = dynamic_cast<Weapon*>(obj);327 PRINTF(0)("created a weapon\n");328 int preferedSlot = w->getPreferedSlot();329 int preferedSide = w->getPreferedSide();330 331 this->addWeapon( w, preferedSide, preferedSlot);332 }333 }334 LOAD_PARAM_END_CYCLE(element);320 // LOAD_PARAM_START_CYCLE(root, element); 321 // { 322 // // PRINTF(0)("got weapon: %s\n", element->Value()); 323 // BaseObject* obj = Factory::fabricate(element); 324 // if( obj != NULL && obj->isA( Weapon::staticClassID())) 325 // { 326 // Weapon* w = dynamic_cast<Weapon*>(obj); 327 // // PRINTF(0)("created a weapon\n"); 328 // int preferedSlot = w->getPreferedSlot(); 329 // int preferedSide = w->getPreferedSide(); 330 // 331 // this->addWeapon( w, preferedSide, preferedSlot); 332 // } 333 // } 334 // LOAD_PARAM_END_CYCLE(element); 335 335 } 336 336 … … 411 411 this->getWeaponManager().setSlotPosition(slot, (*it).second->getCenter()); 412 412 this->getWeaponManager().setSlotDirection(slot, ws->getRelDir()); 413 PRINTF(0)("setting slot %i\n", slot);414 (*it).second->getCenter().debug();413 // PRINTF(0)("setting slot %i\n", slot); 414 // (*it).second->getCenter().debug(); 415 415 } 416 416 } … … 423 423 if (this->bFire) 424 424 { 425 std::cout << "fire..\n";426 425 weaponMan.fire(); 427 426 }
Note: See TracChangeset
for help on using the changeset viewer.