Changeset 9181 in orxonox.OLD for branches/presentation/src/world_entities/npcs/space_turret.cc
- Timestamp:
- Jul 5, 2006, 1:10:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/npcs/space_turret.cc
r9180 r9181 60 60 { 61 61 this->setClassID(CL_SPACE_TURRET, "SpaceTurret"); 62 this->loadModel("models/ground_turret_#.obj", 5);63 this->loadModel("models/comet.obj", .5, 3);62 this->loadModel("models/ground_turret_#.obj", 7.5); 63 this->loadModel("models/comet.obj", 1.0f, 3); 64 64 this->left = NULL; 65 65 this->right = NULL; … … 100 100 this->left->setParent(this); 101 101 this->left->toList(this->getOMListNumber()); 102 this->left->setRelCoor(0,1 0,-5);102 this->left->setRelCoor(0,15,-7.5); 103 103 this->left->requestAction( WA_ACTIVATE); 104 104 this->left->setParent(&this->weaponHolder[0]); … … 112 112 this->right->setParent(this); 113 113 this->right->toList(this->getOMListNumber()); 114 this->right->setRelCoor(0,1 0,5);114 this->right->setRelCoor(0,15,7.5); 115 115 this->left->requestAction( WA_ACTIVATE); 116 116 this->right->setParent(&this->weaponHolder[0]); … … 126 126 if(this->getHealth() > 0.0f && State::getPlayer() && 127 127 State::getPlayer()->getPlayable() && 128 State::getPlayer()->getPlayable()->distance(this) < 120) // HACK128 State::getPlayer()->getPlayable()->distance(this) < 300) // HACK 129 129 { 130 130 if (likely(this->left != NULL)) … … 158 158 this->getModel(3)->draw(); 159 159 glPopMatrix(); 160 160 /* 161 161 if (this->left != NULL) 162 162 this->left->draw(); 163 163 if (this->right != NULL) 164 this->right->draw(); 164 this->right->draw();*/ 165 165 } 166 166 … … 191 191 192 192 this->toList(OM_DEAD); 193 194 if (this->left) 195 this->left->toList(OM_DEAD); 196 if (this->right) 197 this->right->toList(OM_DEAD); 198 193 199 }
Note: See TracChangeset
for help on using the changeset viewer.