Changeset 10298 in orxonox.OLD for branches/playability/src/world_entities/weapons
- Timestamp:
- Jan 21, 2007, 6:23:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/acid_launcher.cc
r10179 r10298 72 72 { 73 73 this->registerObject(this, AcidLauncher::_objectList); 74 74 /* 75 75 Animation3D* animation1 = this->getAnimation(WS_ACTIVATING, this); 76 76 Animation3D* animation2 = this->getAnimation(WS_DEACTIVATING, this); … … 87 87 this->setStateDuration(WS_RELOADING, 1.0f); 88 88 this->setStateDuration(WS_ACTIVATING, .4); 89 this->setStateDuration(WS_DEACTIVATING, .4); 89 this->setStateDuration(WS_DEACTIVATING, .4);*/ 90 90 91 this->setEnergyMax(10 );92 this->increaseEnergy(10 );91 this->setEnergyMax(100); 92 this->increaseEnergy(100); 93 93 //this->minCharge = 2; 94 94 … … 98 98 this->loadModel("models/guns/turret1.obj", 1.0); 99 99 100 this->setEmissionPoint(1. 684, 0.472, 0);100 this->setEmissionPoint(1.0, 0, 0); 101 101 this->getProjectileFactory()->prepare(50); 102 102 … … 158 158 159 159 pj->setParent(PNode::getNullParent()); 160 pj->setAbsCoor(this->getEmissionPoint() );160 pj->setAbsCoor(this->getEmissionPoint() + VECTOR_RAND(.1)); 161 161 pj->setAbsDir(this->getAbsDir()+Quaternion(0,VECTOR_RAND(5))); 162 162 pj->activate();
Note: See TracChangeset
for help on using the changeset viewer.