summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-12 13:40:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-12 13:40:11 +0300
commit91160e197b1a1f85f21cfad874e80fa286d9294f (patch)
tree69fe35efe151cac178ed45eb46600aee6c2b4fc9 /src/input
parent99b516c9b20e696ddf3897bff9bc6686debf0f5a (diff)
downloadplus-91160e197b1a1f85f21cfad874e80fa286d9294f.tar.gz
plus-91160e197b1a1f85f21cfad874e80fa286d9294f.tar.bz2
plus-91160e197b1a1f85f21cfad874e80fa286d9294f.tar.xz
plus-91160e197b1a1f85f21cfad874e80fa286d9294f.zip
Add chat command for use item by id.
New chat command: /use ITEMID Alias: /useitem ITEMID
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index e2fcae031..c020b3b5b 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -495,6 +495,7 @@ namespace InputAction
WHISPER2,
GUILD,
NUKE,
+ USE,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 1ae660fb0..f51f5f6f5 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -4198,6 +4198,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputCondition::INGAME,
"nuke",
true},
+ {"keyUse",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::useItem,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "use|useitem",
+ true},
};
#endif // INPUT_INPUTACTIONMAP_H