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:
parent
3205e1253f
commit
215e1c15d9
3 changed files with 4 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ public:
|
|||
StringRef year { &__DATE__[7] };
|
||||
StringRef author { "YaPB Project" };
|
||||
StringRef email { "yapb@jeefo.net" };
|
||||
StringRef url { "https://yapb.ru/" };
|
||||
StringRef url { "https://yapb.jeefo.net/" };
|
||||
StringRef download { "graph.yapb.ru" };
|
||||
StringRef folder { "yapb" };
|
||||
StringRef logtag { "YB" };
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ class BotRelease (object):
|
|||
self.version = sys.argv[1]
|
||||
self.artifacts = 'artifacts'
|
||||
|
||||
self.cs = CodeSign ("YaPB", "https://yapb.ru/")
|
||||
self.cs = CodeSign ("YaPB", "https://yapb.jeefo.net/")
|
||||
|
||||
if self.cs.has ():
|
||||
print ("Code Signing Enabled")
|
||||
|
|
|
|||
|
|
@ -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_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);
|
||||
|
||||
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);
|
||||
|
|
@ -493,7 +494,7 @@ void Bot::updatePickups () {
|
|||
}
|
||||
|
||||
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)) {
|
||||
bool itemExists = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue