summaryrefslogtreecommitdiff
path: root/src/input/inputactionmap.h
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/inputactionmap.h
parent99b516c9b20e696ddf3897bff9bc6686debf0f5a (diff)
downloadmv-91160e197b1a1f85f21cfad874e80fa286d9294f.tar.gz
mv-91160e197b1a1f85f21cfad874e80fa286d9294f.tar.bz2
mv-91160e197b1a1f85f21cfad874e80fa286d9294f.tar.xz
mv-91160e197b1a1f85f21cfad874e80fa286d9294f.zip
Add chat command for use item by id.
New chat command: /use ITEMID Alias: /useitem ITEMID
Diffstat (limited to 'src/input/inputactionmap.h')
-rw-r--r--src/input/inputactionmap.h9
1 files changed, 9 insertions, 0 deletions
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