Changeset 2912 for code/branches/weapons/src/orxonox/objects/controllers
- Timestamp:
- Apr 9, 2009, 3:18:11 AM (16 years ago)
- Location:
- code/branches/weapons/src/orxonox/objects/controllers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapons/src/orxonox/objects/controllers/AIController.cc
r2896 r2912 111 111 112 112 if (this->getControllableEntity() && this->bShooting_ && this->isCloseAtTarget(500) && this->isLookingAtTarget(Ogre::Math::PI / 20.0)) 113 this->getControllableEntity()->fire( WeaponMode::fire);113 this->getControllableEntity()->fire(0); 114 114 115 115 SUPER(AIController, tick, dt); -
code/branches/weapons/src/orxonox/objects/controllers/HumanController.cc
r2872 r2912 46 46 SetConsoleCommand(HumanController, rotateRoll, true).setAsInputCommand(); 47 47 SetConsoleCommand(HumanController, fire, true).keybindMode(KeybindMode::OnHold); 48 SetConsoleCommand(HumanController, altFire, true).keybindMode(KeybindMode::OnHold);49 48 SetConsoleCommand(HumanController, boost, true).keybindMode(KeybindMode::OnHold); 50 49 SetConsoleCommand(HumanController, greet, true); … … 109 108 } 110 109 111 void HumanController::fire( )110 void HumanController::fire(unsigned int firemode) 112 111 { 113 112 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 114 HumanController::localController_s->controllableEntity_->fire(WeaponMode::fire); 115 } 116 117 void HumanController::altFire() 118 { 119 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 120 HumanController::localController_s->controllableEntity_->fire(WeaponMode::altFire); 113 HumanController::localController_s->controllableEntity_->fire(firemode); 121 114 } 122 115 -
code/branches/weapons/src/orxonox/objects/controllers/HumanController.h
r2662 r2912 51 51 static void rotateRoll(const Vector2& value); 52 52 53 static void fire(); 54 static void altFire(); 53 static void fire(unsigned int firemode); 55 54 56 55 static void boost();
Note: See TracChangeset
for help on using the changeset viewer.