From 08353e6006373a85941c9a63d46eeafcf4071059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=BE=D0=B2?= <22411953+Vladislav4KZ@users.noreply.github.com> Date: Tue, 4 Jan 2022 01:29:07 +0600 Subject: [PATCH] Fixes of typos, punctuations, mistranslation (#274) --- src/botlib.cpp | 8 ++++---- src/chatlib.cpp | 2 +- src/config.cpp | 2 +- src/control.cpp | 6 +++--- src/engine.cpp | 2 +- src/manager.cpp | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/botlib.cpp b/src/botlib.cpp index a638a5c..b27bc68 100644 --- a/src/botlib.cpp +++ b/src/botlib.cpp @@ -9,7 +9,7 @@ ConVar cv_debug ("yb_debug", "0", "Enables or disables useful messages about bot states. Not required for end users.", true, 0.0f, 4.0f); ConVar cv_debug_goal ("yb_debug_goal", "-1", "Forces all alive bots to build path and go to the specified here graph node.", true, -1.0f, kMaxNodes); -ConVar cv_user_follow_percent ("yb_user_follow_percent", "20", "Specifies the percent of bots, than can follow leader on each round start.", true, 0.0f, 100.0f); +ConVar cv_user_follow_percent ("yb_user_follow_percent", "20", "Specifies the percent of bots, that can follow leader on each round start.", true, 0.0f, 100.0f); ConVar cv_user_max_followers ("yb_user_max_followers", "1", "Specifies how many bots can follow a single user.", true, 0.0f, static_cast (kGameMaxPlayers / 4)); ConVar cv_jasonmode ("yb_jasonmode", "0", "If enabled, all bots will be forced only the knife, skipping weapon buying routines."); @@ -20,11 +20,11 @@ ConVar cv_walking_allowed ("yb_walking_allowed", "1", "Specifies whether bots ab ConVar cv_camping_allowed ("yb_camping_allowed", "1", "Allows or disallows bots to camp. Doesn't affects bomb/hostage defending tasks."); ConVar cv_camping_time_min ("yb_camping_time_min", "15.0", "Lower bound of time from which time for camping is calculated", true, 5.0f, 90.0f); -ConVar cv_camping_time_max ("yb_camping_time_max", "45.0", "Upper bound of time from which time for camping is calculated", true, 15.0f, 120.0f); +ConVar cv_camping_time_max ("yb_camping_time_max", "45.0", "Upper bound of time until which time for camping is calculated", true, 15.0f, 120.0f); ConVar cv_tkpunish ("yb_tkpunish", "1", "Allows or disallows bots to take revenge of teamkillers / team attacks."); -ConVar cv_freeze_bots ("yb_freeze_bots", "0", "If enabled the bots think function is disabled, so bots will not move anywhere from their spawn spots."); -ConVar cv_spraypaints ("yb_spraypaints", "1", "Allows or disallows the use of spay paints."); +ConVar cv_freeze_bots ("yb_freeze_bots", "0", "If enabled, the bots think function is disabled, so bots will not move anywhere from their spawn spots."); +ConVar cv_spraypaints ("yb_spraypaints", "1", "Allows or disallows the use of spray paints."); ConVar cv_botbuy ("yb_botbuy", "1", "Allows or disallows bots weapon buying routines."); ConVar cv_destroy_breakables_around ("yb_destroy_breakables_around", "1", "Allows bots to destroy breakables around him, even without touching with them."); ConVar cv_object_pickup_radius ("yb_object_pickup_radius", "450.0", "The radius on which bot searches world for new objects, items, and weapons.", true, 64.0f, 1024.0f); diff --git a/src/chatlib.cpp b/src/chatlib.cpp index 319c7cd..e407a8c 100644 --- a/src/chatlib.cpp +++ b/src/chatlib.cpp @@ -8,7 +8,7 @@ #include ConVar cv_chat ("yb_chat", "1", "Enables or disables bots chat functionality."); -ConVar cv_chat_percent ("yb_chat_percent", "30", "Chances bot will send random dead chat when killed.", true, 0.0f, 100.0f); +ConVar cv_chat_percent ("yb_chat_percent", "30", "Bot chances to send random dead chat when killed.", true, 0.0f, 100.0f); void BotSupport::stripTags (String &line) { if (line.empty ()) { diff --git a/src/config.cpp b/src/config.cpp index de79b28..df8d44c 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -7,7 +7,7 @@ #include -ConVar cv_bind_menu_key ("yb_bind_menu_key", "=", "Bind's specified key for opening bots menu.", false); +ConVar cv_bind_menu_key ("yb_bind_menu_key", "=", "Binds specified key for opening bots menu.", false); ConVar cv_ignore_cvars_on_changelevel ("yb_ignore_cvars_on_changelevel", "yb_quota,yb_autovacate", "Specifies comma separated list of bot cvars, that will not be overriten by config on changelevel.", false); BotConfig::BotConfig () { diff --git a/src/control.cpp b/src/control.cpp index 0a97b55..2f08ae6 100644 --- a/src/control.cpp +++ b/src/control.cpp @@ -8,7 +8,7 @@ #include ConVar cv_display_menu_text ("yb_display_menu_text", "1", "Enables or disables display menu text, when players asks for menu. Useful only for Android."); -ConVar cv_password ("yb_password", "", "The value (password) for the setinfo key, if user set's correct password, he's gains access to bot commands and menus.", false, 0.0f, 0.0f, Var::Password); +ConVar cv_password ("yb_password", "", "The value (password) for the setinfo key, if user sets correct password, he's gains access to bot commands and menus.", false, 0.0f, 0.0f, Var::Password); ConVar cv_password_key ("yb_password_key", "_ybpw", "The name of setinfo key used to store password to bot commands and menus.", false); int BotControl::cmdAddBot () { @@ -526,7 +526,7 @@ int BotControl::cmdNodeDelete () { // turn graph on graph.setEditFlag (GraphEdit::On); - // if "neareset" or nothing passed delete neareset, else delete by index + // if "nearest" or nothing passed delete nearest, else delete by index if (strValue (nearest).empty () || strValue (nearest) == "nearest") { graph.erase (kInvalidNodeIndex); } @@ -700,7 +700,7 @@ int BotControl::cmdNodePathDelete () { // turn graph on graph.setEditFlag (GraphEdit::On); - // delete the patch + // delete the path graph.erasePath (); return BotCommandResult::Handled; diff --git a/src/engine.cpp b/src/engine.cpp index 6801aab..d1574f0 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -7,7 +7,7 @@ #include -ConVar cv_csdm_mode ("yb_csdm_mode", "0", "Enables or disables CSDM / FFA mode for bots.\nAllowed values: '0', '1', '2', '3'.\nIf '0', CSDM / FFA mode is auto-detected.\nIf '1', CSDM mode is enabled, but FFA is disabled.\nIf '2' CSDM and FFA mode is enabled.\nIf '3' CSDM and FFA mode is disabled.", true, 0.0f, 3.0f); +ConVar cv_csdm_mode ("yb_csdm_mode", "0", "Enables or disables CSDM / FFA mode for bots.\nAllowed values: '0', '1', '2', '3'.\nIf '0', CSDM / FFA mode is auto-detected.\nIf '1', CSDM mode is enabled, but FFA is disabled.\nIf '2', CSDM and FFA mode is enabled.\nIf '3', CSDM and FFA mode is disabled.", true, 0.0f, 3.0f); ConVar sv_skycolor_r ("sv_skycolor_r", nullptr, Var::GameRef); ConVar sv_skycolor_g ("sv_skycolor_g", nullptr, Var::GameRef); diff --git a/src/manager.cpp b/src/manager.cpp index 1b0780a..4a194ef 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -26,7 +26,7 @@ ConVar cv_difficulty_min ("yb_difficulty_min", "-1", "Lower bound of random diff ConVar cv_difficulty_max ("yb_difficulty_max", "-1", "Upper bound of random difficulty on bot creation. Only affects newly created bots. -1 means yb_difficulty only used.", true, -1.0f, 4.0f); ConVar cv_difficulty_auto ("yb_difficulty_auto", "0", "Enables each bot balances own difficulty based kd-ratio of team.", true, 0.0f, 1.0f); -ConVar cv_show_avatars ("yb_show_avatars", "1", "Enables or disabels displaying bot avatars in front of their names in scoreboard. Note, that is currently you can see only avatars of your steam friends."); +ConVar cv_show_avatars ("yb_show_avatars", "1", "Enables or disables displaying bot avatars in front of their names in scoreboard. Note, that is currently you can see only avatars of your steam friends."); ConVar cv_show_latency ("yb_show_latency", "2", "Enables latency display in scoreboard.\nAllowed values: '0', '1', '2'.\nIf '0', there is nothing displayed.\nIf '1', there is a 'BOT' is displayed.\nIf '2' fake ping is displayed.", true, 0.0f, 2.0f); ConVar cv_save_bots_names ("yb_save_bots_names", "1", "Allows to save bot names upon changelevel, so bot names will be the same after a map change", true, 0.0f, 1.0f);