Changeset 10718 in orxonox.OLD for branches/presentation/src/world_entities/weapons
- Timestamp:
- Jun 18, 2007, 5:06:59 PM (18 years ago)
- Location:
- branches/presentation/src/world_entities/weapons
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/weapons/aiming_system.cc
r10698 r10718 100 100 } 101 101 102 PRINTF(0)("entity: %s\n", nearestEntity->getClassCName()); 103 return nearestEntity; 102 return nearestEntity; 104 103 } 105 104 -
branches/presentation/src/world_entities/weapons/bsp_weapon.cc
r10713 r10718 170 170 if ( shortestDist < (pos - target->getAbsCoor()).len() ) 171 171 { 172 173 #ifdef DEBUG_AIMING 172 174 printf("HIT WALL\n"); 173 #ifdef DEBUG_AIMING174 175 this->debugDist = shortestDist; 175 176 #endif … … 190 191 if (r < p ) 191 192 { 193 #ifdef DEBUG_AIMING 192 194 printf( "HIT %s\n", target->getClassName().c_str() ); 195 #endif 193 196 target->hit( this->damage, this ); 194 197 } 198 #ifdef DEBUG_AIMING 195 199 else 196 200 printf( "MISHIT %s\n", target->getClassName().c_str() ); 201 #endif 197 202 198 203 } 199 204 else 200 205 { 206 #ifdef DEBUG_AIMING 201 207 printf( "HIT %s\n", target->getClassName().c_str() ); 208 #endif 202 209 target->hit( this->damage, this ); 203 210 } … … 217 224 (*it)->draw(); 218 225 } 219 #if 1226 #ifdef DEBUG_AIMING 220 227 glMatrixMode(GL_MODELVIEW); 221 228 glPushMatrix(); … … 231 238 Vector mp = this->getAbsCoor(); 232 239 Vector op = this->getAbsDir().apply( Vector(1, 0, 0) ); 233 #ifdef DEBUG_AIMING 240 234 241 op *= debugDist; 235 #else236 op *= 1000;237 #endif238 242 op += mp; 239 243 -
branches/presentation/src/world_entities/weapons/fps_sniper_rifle.cc
r10711 r10718 154 154 void FPSSniperRifle::fire() 155 155 { 156 PRINTF(0)("sniper fire\n");157 156 this->bFire = true; 158 157 } … … 193 192 this->weapon->fire( bFire ); 194 193 195 if ( bFire ){196 PRINTF(0)("REAL FIRE\n");197 }198 194 bFire = false; 199 195 }
Note: See TracChangeset
for help on using the changeset viewer.