diff --git a/source/code/plugin/console/eConsole.cpp b/source/code/plugin/console/eConsole.cpp index fe7fa71..91a9feb 100644 --- a/source/code/plugin/console/eConsole.cpp +++ b/source/code/plugin/console/eConsole.cpp @@ -247,8 +247,9 @@ void ConsoleCommands::help(char * args) if (strlen(args) <= 0) TheConsole.m_messages.push_back("Usage: help <1-2>"); - if (pageID == 1) + switch (pageID) { + case 1: TheConsole.m_messages.push_back("cls - Clears console"); TheConsole.m_messages.push_back("pos - Displays player position, teleports if params are specified"); TheConsole.m_messages.push_back("ambient - Changes ambient light, values from 0.0 to 1.0, displays current if no params"); @@ -257,9 +258,8 @@ void ConsoleCommands::help(char * args) TheConsole.m_messages.push_back("fullbright - maximizes ambient light"); TheConsole.m_messages.push_back("ini_reload - reloads ini files"); TheConsole.m_messages.push_back("level_load - (broken)"); - } - if (pageID == 2) - { + break; + case 2: TheConsole.m_messages.push_back("create - Creates an entity at specified location, if none - close to player"); TheConsole.m_messages.push_back("give - Gives an entity instance specified item - item must exist"); TheConsole.m_messages.push_back("gv - Gives an item to player - item must exist"); @@ -268,6 +268,11 @@ void ConsoleCommands::help(char * args) TheConsole.m_messages.push_back("tp - Teleports entity instance to specified location, if none - close to player"); TheConsole.m_messages.push_back("list - Does something to selected entity. Type - inv, invr, data"); TheConsole.m_messages.push_back("kill "); + TheConsole.m_messages.push_back("anim - Makes entity play a body animation"); + break; + default: + TheConsole.m_messages.push_back("Usage: help <1-2>"); + break; } }