Changeset 9922 in orxonox.OLD for branches/network/src/world_entities/creatures/fps_player.cc
- Timestamp:
- Nov 9, 2006, 3:30:59 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/creatures/fps_player.cc
r9911 r9922 273 273 { 274 274 this->getWeaponManager().fire(); 275 276 // WorldEntity* target = this->aimingSystem->getNearestTarget();277 // if( target != NULL)278 // {279 // PRINTF(0)("hit hit hit, got: %s\n", target->getClassCName());280 // }281 // else282 // {283 // PRINTF(0)("nothing hit\n");284 // }285 275 } 286 276 287 277 288 278 //dealing damage 289 290 279 if ( State::isOnline() && (SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/)) 291 280 { … … 404 393 405 394 406 if( likely(this->getModel(0) != NULL) && this->getModel(0)->isA( CL_INTERACTIVE_MODEL))395 if( likely(this->getModel(0) != NULL) && this->getModel(0)->isA(InteractiveModel::staticClassID())) 407 396 { 408 397 ((InteractiveModel*)this->getModel(0))->tick(time); 409 410 // handle animations differently411 412 413 414 415 416 // else if( this->bFire && likely(this->getModel(0) != NULL))417 // {418 // if( ((InteractiveModel*)this->getModel(0))->getAnim() != ATTACK)419 // ((InteractiveModel*)this->getModel(0))->setAnimation(ATTACK);420 // }421 // else if( fabs(move.len()) > 0.0f && likely(this->getModel(0) != NULL))422 // {423 // if( ((InteractiveModel*)this->getModel(0))->getAnim() != RUN)424 // ((InteractiveModel*)this->getModel(0))->setAnimation(RUN);425 // }426 // else if (likely(this->getModel(0) != NULL))427 // {428 // if( ((InteractiveModel*)this->getModel(0))->getAnimation() != STAND)429 // ((InteractiveModel*)this->getModel(0))->setAnimation(STAND);430 // }431 398 } 432 399
Note: See TracChangeset
for help on using the changeset viewer.