Changeset 4423 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- May 31, 2005, 7:10:01 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4422 r4423 601 601 602 602 603 this->eventHandler->subscribe(this->localPlayer, ES_GAME, KeyMapper::PEV_UP);604 this->eventHandler->subscribe(this->localPlayer, ES_GAME, KeyMapper::PEV_DOWN);605 this->eventHandler->subscribe(this->localPlayer, ES_GAME, KeyMapper::PEV_LEFT);606 this->eventHandler->subscribe(this->localPlayer, ES_GAME, KeyMapper::PEV_RIGHT);607 603 this->eventHandler->subscribe(this->localPlayer, ES_GAME, KeyMapper::PEV_FIRE1); 608 604 this->eventHandler->subscribe(this->localPlayer, ES_GAME, KeyMapper::PEV_NEXT_WEAPON); … … 639 635 640 636 this->pilotNode = new PilotNode(); 637 this->spawn(this->pilotNode); 638 this->pilotNode->setAbsCoor(Vector(150, -35, 5)); 641 639 this->pilotNode->addChild(this->localPlayer); 642 640 this->pilotNode->addChild(this->localCamera); 643 this->localCamera->lookAt(this->localPlayer); 644 641 this->localCamera->lookAt(this->pilotNode); 642 643 this->eventHandler->subscribe(this->pilotNode, ES_GAME, KeyMapper::PEV_UP); 644 this->eventHandler->subscribe(this->pilotNode, ES_GAME, KeyMapper::PEV_DOWN); 645 this->eventHandler->subscribe(this->pilotNode, ES_GAME, KeyMapper::PEV_LEFT); 646 this->eventHandler->subscribe(this->pilotNode, ES_GAME, KeyMapper::PEV_RIGHT); 645 647 this->eventHandler->subscribe(this->pilotNode, ES_GAME, EV_MOUSE_MOTION); 646 648 … … 1164 1166 else if( !strcmp( cmd->cmd, CONFIG_NAME_VIEW4)) this->localCamera->setViewMode(VIEW_RIGHT); 1165 1167 else if( !strcmp( cmd->cmd, CONFIG_NAME_VIEW5)) this->localCamera->setViewMode(VIEW_TOP); 1166 else if(this->pilotNode != NULL) if( !strcmp( cmd->cmd, "cursor")) this->pilotNode->command(cmd);1167 1168 return false; 1168 1169 }
Note: See TracChangeset
for help on using the changeset viewer.