Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 17, 2009, 10:57:44 PM (15 years ago)
Author:
scheusso
Message:

some fixes in Rocket
there are two new function ins PlayerInfo: startTemporaryControl and stopTemporaryControl which expand start/stop-Control but without removing the player from the currently controlled controllable entity

File:
1 edited

Legend:

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

    r6079 r6082  
    110110            inline float getDamage() const
    111111                { return this->damage_; }
    112             virtual void fire(unsigned int firemode) {}
     112            virtual void fire(unsigned int firemode) { this->destroy(); }
    113113           
    114114        private:
     
    122122            CameraPosition* camPosition_;
    123123            ConeCollisionShape* collisionShape_;
     124            PlayerInfo* player_;
    124125            Timer destroyTimer_;
    125126            float lifetime_;
Note: See TracChangeset for help on using the changeset viewer.