Changeset 6900 for code/branches/rocket/src/modules/weapons/weaponmodes
- Timestamp:
- May 14, 2010, 12:41:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/rocket/src/modules/weapons/weaponmodes/SimpleRocketFire.cc
r6863 r6900 61 61 void SimpleRocketFire::fire() 62 62 { 63 //SimpleRocket* rocket = new SimpleRocket(this);64 63 RocketController* con = new RocketController(this); 65 64 SimpleRocket* rocket = con->getRocket(); … … 69 68 rocket->setPosition(pos); 70 69 rocket->setVelocity(this->getMuzzleDirection()*this->speed_); 71 //Ogre::Vector3 vec = this->getMuzzlePosition();72 //vec.normalise();73 //rocket->setAcceleration(100*vec);74 70 rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 75 //con->getRocket()->setPosition(this->getMuzzlePosition());76 //con->setControllableEntity(dynamic_cast<rocket*>(ControllableEntity));77 //con->getControllableEntity()->setPosition(this->getMuzzlePosition());78 79 /* this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());80 rocket->setOrientation(this->getMuzzleOrientation());81 rocket->setPosition(this->getMuzzlePosition());82 rocket->scale(10);83 rocket->setVelocity(this->getMuzzleDirection() * this->speed_);84 rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());85 rocket->setDamage(this->getDamage());86 rocket->scale(2);87 */88 71 } 89 72 }
Note: See TracChangeset
for help on using the changeset viewer.