Changeset 10345 in orxonox.OLD for branches/playability/src/world_entities/weapons/acid_launcher.cc
- Timestamp:
- Jan 24, 2007, 6:13:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/acid_launcher.cc
r10333 r10345 84 84 animation2->setInfinity(ANIM_INF_CONSTANT); 85 85 */ 86 this->setStateDuration(WS_SHOOTING, .6); 86 this->setStateDuration(WS_SHOOTING, 1.0f); 87 87 88 this->setStateDuration(WS_RELOADING, 1.0f); 88 89 this->setStateDuration(WS_ACTIVATING, .4); … … 95 96 this->setCapability(WTYPE_ALLDIRS | WTYPE_TURRET | WTYPE_DIRECTIONAL | WTYPE_LIGHT); 96 97 this->setProjectileTypeC("AcidSplash"); 97 98 98 // this->loadModel("models/guns/turret1.obj", 1.0); 99 99 100 100 this->setEmissionPoint(2.0, 0, 0); 101 this->getProjectileFactory()->prepare(10 0);101 this->getProjectileFactory()->prepare(10); 102 102 103 103 this->setActionSound(WA_SHOOT, "sound/explosions/explosion_1.wav"); … … 148 148 149 149 Projectile* pj = NULL; 150 for( int i=0; i < 5; i++)150 for( int i=0; i < 1; i++) 151 151 { 152 152 pj = this->getProjectile(); … … 155 155 156 156 fired = true; 157 pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*1 15.0 + VECTOR_RAND(10)));157 pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*165.0 + VECTOR_RAND(10))); 158 158 159 159 pj->setParent(PNode::getNullParent());
Note: See TracChangeset
for help on using the changeset viewer.