View Single Post
Author Message
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 08-24-2011 , 11:00   [TF2Items] Bot Weapon Randomizer v2.2.15 (08 Oct 2013)
Reply With Quote #1

What is it?
Auto-bot-custom-weapon-giver. OH SHI~
How it looks like?
Screenshots: #1, #2, #3, #4, #5, #6, #7.
Dependencies:
SourceMod 1.5+;
TF2Items extension;
TF2ItemsInfo plugin.
Optional:
TF2Items Randomizer's gamedata.
Updater plugin.
Who is credit to team?
* FlaminSarge - bug fixes,
* Jwu - bug reports
* Lolwutman - bug reports
How to install?
Step 01: Install TF2Items extension
Step 02: Install TF2 Items Info plugin
Step 03: Get tf2items.randomizer.txt from this thread
Step 04: Put tf2items.randomizer.txt in /addons/sourcemod/gamedata/
Step 06: Download files from below
Step 07: Put tf2ibwr.smx in /addons/sourcemod/plugins/
Step 08: Put tf2ibwr.schema.txt in /addons/sourcemod/configs/
Step 091: Put tf2ibwr.sp in /addons/sourcemod/scripting/
How to configure?
You're able to use different config file by changing tf2items_bwr_config.
See default config file for details.
List of TF2 items.
Known issues?
1/ Equip conflicts is still here. Nothing I can do.
2/ Some new items might be buggy. Fix - set their drop_chance 0.
3/ Unusual weapons with unusual effects. Fixed!
4/ Bots are without bodies after update? It's outdated gamedata! Also, temporary fix - disable wearables via cvar.
ToDo list:
* Use itemsets from items_game.txt;
* Option to change loadout after number of (often) deaths.
CVars & CMDs:
PHP Code:
tf2items_botweprand_version // version
tf2items_bwr_enable 1 // enable/disable plugin
tf2items_bwr_debug 0 // enable/disable debug (item giving tracking)
tf2items_bwr_updater 1 // enable/disable autoupdate
tf2items_bwr_memory 1 // toggle saving last items
tf2items_bwr_config "tf2ibwr.schema.txt" // set config file
tf2items_bwr_checkforempty 1 // give (or not) a weapon if slot is empty
tf2items_bwr_checkformode 1 // toggle SuddenDeath and Medieval detecting
tf2items_bwr_checkforstocks 1 // checking for stock items
tf2items_bwr_checkdelay 0.1 // delayed checking
tf2items_bwr_logs 1 // enable/disable logs
tf2items_bwr_wearables 1 // enable/disable wearables (ex: chargin' targe)
// commands
tf2items_bwr_refresh // reload config file 
Changeogs:

Code:
08.10.13:
  * Version: 2.2.15:
    * Increased index max length;
    * Added warning message when same index is used more that once;
    * Updated configs.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
    * tf2ibwr.schema.nosets.txt
04.10.13:
  * Version: 2.2.14:
    * Added feature to set range o indexes in config files;
    * Updated configs.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
    * tf2ibwr.schema.nosets.txt
21.07.13:
  * Version: 2.2.13:
    * Fixed engineers couldn't build.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
14.06.13:
  * Version: 2.2.12:
    * No actual changes.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
13.06.13:
  * Version: 2.2.11:
    * Attempt to fix memory leak.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
12.06.13:
  * Version: 2.2.10:
    * Attempt to fix memory leak.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
25.12.12:
  * Version: 2.2.9:
    * Improved debug mode:
      * No more console spam with duplicate messages;
      * Detailed logs.
    * Updated configs:
      * Disabled festive sandwish
      * Disabled vaccinator (probably crashing server)
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
16.09.12:
  * Version: 2.2.8:
    * Actually fixed weapon removing on melee-only sudden death.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
15.09.12:
  * Version: 2.2.7:
    * Improved melee-only detection.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
11.09.12:
  * Version: 2.2.6:
    * Probably fixed weapon removing on melee-only sudden death.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
    * tf2ibwr.schema.nosets.txt
29.09.12:
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
    * tf2ibwr.schema.nosets.txt
