Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10114 in orxonox.OLD for trunk/src/world_entities/creatures


Ignore:
Timestamp:
Dec 19, 2006, 11:55:26 PM (18 years ago)
Author:
patrick
Message:

merged network back to trunk

Location:
trunk/src/world_entities/creatures
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/creatures/fps_player.cc

    r10013 r10114  
    4141
    4242
    43 #include "class_id_DEPRECATED.h"
    44 ObjectListDefinitionID(FPSPlayer, CL_FPS_PLAYER);
     43
     44ObjectListDefinition(FPSPlayer);
    4545CREATE_FACTORY(FPSPlayer);
    4646
     
    273273  {
    274274    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 //     else
    282 //     {
    283 //       PRINTF(0)("nothing hit\n");
    284 //     }
    285275  }
    286276
    287277
    288278  //dealing damage
    289 
    290279  if ( State::isOnline() && (SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/))
    291280  {
     
    384373
    385374  // physical falling of the player
    386   if( !this->isOnGround())
     375  if( /*FIXME for testing*/ false && !this->isOnGround())
    387376  {
    388377    this->fallVelocity += 300.0f * time;
     
    404393
    405394
    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()))
    407396  {
    408397    ((InteractiveModel*)this->getModel(0))->tick(time);
    409 
    410     // handle animations differently
    411 
    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 //     }
    431398  }
    432399
  • trunk/src/world_entities/creatures/md2_creature.cc

    r10033 r10114  
    3636#include "debug.h"
    3737
    38 #include "class_id_DEPRECATED.h"
    39 ObjectListDefinitionID(MD2Creature, CL_MD2_CREATURE);
     38
     39ObjectListDefinition(MD2Creature);
    4040CREATE_FACTORY(MD2Creature);
    4141
Note: See TracChangeset for help on using the changeset viewer.