Merge pull request #438 from yapb/vladislav4kz-patch
Some fixes and additions
This commit is contained in:
commit
bfe459e758
4 changed files with 65 additions and 23 deletions
|
|
@ -920,12 +920,10 @@ You have been teleported to node %d.
|
||||||
Sie wurden zum Knoten %d teleportiert.
|
Sie wurden zum Knoten %d teleportiert.
|
||||||
|
|
||||||
[ORIGINAL]
|
[ORIGINAL]
|
||||||
Graph not saved
|
Graph not saved. There are errors, see console...
|
||||||
There are errors. See console...
|
|
||||||
|
|
||||||
[TRANSLATED]
|
[TRANSLATED]
|
||||||
Graph nicht gespeichert
|
Graph nicht gespeichert. Es liegen Fehler vor, siehe Konsole...
|
||||||
Es liegen Fehler vor. Siehe Konsole...
|
|
||||||
|
|
||||||
[ORIGINAL]
|
[ORIGINAL]
|
||||||
There are errors, see console
|
There are errors, see console
|
||||||
|
|
|
||||||
|
|
@ -1013,12 +1013,24 @@ Unable to save POD-Bot Format waypoint file. Number of nodes exceeds 1024.
|
||||||
[TRANSLATED]
|
[TRANSLATED]
|
||||||
Невозможно сохранить вэйпоинт файл в формате POD-Bot. Количество точек превышает 1024.
|
Невозможно сохранить вэйпоинт файл в формате POD-Bot. Количество точек превышает 1024.
|
||||||
|
|
||||||
|
[ORIGINAL]
|
||||||
|
Graph successfully saved.
|
||||||
|
|
||||||
|
[TRANSLATED]
|
||||||
|
Граф успешно сохранён.
|
||||||
|
|
||||||
[ORIGINAL]
|
[ORIGINAL]
|
||||||
Graph successfully loaded.
|
Graph successfully loaded.
|
||||||
|
|
||||||
[TRANSLATED]
|
[TRANSLATED]
|
||||||
Граф успешно загружен.
|
Граф успешно загружен.
|
||||||
|
|
||||||
|
[ORIGINAL]
|
||||||
|
Could not save Graph. See console...
|
||||||
|
|
||||||
|
[TRANSLATED]
|
||||||
|
Невозможно сохранить граф. Смотри консоль...
|
||||||
|
|
||||||
[ORIGINAL]
|
[ORIGINAL]
|
||||||
Could not load Graph. See console...
|
Could not load Graph. See console...
|
||||||
|
|
||||||
|
|
@ -1044,12 +1056,10 @@ You have been teleported to node %d.
|
||||||
Вы были телепортированы к точке %d.
|
Вы были телепортированы к точке %d.
|
||||||
|
|
||||||
[ORIGINAL]
|
[ORIGINAL]
|
||||||
Graph not saved
|
Graph not saved. There are errors, see console...
|
||||||
There are errors. See console...
|
|
||||||
|
|
||||||
[TRANSLATED]
|
[TRANSLATED]
|
||||||
Graph не сохранён
|
Graph не сохранён. Есть ошибки, смотри консоль...
|
||||||
Есть ошибки, смотри консоль
|
|
||||||
|
|
||||||
[ORIGINAL]
|
[ORIGINAL]
|
||||||
There are errors, see console
|
There are errors, see console
|
||||||
|
|
@ -1075,6 +1085,18 @@ Debug goal is disabled.
|
||||||
[TRANSLATED]
|
[TRANSLATED]
|
||||||
Отладка цели отключена.
|
Отладка цели отключена.
|
||||||
|
|
||||||
|
[ORIGINAL]
|
||||||
|
Noclip mode disabled.
|
||||||
|
|
||||||
|
[TRANSLATED]
|
||||||
|
Режим полёта выключен.
|
||||||
|
|
||||||
|
[ORIGINAL]
|
||||||
|
Noclip mode enabled.
|
||||||
|
|
||||||
|
[TRANSLATED]
|
||||||
|
Режим полёта включён.
|
||||||
|
|
||||||
[ORIGINAL]
|
[ORIGINAL]
|
||||||
You're dead, and have no access to this menu
|
You're dead, and have no access to this menu
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -396,16 +396,30 @@ int BotControl::cmdNodeOn () {
|
||||||
else if (strValue (option) == "noclip") {
|
else if (strValue (option) == "noclip") {
|
||||||
m_ent->v.movetype = MOVETYPE_NOCLIP;
|
m_ent->v.movetype = MOVETYPE_NOCLIP;
|
||||||
|
|
||||||
graph.setEditFlag (GraphEdit::On | GraphEdit::Noclip);
|
if (graph.hasEditFlag (GraphEdit::On)) {
|
||||||
enableDrawModels (true);
|
graph.setEditFlag (GraphEdit::Noclip);
|
||||||
|
|
||||||
msg ("Graph editor has been enabled with noclip mode.");
|
msg ("Noclip mode enabled.");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
graph.setEditFlag (GraphEdit::On | GraphEdit::Noclip);
|
||||||
|
enableDrawModels (true);
|
||||||
|
|
||||||
|
msg ("Graph editor has been enabled with noclip mode.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (strValue (option) == "auto") {
|
else if (strValue (option) == "auto") {
|
||||||
graph.setEditFlag (GraphEdit::On | GraphEdit::Auto);
|
if (graph.hasEditFlag (GraphEdit::On)) {
|
||||||
enableDrawModels (true);
|
graph.setEditFlag (GraphEdit::Auto);
|
||||||
|
|
||||||
msg ("Graph editor has been enabled with auto add node mode.");
|
msg ("Enabled auto nodes placement.");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
graph.setEditFlag (GraphEdit::On | GraphEdit::Auto);
|
||||||
|
enableDrawModels (true);
|
||||||
|
|
||||||
|
msg ("Graph editor has been enabled with auto add node mode.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (graph.hasEditFlag (GraphEdit::On)) {
|
if (graph.hasEditFlag (GraphEdit::On)) {
|
||||||
|
|
@ -1271,6 +1285,7 @@ int BotControl::menuGraphPage2 (int item) {
|
||||||
|
|
||||||
switch (item) {
|
switch (item) {
|
||||||
case 1:
|
case 1:
|
||||||
|
graph.setEditFlag (GraphEdit::On);
|
||||||
showMenu (Menu::NodeDebug);
|
showMenu (Menu::NodeDebug);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -1301,20 +1316,31 @@ int BotControl::menuGraphPage2 (int item) {
|
||||||
case 4:
|
case 4:
|
||||||
if (graph.checkNodes (true)) {
|
if (graph.checkNodes (true)) {
|
||||||
graph.saveGraphData ();
|
graph.saveGraphData ();
|
||||||
|
msg ("Graph successfully saved.");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
msg ("Graph not saved\nThere are errors. See console...");
|
msg ("Graph not saved. There are errors, see console...");
|
||||||
}
|
}
|
||||||
showMenu (Menu::NodeMainPage2);
|
showMenu (Menu::NodeMainPage2);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
graph.saveGraphData ();
|
if (graph.saveGraphData ()) {
|
||||||
|
msg ("Graph successfully saved.");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
msg ("Could not save Graph. See console...");
|
||||||
|
}
|
||||||
showMenu (Menu::NodeMainPage2);
|
showMenu (Menu::NodeMainPage2);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 6:
|
case 6:
|
||||||
graph.loadGraphData ();
|
if (graph.loadGraphData ()) {
|
||||||
|
msg ("Graph successfully loaded.");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
msg ("Could not load Graph. See console...");
|
||||||
|
}
|
||||||
showMenu (Menu::NodeMainPage2);
|
showMenu (Menu::NodeMainPage2);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -1333,9 +1359,11 @@ int BotControl::menuGraphPage2 (int item) {
|
||||||
|
|
||||||
if (graph.hasEditFlag (GraphEdit::Noclip)) {
|
if (graph.hasEditFlag (GraphEdit::Noclip)) {
|
||||||
graph.clearEditFlag (GraphEdit::Noclip);
|
graph.clearEditFlag (GraphEdit::Noclip);
|
||||||
|
msg ("Noclip mode disabled.");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
graph.setEditFlag (GraphEdit::Noclip);
|
graph.setEditFlag (GraphEdit::Noclip);
|
||||||
|
msg ("Noclip mode enabled.");
|
||||||
}
|
}
|
||||||
showMenu (Menu::NodeMainPage2);
|
showMenu (Menu::NodeMainPage2);
|
||||||
|
|
||||||
|
|
@ -1401,8 +1429,6 @@ int BotControl::menuGraphDebug (int item) {
|
||||||
|
|
||||||
switch (item) {
|
switch (item) {
|
||||||
case 1:
|
case 1:
|
||||||
graph.setEditFlag (GraphEdit::On);
|
|
||||||
|
|
||||||
cv_debug_goal.set (graph.getEditorNearest ());
|
cv_debug_goal.set (graph.getEditorNearest ());
|
||||||
if (cv_debug_goal.int_ () != kInvalidNodeIndex) {
|
if (cv_debug_goal.int_ () != kInvalidNodeIndex) {
|
||||||
msg ("Debug goal is set to node %d.", cv_debug_goal.int_ ());
|
msg ("Debug goal is set to node %d.", cv_debug_goal.int_ ());
|
||||||
|
|
@ -1414,8 +1440,6 @@ int BotControl::menuGraphDebug (int item) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
graph.setEditFlag (GraphEdit::On);
|
|
||||||
|
|
||||||
cv_debug_goal.set (graph.getFacingIndex ());
|
cv_debug_goal.set (graph.getFacingIndex ());
|
||||||
if (cv_debug_goal.int_ () != kInvalidNodeIndex) {
|
if (cv_debug_goal.int_ () != kInvalidNodeIndex) {
|
||||||
msg ("Debug goal is set to node %d.", cv_debug_goal.int_ ());
|
msg ("Debug goal is set to node %d.", cv_debug_goal.int_ ());
|
||||||
|
|
|
||||||
|
|
@ -2610,8 +2610,6 @@ bool BotGraph::checkNodes (bool teleportPlayer) {
|
||||||
int goalPoints = 0;
|
int goalPoints = 0;
|
||||||
int rescuePoints = 0;
|
int rescuePoints = 0;
|
||||||
|
|
||||||
ctrl.setFromConsole (true);
|
|
||||||
|
|
||||||
for (const auto &path : m_paths) {
|
for (const auto &path : m_paths) {
|
||||||
int connections = 0;
|
int connections = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue