Description:
This plugins gives bots weapons. Without TF2Items and other plugins. It's supposed to replace Bot weapon randomizer -
https://forums.alliedmods.net/showthread.php?t=165590.
There is a couple of important differences:
- There is no config file for weapons. Mainly, because I didnt want to give bots items that are rare or worth anything. This plugin gives bots weapons, that can be acquired through random drop, unlocks or crafting. Unique quality only.
- Way less taxing on the server, than the original version. No problem running this on a 300fps server with 30 bots.
- No configuration is needed. Upload two files, restart the server and youre good to go.
- Doesnt give bots weapons that they dont know how to use.
- Can run alongside
Give Bots Cosmetics
Cvars:
PHP Code:
sm_gbw_version // version cvar - do not edit
sm_gbw_enabled 1 // enable/disable this plugin
sm_gbw_delay 0.1 // delay for giving weapons to bots
sm_gbw_team 1 // team to give weapons to: 1-both, 2-red, 3-blu
sm_gbw_mvm 0 // enable/disable functionality when mvm mode is enabled
Installation:
Autogenerates a .cfg file in cfg\sourcemod when you load it for the first time. Don't forget to keep your gamedata updated.
Changelog:
1.00 - initial version
1.01 - added cvar sm_gbw_team
1.02 - added one more check for sm_gbw_team
- removed index checks
- modified the code that gives bots weapons
1.03 - added back one index check
- added a MvM check
- modified the code for giving weapons so they show up faster
1.04 - added an index check for getclientteam
1.05 - added Lollichop and Rainblower
- removed IsClientConnected check
- changed default delay to 0.1
- added a lateload check
- fixed a couple of typos
1.06 - added wearables(3 shields, 2 demo boots, 2 soldier boots, 3 sniper backs) for medieval mode
- added gamedata offsets for wearables
1.07 - replaced the function for random integers so the weapons are more randomized
1.08 - added reverse shooter, panic attack, atomizer, unarmed combat, nostromo napalmer, dragons fury, maul, apoco fists, awper hand, sharp dresser, your eternal reward, wanga prick, quackenbirdt and hot hand
1.10 - replaced game engine check
- no longer setting global variables to a falsy value
- weapons now get a random level
- fixed Neon Annihilator using incorrect entity
- added Conscientious Objector, Freedom Staff, Bat Outta Hell and Ham Shank
1.20 - fixed Cleaner's Carbine using incorrect entity
- fixed Red-Tape Recorder not working correctly when given
- merged weapon creating functions into one to simplify the code
- added Widowmaker for bot engie
- added cvar sm_gbw_mvm that allows plugin functionality in MVM mode
- set min-max lvl for weapons based on regular weapon versions
- config handle is no longer a global variable
- fixed a bug that caused the plugin to sometimes not give bots weapons
- hp is no longer refreshed after each weapon is created and equipped. Now it happens only once after all weapons are given to the bot.
1.30 - fixed compiler errors on sourcemod 1.11
- removed Loch n Load because the ai logic uses default grenade launcher's trajectory calculations so the bot always misses unless the enemy is in front of the bot
- replaced The Eureka Effect with The Necro Smasher because bots do not know how to use the teleport so they only get the negative effects from the wrench
- moved weapon removal into the weapon creation function. This makes the code more readable and decreases the chances that the bot ends up without a weapon if something fails.
- added more logging messages so its more clear when something fails during weapon creation
- added entity cleanup if the weapon creation fails
- added action items Halloween Spellbook, Dueling Mini-Game, Powerup Canteen for the bots. They do not know how to use them but they fill in the empty action item slot and 2 of them have a cosmetic model.
- increased chance for the vaccinator to have bullet resistance selected since thats the majority of the weapons
1.31 - fixed an error message being thrown for wearables
1.32 - added replay and sourcetv checks back in
1.35 - resource entity is now a global variable
- added weapons Short Circuit, The Loose Cannon, Eureka Effect
- bots can use alt fire for Phlog, Eureka Effect, Soda Popper, Hitmans Heatmaker, Cleaner Carbine, Cow Mangler 5000, Short Circuit
- fixed Dragon's Fury having 200 ammo
- now uses the same gamedata file as Give Bots Cosmetics
1.36 - fixed error spam in logs and lag when playing with less than 3 weapons (like melee only modes)
- added Necro Smasher for other classes
1.37 - added Beggar's Bazooka
- improved loose cannon handling
1.38 - fixed flare guns having 32 ammo
- code optimization
Github -
link
Gamedata -
download here