[TF2, linux] PLRBots

Release your plugins here!
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

[TF2, linux] PLRBots

Postby iPlayer » Tue Apr 25, 2017 8:51 am

[TF2, linux] PLRBots


Description
Huge thanks to L'In20Cible and Ayuto for helping me with the reverse-engineering stuff. Without them this plugin wouldn't be possible.

This plugin makes TF2 bots work on PLR maps such as plr_pipeline (bots are officially not supposed to work on this type of maps).

Basically it turns on their default behavior for regular payload maps. What's more, the plugin dedicates a bot to a certain "profession" on its spawn - the bot will either defend the base from the enemy cart or push its own cart. The chance of choosing defending or attacking professions depends on what class the bot is and is configurable.

This plugin is also able to trick bots into thinking that there's no setup time. What for? Because on the said plr_pipeline there's no setup timer on the third stage of the map, and bots always think it's a setup time. They won't attack, push the cart etc. This workaround makes them do all that stuff.

Another feature is forcing bots to sometimes change their class on death. For some reason they don't do this on PLR maps.

Note: currently this plugin is not able to enable bots on Windows SRCDS.

Config sample

Syntax: Select all

// ######################################################################### //
// SETUP TIME FIX //
// ######################################################################### //

// Default Value: 1
// Immediately cancel setup on round start. This only helps to fix bots'
// invalid behavior on some maps, this doesn't in any way shorten the real
// setup counter, open any doors or change the map gameplay in any other way.
plrbots_force_disable_setup_time 1


// ######################################################################### //
// CLASS AUTO-CHANGING //
// ######################################################################### //

// Default Value: 0.2
// The chance that a bot will choose a new class on death. Bot will try to
// select the least popular class.
plrbots_class_change_chance 0.2


// ######################################################################### //
// BOT PROFESSIONS //
// ######################################################################### //

// Default Value: 1.0
// The chance that a newly spawned scout will decide to push (otherwise he will
// defend)
plrbots_scout_push_chance 1.0


// Default Value: 0.0
// The chance that a newly spawned sniper will decide to push (otherwise he
// will defend)
plrbots_sniper_push_chance 0.0


// Default Value: 0.75
// The chance that a newly spawned soldier will decide to push (otherwise he
// will defend)
plrbots_soldier_push_chance 0.75


// Default Value: 0.5
// The chance that a newly spawned demoman will decide to push (otherwise he
// will defend)
plrbots_demo_push_chance 0.5


// Default Value: 0.5
// The chance that a newly spawned medic will decide to push (otherwise he will
// defend)
plrbots_medic_push_chance 0.5


// Default Value: 0.75
// The chance that a newly spawned heavy will decide to push (otherwise he will
// defend)
plrbots_heavy_push_chance 0.75


// Default Value: 0.5
// The chance that a newly spawned pyro will decide to push (otherwise he will
// defend)
plrbots_pyro_push_chance 0.5


// Default Value: 1.0
// The chance that a newly spawned spy will decide to push (otherwise he will
// defend)
plrbots_spy_push_chance 1.0


// Default Value: 0.5
// The chance that a newly spawned engineer will decide to push (otherwise he
// will defend)
plrbots_engineer_push_chance 0.5


Installation
  1. Install ControlledCvars custom package
  2. Download the latest development snapshot of this plugin
  3. Extract contents of the SP-PLRBots-master directory to your tf folder
  4. Add the following line to server.cfg (some problems were found when this plugin is loaded on server startup):
    sp plugin load plrbots

NAV-files
plr_pipeline.nav
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Re: [TF2, linux] PLRBots

Postby iPlayer » Tue Apr 25, 2017 8:56 pm

PLRBots update

The plugin now supports more accurate bot class balancing when a Class Limit plugin is available
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image

Return to “Plugin Releases”

Who is online

Users browsing this forum: No registered users and 15 guests