Changeset 7102 in orxonox.OLD for trunk/src/world_entities/npcs
- Timestamp:
- Feb 7, 2006, 8:56:57 PM (19 years ago)
- Location:
- trunk/src/world_entities/npcs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/ground_turret.cc
r7076 r7102 67 67 this->setHealth(300); 68 68 69 /* left = new Turret();70 left->setParent(this);71 left->setRelCoor(0,10,0); 72 right = new Turret();73 right->setParent(this);74 right->setRelCoor(0,10,0);*/69 this->weaponHolder[0].addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT); 70 this->weaponHolder[1].addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT); 71 72 this->weaponHolder[0].setRelCoor(0,25,0); 73 this->weaponHolder[0].setParent(this); 74 this->weaponHolder[1].setParent(this); 75 75 } 76 76 … … 101 101 this->left->setRelCoor(0,10,-5); 102 102 this->left->requestAction( WA_ACTIVATE); 103 this->left->setParent(&this->weaponHolder[0]); 103 104 } 104 105 … … 112 113 this->right->setRelCoor(0,10,5); 113 114 this->left->requestAction( WA_ACTIVATE); 115 this->right->setParent(&this->weaponHolder[0]); 114 116 } 115 117 } -
trunk/src/world_entities/npcs/ground_turret.h
r7076 r7102 34 34 35 35 private: 36 PNode weaponHolder[2]; 36 37 Weapon *left, *right; 37 38 };
Note: See TracChangeset
for help on using the changeset viewer.