Changeset 10316 in orxonox.OLD for trunk/src/world_entities/creatures
- Timestamp:
- Jan 24, 2007, 1:12:07 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/creatures/fps_player.cc
r10114 r10316 124 124 dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( false); 125 125 126 Weapon* wpRight = new FPSSniperRifle(0);127 wpRight->setName("testGun Right");128 /* Weapon* wpLeft = new TestGun(1);*/129 // Weapon* wpLeft = new Turret();130 // wpLeft->setName("testGun Left");131 132 // this->addWeapon(wpLeft, 1, 0);133 126 if( State::isOnline()) 127 { 128 Weapon* wpRight = new FPSSniperRifle(0); 129 wpRight->setName("testGun Right"); 134 130 this->addWeapon(wpRight,1, 0); 131 132 this->aimingSystem = new AimingSystem(this); 133 wpRight->addChild(this->aimingSystem); 134 135 this->toList( OM_PLAYERS ); 136 } 137 138 135 139 this->getWeaponManager().changeWeaponConfig(1); 136 137 140 this->getWeaponManager().setSlotCount(2); 138 141 this->getWeaponManager().setSlotDirection(0, Quaternion(M_PI_4*-0.55f, Vector(0,0,1))); … … 142 145 this->getWeaponManager().setSlotPosition(1, Vector(5.0, 0.0, 0.0)); 143 146 144 // this->getWeaponManager().getFixedTarget()->setRelDir(Quaternion(M_PI_4*-0.6f, Vector(0,0,1)));145 146 147 147 this->getWeaponManager().setParentNode(&this->cameraNode); 148 148 this->cameraNode.addNodeFlags(PNODE_PROHIBIT_CHILD_DELETE); … … 150 150 this->getWeaponManager().getFixedTarget()->setParent(&this->cameraNode); 151 151 this->getWeaponManager().getFixedTarget()->setRelCoor(1000,0,0); 152 153 this->aimingSystem = new AimingSystem(this);154 //this->addChild(this->aimingSystem);155 wpRight->addChild(this->aimingSystem);156 // this->getWeaponManager().sl157 152 158 153 … … 171 166 this->initWeapon = false; 172 167 this->damageTicker = 0.0f; 173 174 if( State::isOnline())175 toList( OM_PLAYERS );176 168 } 177 169 … … 185 177 Playable::loadParams(root); 186 178 } 179 187 180 188 181 void FPSPlayer::setPlayDirection(const Quaternion& quat, float speed)
Note: See TracChangeset
for help on using the changeset viewer.