Changeset 6827 for code/branches
- Timestamp:
- May 3, 2010, 11:20:00 AM (15 years ago)
- Location:
- code/branches/rocket/src/modules/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/rocket/src/modules/weapons/projectiles/SimpleRocket.cc
r6818 r6827 76 76 77 77 Model* model = new Model(this); 78 model->setMeshSource(" Rocket.mesh");78 model->setMeshSource("rocket.mesh"); 79 79 //model->scale(0.7f); 80 80 this->attach(model); -
code/branches/rocket/src/modules/weapons/weaponmodes/SimpleRocketFire.cc
r6814 r6827 61 61 void SimpleRocketFire::fire() 62 62 { 63 //SimpleRocket* rocket = new SimpleRocket(this);64 63 SimpleRocket* rocket = new SimpleRocket(this); 64 RocketController* con = new RocketController(this); 65 65 66 66 67 67 this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition()); 68 con->getControllableEntity()->setOrientation(this->getMuzzleOrientation()); 69 con->getControllableEntity()->setPosition(this->getMuzzlePosition()); 70 /* rocket->setVelocity(this->getMuzzleDirection() * this->speed_); 71 rocket->scale(2); 68 rocket->setOrientation(this->getMuzzleOrientation()); 69 rocket->setPosition(this->getMuzzlePosition()); 70 rocket->scale(10); 71 rocket->setVelocity(this->getMuzzleDirection() * this->speed_); 72 rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 73 rocket->setDamage(this->getDamage()); 74 //rocket->scale(2); 72 75 73 rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());74 rocket->setDamage(this->getDamage());*/75 76 } 76 77 }
Note: See TracChangeset
for help on using the changeset viewer.