28.09.12:
  * Version: 2.2.5:
    * Added Dr Enforcicle (spy) set;
    * Updated Winter Heavy set (replaced Normal Minigun with Festive Minigun);
    * Added tf2ibwr_getchance so you can test item chances;
    * Added tf2items_bwr_updater console variable so you can disable autoupdate.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
    * tf2ibwr.schema.nosets.txt
    * tf2ibwr.schema.medieval.txt
11.09.12:
  * Version: 2.2.4:
    * Fixed Spirit Of Giving attributes.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
02.09.12:
  * Version: 2.2.3:
    * Updated item selection (one more time).
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
01.09.12:
  * Version: 2.2.2:
    * Fixed stock weapons aren't removed if their drop_chance 0;
    * Fixed equiping last of items per slot, even if it has drop_chance 0;
    * Probably added per-class item chances;
    * Fixed bots can't equip primary/secondary weapons on medieval.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
28.08.12:
  * Version: 2.2.1:
    * Fixed annoying log errors on medieval.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
27.08.12:
  * Version: 2.2.0:
    * Synchronized with latest TF2ItemsInfo version (1.8.0);
    * Added ItemSets.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
22.07.12:
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
19.07.12:
  * Version: 2.1.24:
    * Fixed bots are forgot about primary/secondary weapons on medieval mode.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
17.07.12:
  * Version: 2.1.23:
    * Fixed global vintage/genuine/strange/paint/community chances aren't being applied.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
14.07.12:
  * Version: 2.1.22:
    * Fixed pyrovision glasses attribute value.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
11.07.12:
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
06.07.12:
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
05.07.12:
  * Version: 2.1.21:
    * Fixed part of code where gets a random item;
    * Limit of single section with multiple items - 64.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
02.07.12:
  * Version: 2.1.20:
    * Now you can set global drop chance:
	  * To use config file as whitelist, set global drop chance 0;
	* Renamed option 'chance' to 'drop_chance'.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
01.07.12:
  * Version: 2.1.19:
    * Now you can set chances for multiple items.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
29.06.12:
  * Version: 2.1.18:
    * Added back tf2items_bwr_wearables cvar.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
    * tf2ibwr.schema.txt
24.06.12:
  * Version: 2.1.17:
    * Added tf2items_bwr_logs cvar.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
18.06.12:
  * Version: 2.1.16:
    * Fixed unusual weapons with unusual effects bug.
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.sp
06.06.12:
  * Version: 2.1.15:
    * Fixed broken quality 13 (haunted):
      * If you still getting errors with quality 12 (completed), update your TF2Items extension;
    * Synchronized with latest TF2ItemsInfo version (1.7.7).
  * Files updated:
    * tf2ibwr.smx
    * tf2ibwr.schema.txt
    * tf2ibwr.sp
2.1.14:
  * Compatibility with future TF2Items Randomizer update.
2.1.13:
  * Fixed MEMORY LEAK errors.
2.1.12:
  * Fixed damn Sudden Death bug that allows engineers to build when melee-only enabled!
2.1.11:
  * Minor bugs fixes.
2.1.10:
  * Community items!
2.1.9:
  * Synchronized with latest TF2ItemsInfo version (1.7.3).
2.1.8:
  * Added strange weapons.
2.1.7:
  * Now ckecking for equip conflicts!
2.1.6:
  * Updated with latest TF2ItemsInfo changes;
  * Improved code;
  * Updated TF2IBWR_OnGiveItem so if bMemory is true, returning Plugin_Handled will force plugin to look for another item;
  * Paint, vintage, genuine, and unusual chances per item!
2.1.5:
  * Wiki Cap quality fix;
  * Added TF2IBWR_OnGiveItem forward;
  * Fixed stripping items on sudden death;
  * Fixed bug with saxxy-based items (and saxxy itself).
2.1.4:
  * Fixed holiday restrictions;
  * Now supports GoD-Tony's Updater plugin.
2.1.3:
  * Bug fixes. Many of them!
2.1.2:
  * Fixed working with stocks.
2.1.1:
  * Fixed compatibility with TFItems GiveWeapon/Randomizer plugins.
