Raised This Month: $32 Target: $400
 8% 

[TF2] Give Bots Weapons (04.01.2023)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Plugin ID:
5348
Plugin Version:
1.38
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    111 
    Plugin Description:
    Gives TF2 bots non-stock weapons
    Old 09-11-2016 , 15:59   [TF2] Give Bots Weapons (04.01.2023)
    Reply With Quote #1



    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:


    Github - link

    Gamedata - download here
    Attached Files
    File Type: sp Get Plugin or Get Source (GiveBotsWeapons.sp - 1754 views - 41.5 KB)
    __________________

    Last edited by luki1412; 01-20-2023 at 13:13.
    luki1412 is offline
    nosoop
    Veteran Member
    Join Date: Aug 2014
    Old 09-11-2016 , 22:32   Re: [TF2] Give Bots Weapons (11.09.2016)
    Reply With Quote #2

    Out of curiosity, why not apply the weapons a frame after the OnInventoryApplication event (with RequestFrame)?

    Also note that this plugin does not support wearable weapons (e.g. Demoman boots / shields, Sniper shields, Gunboats). Regardless of whether or not they're your thing, bots technically know how to use them, or at least they do support shields.

    Other than that, it looks fine.
    __________________
    I do TF2, TF2 servers, and TF2 plugins.
    I don't do DMs over Discord -- PM me on the forums regarding inquiries.
    AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
    nosoop is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 09-12-2016 , 01:48   Re: [TF2] Give Bots Weapons (11.09.2016)
    Reply With Quote #3

    Gone try it for sure

    --------------------

    Seems to work good.,

    Can you give them a hat also maybe? ( Or is then the easynes gone for what this plugin now is )

    Last edited by Happy DODs player; 09-12-2016 at 06:19.
    Happy DODs player is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 09-12-2016 , 06:47   Re: [TF2] Give Bots Weapons (11.09.2016)
    Reply With Quote #4

    Quote:
    Originally Posted by nosoop View Post
    Out of curiosity, why not apply the weapons a frame after the OnInventoryApplication event (with RequestFrame)?

    Also note that this plugin does not support wearable weapons (e.g. Demoman boots / shields, Sniper shields, Gunboats). Regardless of whether or not they're your thing, bots technically know how to use them, or at least they do support shields.

    Other than that, it looks fine.
    Why would I want to use RequestFrame? I use timers and a bool to block the function for giving weapons from being called too much, because of bots standing next to a resupply locker for too long(or walking into wall on dustbowl next to the locker). The game drops bots non-stock weapons when they touch a locker so this would lead to a lot of dropped weapons.

    I know it doesnt give wearables and I know how to give bots wearables. I have decided not to include wearables because they dont know how to use them (might release a plugin that gives bots a couple of cheap hats though).

    shields - bots just charge every time they can. its not working well.
    boots - for soldier - not using them at all, obviously
    - for demo - only when medieval mode is on
    buff banners - not used at all. they are trying to use it as a shotgun
    snipers wearables - passive, so they could be used but bots are designed to use smgs when enemies come too close for snipers rifles, so they try to shoot them with smgs even when they dont have one. That makes them look a bunch of idiots, because they try to use melee weapons instead.
    parachute - not used at all, obviously

    Food items and throwable weapons are used the same way as sniper wearables.

    So no, I dont think they are working. It just puts them at a disadvantage, making them an easy target.
    __________________

    Last edited by luki1412; 11-25-2016 at 09:01.
    luki1412 is offline
    Cthen
    Senior Member
    Join Date: Aug 2012
    Old 09-14-2016 , 07:04   Re: [TF2] Give Bots Weapons (11.09.2016)
    Reply With Quote #5

    So far so stable on my server.

    I run a practice server with 18 bots and they using the weapons with no issues. I didn't allow them to use wearables before but would allow them to use misc items though. Having that option in the future would be nice but really not gonna complain here. It works great and runs smooth.
    Cthen is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 09-14-2016 , 07:41   Re: [TF2] Give Bots Weapons (11.09.2016)
    Reply With Quote #6

    Quote:
    Originally Posted by Cthen View Post
    So far so stable on my server.

    I run a practice server with 18 bots and they using the weapons with no issues. I didn't allow them to use wearables before but would allow them to use misc items though. Having that option in the future would be nice but really not gonna complain here. It works great and runs smooth.
    I have been using this plugin for months, so there shouldnt be any problems. By misc items do you mean hats?
    __________________
    luki1412 is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 09-14-2016 , 08:20   Re: [TF2] Give Bots Weapons (11.09.2016)
    Reply With Quote #7

    Runs here also great love the simplnes. And as stated a few cheap hats on therer hats would be great.
    Happy DODs player is offline
    Cthen
    Senior Member
    Join Date: Aug 2012
    Old 09-14-2016 , 08:48   Re: [TF2] Give Bots Weapons (11.09.2016)
    Reply With Quote #8

    Quote:
    Originally Posted by luki1412 View Post
    I have been using this plugin for months, so there shouldnt be any problems. By misc items do you mean hats?
    That would be things that can only go into the misc slot. Items like glasses, items that go on the belt, coats, etc.
    Cthen is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 09-14-2016 , 09:42   Re: [TF2] Give Bots Weapons (11.09.2016)
    Reply With Quote #9

    Quote:
    Originally Posted by Happy DODs player View Post
    Runs here also great love the simplnes. And as stated a few cheap hats on therer hats would be great.
    Yes, I have a separate plugin for hats made already. Currently only gives Gibus to bots, but I can add more cosmetics.

    Quote:
    Originally Posted by Cthen View Post
    That would be things that can only go into the misc slot. Items like glasses, items that go on the belt, coats, etc.
    There are no misc slots anymore. There are 3 cosmetic slots and 1 action slot. I wanna release the second plugin that gives bots a couple of cosmetics. Just need to add more hats.
    __________________
    luki1412 is offline
    zyox123cc
    Senior Member
    Join Date: Jul 2016
    Location: spycrab
    Old 09-14-2016 , 22:49   Re: [TF2] Give Bots Weapons (11.09.2016)
    Reply With Quote #10

    Maybe we can make BOT make spycrab?
    zyox123cc is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 03:36.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode