Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 20, 2009, 1:02:09 AM (15 years ago)
Author:
scheusso
Message:

rocket now steerable also on client
AIController shoots again now ;)
fire network function is now in CE instead of Pawn
some changes in PlayerInfo that allow controlling of temporary objects (such as Rocket)

Location:
code/branches/particles2/src/orxonox/controllers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/particles2/src/orxonox/controllers/AIController.cc

    r6087 r6101  
    109109
    110110        if (this->getControllableEntity() && this->bShooting_ && this->isCloseAtTarget(1000) && this->isLookingAtTarget(Ogre::Math::PI / 20.0f))
    111 //             this->getControllableEntity()->fire(0);
     111            this->getControllableEntity()->fire(0);
    112112
    113113        SUPER(AIController, tick, dt);
  • code/branches/particles2/src/orxonox/controllers/HumanController.cc

    r5929 r6101  
    145145    void HumanController::fire(unsigned int firemode)
    146146    {
    147         if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)
     147        if( HumanController::localController_s && HumanController::localController_s->controllableEntity_ )
    148148            HumanController::localController_s->controllableEntity_->fire(firemode);
    149149    }
Note: See TracChangeset for help on using the changeset viewer.