diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-28 19:36:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-28 19:36:50 +0300 |
commit | a5e3d86efb85bb2a65e160972cc56e89cd764453 (patch) | |
tree | f385447603a24a3898b493ce131b4edf8abd86ab /src/input | |
parent | 8bfdc250ae7c5ab852653b3aa2da7f3781c7c56e (diff) | |
download | mv-a5e3d86efb85bb2a65e160972cc56e89cd764453.tar.gz mv-a5e3d86efb85bb2a65e160972cc56e89cd764453.tar.bz2 mv-a5e3d86efb85bb2a65e160972cc56e89cd764453.tar.xz mv-a5e3d86efb85bb2a65e160972cc56e89cd764453.zip |
Add chat command for stop and start pet ai.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 2 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 18 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 67bf95161..59134de0f 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -524,6 +524,8 @@ namespace InputAction PET_DIRECT_DOWN, PET_DIRECT_LEFT, PET_DIRECT_RIGHT, + PET_AI_START, + PET_AI_STOP, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index c5d9d9d76..8c09001a2 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4460,6 +4460,24 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::INGAME, "petdirectright|directrightpet", false}, + {"keyPetAiStart", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::petAiStart, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "petaistart|startpetai", + false}, + {"keyPetAiStop", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::petAiStop, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "petaistop|stoppetai", + false}, }; #endif // INPUT_INPUTACTIONMAP_H |