View Single Post
Author Message
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 03-10-2022 , 00:09   [L4D & L4D2] Indomitable Survivor Bot v1.9 [2-December-2022]
Reply With Quote #1

about
  • i cant tolerate bot too stupid on expert realism anymore, at least dont die so early
  • i known we have Cheat Survivor Bot, but it work heavy and unmaintained error, well i write i needed by self, this is very lite
  • you can boost survivor bot weapon speed / infinity ammo / movement speed / gravity
  • resistances the receive damage and recover health possible
  • prevents control from special infecteds
  • auto revive from ledge grabbed
  • temporary disable damage resistance when human player gets down
  • temporary disable movements modify when be controlled

ConVar

PHP Code:
// allow infinity ammo 1=infinity clip 2=infinity reserved ammo 0=disable
// 0.5=half chance to reserved ammo -0.5=half chance to clip ammo
indomitable_bot_infinity_ammo "1"

// amount of resistance damage, calculate after res_rate multiplied 0=disable
indomitable_bot_res_damage_amount "2.0"

// multiplier of resistance damage 0.1=90% resistanced 0=disable
indomitable_bot_res_damage_rate "0.1"

// allow regenerate health when damage resistance calculated as negative value 
// 0=disable -1=recovery only 1=regen and no limited 2=recovery but limited max
indomitable_bot_res_damage_regen "-1"

// which actions will be bosost on bot, add numbers together you want
//  -1=All 31=All 1=firing 2=deploying 4=reloading 8=melee 16=throwing
indomitable_bot_boost_actions "-1"

// rate of boost weapon speed
indomitable_bot_boost_rate "2.0"

// which sources of receive damage will be resistance
// 1=common zomobie 2=special infected 4=survivor bot 8=survivor human 16=others -1=All 31=All
indomitable_bot_res_damage_sources "15"

// speed rate of bot movement
indomitable_bot_movement_rate "2.0"

// gravity rate of bot jumping and fallen
indomitable_bot_gravity_rate "1.0"

// make bot indomitable abilities need alive human, 1=need alive 2=need stand on ground 0=do not check
indomitable_bot_need_human "2"

// prevent be control from: 1=charger 2=hunter 4=smoker 8=jockey -1=All 15=All
// add numbers together you want, require 'Left 4 Dhooks Direct'
indomitable_bot_block_control "-1"

// prevent the ledge grab -1=dont prevent 0=instantly 1.0=prevent after 1.0 seconds, require 'Left 4 Dhooks Direct'
indomitable_bot_block_ledgegrab "-1"

// does allow bot has infinity throwable usage,
// remember on vanilla game bot cant throw anything,
// combine to use with third-party plugins. 0.5 mean half chance
indomitable_bot_infinity_throwable "1.0" 

changelog
  • v1.0 just releases; 10-March-2022
  • v1.1 optional regen methods 'recovery only', 're-generate'; 10-March-2022(night)
  • v1.2 new features:
    optional infinity ammo methods 'infinity clip', 'infinity reserved'
    optional 'restrict damage resistance source'; 12-March-2022
  • v1.3 new features:
    optional 'movement speed modifier',
    optional 'gravity multiplier',
    optional regen methods 'recovery but limited max' ; 1-May-2022
  • v1.3.1 fix listener not remove when client disconnect; 1-May-2022(afternoon)
  • v1.4
    fix some damage source(like tank fist) bypass the plugin cause not works,
    add feature: prevents be control from charger/jockey/smoker/hunter/ledge grab, require 'Left 4 Dhooks Direct',
    add feature: optional temporary disable the bot indomitable abilities when human gets down,
    remove enabler ConVar, if you need disabled just unmount the plugin; 22-October-2022
  • v1.4.1 a negligence cause ConVar block_control detail config not work yet; 22-October-2022(2nd time)
  • v1.4.2 a little negligence cause damage modifier stacks after every map changed; 25-October-2022
  • v1.5 if damage reducement finally less than 1 then make it be random. because 0.99 cannot cause real damage; 26-October-2022
  • v1.6 Fixed changing bots gravity when they are being flung, compatibility support for the "Detonation Force" plugin (update by Silvers); 10-November-2022
  • v1.7 Fixed compatibility issue with "Weapons Movement Speed" plugin by "Silvers" (update by Silvers); 11-November-2022
  • v1.8 Now optionally uses the "Lagged Movement" plugin by "Silvers" to prevent conflicts when multiple plugins try to set player speed: (update by Silvers); 12-November-2022
  • v1.9 new features and fixes
    fix ConVar *_infinity_ammo giving ammo even bot fire failure,
    *_infinity_ammo can accepts float value between -1.0 and 1.0, 0.5 mean 50% chance to give one reserved ammo, -0.5 mean 50% chance to give one clip ammo,
    *_infinity_ammo will keep chainsaw clip full, not overflow,
    change code variable style to hungarian notation,
    if set *_movement_rate, survivor bot will back to regular movement speed temporary when bot be controlled by special infected,
    new ConVar *_infinity_throwable to allow bot infinity throwable usage, combine to use with third-party plugins. 0.5 mean half chance; 2-December-2022



Installation
Attached Files
File Type: sp Get Plugin or Get Source (l4d_indomitable_bot.sp - 653 views - 21.2 KB)
__________________

Last edited by NoroHime; 12-01-2022 at 20:15.
NoroHime is offline