Changeset 5744 in orxonox.OLD for branches/world_entities/src/world_entities/weapons/cannon.cc
- Timestamp:
- Nov 23, 2005, 9:28:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/world_entities/src/world_entities/weapons/cannon.cc
r5623 r5744 78 78 this->loadModel("models/guns/cannon.obj"); 79 79 80 this->setStateDuration(WS_SHOOTING, .1);80 this->setStateDuration(WS_SHOOTING, 2.0); 81 81 this->setStateDuration(WS_RELOADING, .1); 82 this->setStateDuration(WS_ACTIVATING, . 4);82 this->setStateDuration(WS_ACTIVATING, .1); 83 83 this->setStateDuration(WS_DEACTIVATING, .4); 84 84 85 this->setMaximumEnergy(100 0, 100);86 this->increaseEnergy( 1000);85 this->setMaximumEnergy(100, 1); 86 this->increaseEnergy(30); 87 87 //this->minCharge = 2; 88 88 … … 90 90 91 91 this->setCapability(WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 92 this->setProjectileType(CL_ LASER);93 this->prepareProjectiles( 20);92 this->setProjectileType(CL_BOMB); 93 this->prepareProjectiles(5); 94 94 95 95 // this->objectComponent1 = new PNode(); … … 163 163 pj->setParent(NullParent::getInstance()); 164 164 165 pj->setVelocity(this->getVelocity() + this->getAbsDir().apply(Vector(1,0,0))* 50+VECTOR_RAND(5));165 pj->setVelocity(this->getVelocity() + this->getAbsDir().apply(Vector(1,0,0))*15+VECTOR_RAND(5)); 166 166 167 167 pj->setAbsCoor(this->getEmissionPoint());
Note: See TracChangeset
for help on using the changeset viewer.