Changeset 10713 in orxonox.OLD for branches/presentation/src/world_entities/weapons
- Timestamp:
- Jun 18, 2007, 2:00:28 PM (18 years ago)
- Location:
- branches/presentation/src/world_entities/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.