- Timestamp:
- Feb 7, 2006, 10:02:46 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/effects/explosion.cc
r7103 r7104 38 38 { 39 39 this->setClassID(CL_EXPLOSION, "Explosion"); 40 this->toList(OM_DEAD_TICK); 40 41 41 this->emitter = new BoxEmitter(Vector(10,10,10), 300, 50, M_2_PI);42 this->emitter = new BoxEmitter(Vector(10,10,10), 1000, 30, M_2_PI); 42 43 this->emitter->addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT); 43 44 this->emitter->setParent(this); … … 45 46 46 47 this->lifeCycle = 0.0f; 47 this->lifeTime = 0.5f;48 this->lifeTime = 1.0f; 48 49 49 50 } … … 84 85 Explosion::explosionParticles->setRadius(.5, 15.0); 85 86 Explosion::explosionParticles->setRadius(1.0, 10.0); 86 Explosion::explosionParticles->setColor(0.0, 1,0,0,1);87 Explosion::explosionParticles->setColor(0.0, 0,1,0,1); 87 88 Explosion::explosionParticles->setColor(0.5, .8,.8,0,.8); 88 89 Explosion::explosionParticles->setColor(0.8, .8,.8,.3,.8); … … 91 92 92 93 this->emitter->setSystem(Explosion::explosionParticles); 93 94 this->updateNode(0);95 this->emitter->setEmissionRate(45.0);96 this->emitter->setEmissionVelocity(0.0);97 94 this->toList(OM_DEAD_TICK); 98 95 this->lifeCycle = 0.0; -
trunk/src/world_entities/npcs/ground_turret.cc
r7103 r7104 127 127 if(this->getHealth() > 0.0f && State::getPlayer() && 128 128 State::getPlayer()->getPlayable() && 129 State::getPlayer()->getPlayable()->distance(this) < 1 50) // HACK129 State::getPlayer()->getPlayable()->distance(this) < 120) // HACK 130 130 { 131 131 if (likely(this->left != NULL))
Note: See TracChangeset
for help on using the changeset viewer.