Changeset 10645 in orxonox.OLD for branches/vs-enhencements/src/world_entities/weapons/rf_cannon.cc
- Timestamp:
- May 2, 2007, 11:48:16 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/weapons/rf_cannon.cc
r10644 r10645 52 52 RFCannon::~RFCannon() 53 53 { 54 //for (int i = 0; i < this->getBarrels(); i++)55 //delete [] this->objComp[i];54 for (int i = 0; i < this->getBarrels(); i++) 55 delete [] this->objComp[i]; 56 56 57 //delete [] this->emissionPoint;58 //delete [] this->objComp;57 delete [] this->emissionPoint; 58 delete [] this->objComp; 59 59 } 60 60 … … 67 67 { 68 68 69 this->loadModel("models/guns/rf_cannon.obj", 0. 3);69 this->loadModel("models/guns/rf_cannon.obj", 0.2); 70 70 71 71 … … 82 82 83 83 this->setCapability(WTYPE_ALLDIRS | WTYPE_DIRECTIONAL | WTYPE_LIGHT); 84 this->setProjectileTypeC(" LBolt");84 this->setProjectileTypeC("PlasmaPulse"); 85 85 this->prepareProjectiles(100); 86 86 … … 122 122 void RFCannon::fire() 123 123 { 124 for (int i = 0; i < this->getBarrels(); i++){124 // for (int i = 0; i < this->getBarrels(); i++){ 125 125 Projectile* pj = this->getProjectile(); 126 126 if (pj == NULL) … … 139 139 140 140 this->activeBarrel = (this->activeBarrel + 1) % this->getBarrels(); 141 }141 // } 142 142 } 143 143
Note: See TracChangeset
for help on using the changeset viewer.