Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2011, 11:57:28 AM (13 years ago)
Author:
landauf
Message:

added feature to Spectator which changes the keybind mode of the fire command to OnPress if the player controls a Spectator. changes mode back to OnHold if the player stops control of the Spectator (e.g. spawns) by using a helper function.

This avoids accidentally firing the weapons right after spawn.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/worldentities/pawns/Spectator.h

    r7857 r7862  
    6161            virtual void setPlayer(PlayerInfo* player);
    6262            virtual void startLocalHumanControl();
     63            virtual void stopLocalHumanControl();
    6364
    6465        private:
     
    6667            void changedGreeting();
    6768            void changedFlareVisibility();
     69
     70            static void resetFireCommand(unsigned int firemode);
    6871
    6972            BillboardSet* greetingFlare_;
Note: See TracChangeset for help on using the changeset viewer.