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/modules/weapons/projectiles
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/particles2/src/modules/weapons/projectiles/Rocket.cc

    r6098 r6101  
    137137        SUPER(Rocket, tick, dt);
    138138       
    139         if( GameMode::isMaster() )
     139        if( this->hasLocalController() )
    140140        {
    141141            this->setAngularVelocity(this->getOrientation() * this->localAngularVelocity_);
     
    196196    }
    197197   
    198     void Rocket::fire(unsigned int firemode)
     198    void Rocket::fired(unsigned int firemode)
    199199    {
    200200        if (this->owner_)
  • code/branches/particles2/src/modules/weapons/projectiles/Rocket.h

    r6087 r6101  
    110110            inline float getDamage() const
    111111                { return this->damage_; }
    112             virtual void fire(unsigned int firemode);
     112            virtual void fired(unsigned int firemode);
    113113           
    114114        private:
Note: See TracChangeset for help on using the changeset viewer.