Changeset 10713 in orxonox.OLD for branches/presentation/src
- Timestamp:
- Jun 18, 2007, 2:00:28 PM (17 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/npcs/actionbox_enemy.cc
r10712 r10713 321 321 explosionParticles = new SpriteParticles(200); 322 322 explosionParticles->setName("SpaceShipExplosionParticles"); 323 explosionParticles->setLifeSpan(. 2, .3);323 explosionParticles->setLifeSpan(.3, .7); 324 324 explosionParticles->setRadius(0.0, 10.0); 325 325 explosionParticles->setRadius(.5, 6.0); … … 334 334 emitter->setEmissionRate( 200.0); 335 335 336 node = new EmitterNode( . 1f);336 node = new EmitterNode( .4f ); 337 337 node->setupParticle( emitter, explosionParticles); 338 338 node->setAbsDir( this->getAbsDir()); … … 343 343 344 344 this->setAbsCoor( this->getAbsCoor() + Vector(100,0,0) + Vector(1,0,0) * VECTOR_RAND(150).dot(Vector(1,0,0))); 345 } 345 346 toList( OM_DEAD ); 347 } -
branches/presentation/src/world_entities/weapons/bsp_weapon.cc
r10712 r10713 119 119 bFire = false; 120 120 range = 1000; 121 #ifdef DEBUG_AIMING 122 debugDist = 1000; 123 #endif 121 124 damage = 10; 122 125 fireRate = 0.5; … … 168 171 { 169 172 printf("HIT WALL\n"); 173 #ifdef DEBUG_AIMING 174 this->debugDist = shortestDist; 175 #endif 170 176 return; 171 177 } 178 #ifdef DEBUG_AIMING 179 else 180 { 181 this->debugDist = 1000; 182 } 183 #endif 172 184 if (!alwaysHits) 173 185 { … … 205 217 (*it)->draw(); 206 218 } 207 #if 0219 #if 1 208 220 glMatrixMode(GL_MODELVIEW); 209 221 glPushMatrix(); … … 219 231 Vector mp = this->getAbsCoor(); 220 232 Vector op = this->getAbsDir().apply( Vector(1, 0, 0) ); 233 #ifdef DEBUG_AIMING 234 op *= debugDist; 235 #else 221 236 op *= 1000; 237 #endif 222 238 op += mp; 223 239 -
branches/presentation/src/world_entities/weapons/bsp_weapon.h
r10712 r10713 81 81 float bRate; 82 82 bool bFire; 83 #ifdef DEBUG_AIMING 84 float debugDist; 85 #endif 83 86 84 87 AimingSystem* aimingSystem;
Note: See TracChangeset
for help on using the changeset viewer.