2.1.0:
  * Updated so plugin now based on TF2ItemsInfo plugin.
2.0.9:
  * Fixed memory leaks
2.0.8:
  * New console variables:
    * 'tf2items_bwr_checkforstocks' - checking for stock items;
    * 'tf2items_bwr_checkdelay' - delayed checking.
2.0.7:
  * Removed 'tf2items_bwr_wearables' console variable;
  * New console variables:
    * 'tf2items_bwr_checkforempty' - checking for empty slots. if slot empty, so, slot must be empty, plugin will not give weapon or inter in this slot;
    * 'tf2items_bwr_checkformode' - enable/disable SuddenDeath and Medieval detecting.
2.0.6:
  * Fixed prefabs not parsed correctly.
2.0.5:
  * Fixed item memory again (so now can remember attributes);
  * More hardcoded halloween and haunted items;
  * Added Wiki Cap blocking to default config file;
  * Vintage and genuine weapons and hats;
  * Setting to disable ugradeable stock weapons;
  * Fixed random paint cans choosing.
2.0.4:
  * Fixed item memory fails;
  * Fixed haunted wearable items;
  * No more action items.
2.0.3:
  * Fixed config file parser;
  * Fixed wearing wearable weapons.
2.0.2:
  * Fixed unusual and painted items not getting their attributes;
  * Added configs with forbidden 'food';
  * Hardcoded items which can be used on Medieval mode.
2.0.1:
  * Paint cans support (paints items with real paints);
  * Hardcoded list of items which can be unusual;
  * Fixed empty attributes bug.
2.0.0:
  * Fully rewrited;
  * Items data comes from items_game.txt so no need to add items manually.
1.2.0:
  * Updated configs.
1.1.9:
  * Added tf2items_botweprand_holidays to enable/disable using only holiday hats during holidays.
1.1.8:
  * Fixed deprecated function OnGetHoliday.
1.1.7:
	<s>* Disabled hats due to latest update;</s>
  * Ability to disable hats (CIY).
1.1.6:
  * ????
1.1.5:
  * New config file format.
1.1.4:
  * Added tf2items_botweprand_file ConVar so you can change item schema faster;
  * Added tf2items_botweprand_stock_weapons;
  * Fixed equiping null item (baseball bat).
1.1.3 (hidden update):
  * Blocked unusual Ghastly Gibus;
  * Fixed minor bugs.
1.1.3:
  * Fixed civilian pose bug.
1.1.2:
  * Fixed engineer's ammo bug.
1.1.1:
  * Fixed tf2items_botweprand_keep_weapon with 0 value.
1.1.0:
  * Hats! OH SHI-!
1.0.13:
  * Fixed force-medieval-weapons-giver.
1.0.12:
  * Minor issues...
1.0.11:
  * Auto-disabling when TF2ItemsRandomizer is active.
1.0.10:
  * Added tf2items_botweprand_reload command.
1.0.9:
  * ????
1.0.8:
  * Added includable item list;
  * Fixed fail with giving permanent items by TF2ItemsGiveWeapon plugin.
1.0.7:
  * Added new items.
1.0.6:
  * Added new items.
1.0.5:
  * Removed Jarate (bots can't use this);
  * Added tf2items_givebotweapon_enable ConVar.
1.0.4:
  * Fixed sudden death restriction.
1.0.3:
  * Now bots can safely use wrenches.
1.0.2:
  * Added little delay when bot spawned.
1.0.1:
  * Removed soldier's buff items (bots can't use this).
1.0.0: (24.08.11)
  * Initial release.
Old versions:
v1.1.4 (with configs), v1.2.0 (with configs), v2.0.9 (with config)
__________________
1 - optional
Attached Files
File Type: smx tf2ibwr.smx (26.1 KB, 3933 views)
File Type: sp Get Plugin or Get Source (tf2ibwr.sp - 2839 views - 58.8 KB)
File Type: zip configs.zip (13.4 KB, 3870 views)
__________________

Last edited by Leonardo; 05-04-2019 at 08:18. Reason: removed dead links
Leonardo is offline