- Timestamp:
- Oct 30, 2005, 1:32:38 AM (19 years ago)
- Location:
- trunk/src/world_entities/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/laser.cc
r5456 r5457 41 41 42 42 float modelSize = .3; 43 this->loadModel WithScale("models/projectiles/lasers.obj", .3);43 this->loadModel("models/projectiles/laser.obj"); 44 44 45 45 this->energyMin = 1; … … 51 51 this->emitter->setParent(this); 52 52 this->emitter->setSpread(M_PI, M_PI); 53 this->emitter->setEmissionRate( 30.0);53 this->emitter->setEmissionRate(50.0); 54 54 this->emitter->setEmissionVelocity(50.0); 55 55 } … … 83 83 Laser::explosionParticles->setName("LaserExplosionParticles"); 84 84 Laser::explosionParticles->setLifeSpan(.5, .3); 85 Laser::explosionParticles->setRadius(0.0, 10);86 Laser::explosionParticles->setRadius(.5, 20.0);85 Laser::explosionParticles->setRadius(0.0, 5); 86 Laser::explosionParticles->setRadius(.5, 10.0); 87 87 Laser::explosionParticles->setRadius(1.0, 3.0); 88 Laser::explosionParticles->setColor(0.0, 0,1,0,.9);88 Laser::explosionParticles->setColor(0.0, 1,1,0,.9); 89 89 Laser::explosionParticles->setColor(0.5, .8,.8,0,.5); 90 Laser::explosionParticles->setColor(1.0, 1,1,1,.0);90 Laser::explosionParticles->setColor(1.0, .8,.8,.7,.0); 91 91 } 92 92 } … … 148 148 glMatrixMode(GL_MODELVIEW); 149 149 glPushMatrix(); 150 glPushAttrib(GL_ENABLE_BIT); 151 glDisable(GL_LIGHTING); 150 152 151 153 float matrix[4][4]; … … 155 157 glScalef(2.0, 2.0, 2.0); 156 158 this->model->draw(); 157 159 glPopAttrib(); 158 160 glPopMatrix(); 159 161 } -
trunk/src/world_entities/weapons/test_gun.cc
r5456 r5457 122 122 this->loadModel("models/guns/test_gun.obj"); 123 123 124 this->setStateDuration(WS_SHOOTING, . 3);125 this->setStateDuration(WS_RELOADING, . 5);124 this->setStateDuration(WS_SHOOTING, .1); 125 this->setStateDuration(WS_RELOADING, .1); 126 126 this->setStateDuration(WS_ACTIVATING, .4); 127 127 this->setStateDuration(WS_DEACTIVATING, .4); … … 129 129 this->setMaximumEnergy(1000, 100); 130 130 this->increaseEnergy(1000); 131 this->setEmissionPoint(0,-100,0); 131 132 //this->minCharge = 2; 132 133 … … 136 137 this->setProjectileType(CL_LASER); 137 138 this->prepareProjectiles(20); 139 138 140 } 139 141
Note: See TracChangeset
for help on using the changeset viewer.