summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-28 19:36:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-28 19:36:50 +0300
commita5e3d86efb85bb2a65e160972cc56e89cd764453 (patch)
treef385447603a24a3898b493ce131b4edf8abd86ab /src/input
parent8bfdc250ae7c5ab852653b3aa2da7f3781c7c56e (diff)
downloadplus-a5e3d86efb85bb2a65e160972cc56e89cd764453.tar.gz
plus-a5e3d86efb85bb2a65e160972cc56e89cd764453.tar.bz2
plus-a5e3d86efb85bb2a65e160972cc56e89cd764453.tar.xz
plus-a5e3d86efb85bb2a65e160972cc56e89cd764453.zip
Add chat command for stop and start pet ai.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h2
-rw-r--r--src/input/inputactionmap.h18
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