Changeset 10794 for code/branches/fabienHS15/src/modules/weapons
- Timestamp:
- Nov 10, 2015, 7:47:39 PM (9 years ago)
- Location:
- code/branches/fabienHS15/src/modules/weapons
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fabienHS15/src/modules/weapons/projectiles/Rocket.cc
r10622 r10794 76 76 Model* model = new Model(this->getContext()); 77 77 model->setMeshSource("rocket.mesh"); 78 model->scale( 0.7f);78 model->scale(1.0f); 79 79 this->attach(model); 80 80 … … 187 187 SUPER(Rocket, tick, dt); 188 188 189 orxout() << "Rocket::tick" << getScale() << endl; 190 189 191 if( this->hasLocalController() ) 190 192 { -
code/branches/fabienHS15/src/modules/weapons/projectiles/SimpleRocket.cc
r10299 r10794 76 76 Model* model = new Model(this->getContext()); 77 77 model->setMeshSource("rocket.mesh"); 78 model->scale( 0.7f);78 model->scale(1.0f); 79 79 this->attach(model); 80 80 … … 116 116 { 117 117 SUPER(SimpleRocket, tick, dt); 118 119 orxout() << "SimpleRocket::tick" << getScale() << endl; 118 120 119 121 if (GameMode::isMaster()) -
code/branches/fabienHS15/src/modules/weapons/weaponmodes/RocketFire.cc
r10688 r10794 79 79 rocket->setPosition(this->getMuzzlePosition()); 80 80 rocket->setVelocity(this->getMuzzleDirection() * this->speed_); 81 rocket->scale( 2);81 rocket->scale(1.0f); 82 82 83 83 rocket->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); -
code/branches/fabienHS15/src/modules/weapons/weaponmodes/SimpleRocketFire.cc
r10688 r10794 85 85 rocket->setVelocity(this->getMuzzleDirection()*this->speed_); 86 86 rocket->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 87 rocket->scale(1.0f); 87 88 88 89 rocket->setDamage(this->damage_);
Note: See TracChangeset
for help on using the changeset viewer.