add: yb_object_pickup_radius cvar. fixes #256.

refactor: switch from yapb.ru to yapb.jeefo.net as default url.
This commit is contained in:
dmitry 2021-11-15 12:10:18 +03:00
commit 215e1c15d9
No known key found for this signature in database
GPG key ID: 8297CE728B7A7E37
3 changed files with 4 additions and 3 deletions

View file

@ -32,7 +32,7 @@ public:
StringRef year { &__DATE__[7] }; StringRef year { &__DATE__[7] };
StringRef author { "YaPB Project" }; StringRef author { "YaPB Project" };
StringRef email { "yapb@jeefo.net" }; StringRef email { "yapb@jeefo.net" };
StringRef url { "https://yapb.ru/" }; StringRef url { "https://yapb.jeefo.net/" };
StringRef download { "graph.yapb.ru" }; StringRef download { "graph.yapb.ru" };
StringRef folder { "yapb" }; StringRef folder { "yapb" };
StringRef logtag { "YB" }; StringRef logtag { "YB" };

View file

@ -113,7 +113,7 @@ class BotRelease (object):
self.version = sys.argv[1] self.version = sys.argv[1]
self.artifacts = 'artifacts' self.artifacts = 'artifacts'
self.cs = CodeSign ("YaPB", "https://yapb.ru/") self.cs = CodeSign ("YaPB", "https://yapb.jeefo.net/")
if self.cs.has (): if self.cs.has ():
print ("Code Signing Enabled") print ("Code Signing Enabled")

View file

@ -27,6 +27,7 @@ ConVar cv_freeze_bots ("yb_freeze_bots", "0", "If enabled the bots think functio
ConVar cv_spraypaints ("yb_spraypaints", "1", "Allows or disallows the use of spay paints."); ConVar cv_spraypaints ("yb_spraypaints", "1", "Allows or disallows the use of spay paints.");
ConVar cv_botbuy ("yb_botbuy", "1", "Allows or disallows bots weapon buying routines."); 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_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);
ConVar cv_chatter_path ("yb_chatter_path", "sound/radio/bot", "Specifies the paths for the bot chatter sound files.", false); ConVar cv_chatter_path ("yb_chatter_path", "sound/radio/bot", "Specifies the paths for the bot chatter sound files.", false);
ConVar cv_restricted_weapons ("yb_restricted_weapons", "", "Specifies semicolon separated list of weapons that are not allowed to buy / pickup.", false); ConVar cv_restricted_weapons ("yb_restricted_weapons", "", "Specifies semicolon separated list of weapons that are not allowed to buy / pickup.", false);
@ -493,7 +494,7 @@ void Bot::updatePickups () {
} }
const auto &intresting = bots.getIntrestingEntities (); const auto &intresting = bots.getIntrestingEntities ();
const float radius = cr::square (500.0f); const float radius = cr::square (cv_object_pickup_radius.float_ ());
if (!game.isNullEntity (m_pickupItem)) { if (!game.isNullEntity (m_pickupItem)) {
bool itemExists = false; bool itemExists = false;