- Timestamp:
- Apr 9, 2009, 3:18:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.