Raised This Month: $ Target: $400
 0% 

[TF2] Give Bots Weapons (04.01.2023)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 09-23-2022 , 04:27   Re: [TF2] Give Bots Weapons (20.09.2022)
Reply With Quote #11

Quote:
Originally Posted by Markus_Wyand View Post
Damnit, something went wrong.
Bots once again start to lose weapons eventually, usually when i invite players to my server.
I have an idea why this happens:
-the bots changing classes messes up the strict weapons i want them to use (demoman, who is forced to use booties later changes to soldier because a player changed class, and solders gets his rocket launcher removed, i know it sounds weird)
MAYBE when i force them to use a weapon:
if class demoman:
case TFClass_DemoMan:
{
int rnd = GetRandomUInt(1,1);

switch (rnd)
{
case 1:
{
CreateWeapon(client, "tf_wearable", 0, 405, 20, true);
}
}

Later changes to soldier, something goes wrong and the demoman who is now soldier gets his weapons messed up.
AGAIN THIS ISN'T THE CAUSE, MAYBE. ITS JUST SOMETHING I CAME UP WITH. This weird bug its like a ghost in my machine... this is creeping me out.
EDIT: all the Problems this bug causes so far i've seen:
-Demomen A-posing
-Soldiers not using primary
-Medics not using primary or secondary
-Heavies using melee only (rare, seen only once)
-Snipers going melee only (mostly because i set him wearables for secondary, so i guess his primary gets messed up)
-Engineers not building? (rare, seen only once in payload)
Sorry for keeping this up, i may give up after this one i promise.
I'll leave the .sp file here too.
I think you have some other plugin that interferes with mine.
I have been using my plugin for years. No such bug ever detected even with sourcemod and metamod changing over the years. Also youre the only one having this bug.
Disable other plugins other than default and test whether youre still seeing this bug.
Add the custom ones, one by one to find out which one it is.

PS: bot ai has been designed for stock weapons. sniper bots will never use wearables correctly, they try to switch to their second weapon when enemies come closer to them. since they dont have the smg they switch to the melee. same goes for all edible/drinkable/wearable items. they dont know how to use them and thats why they arent in my plugin. they think its a close range weapon and try to use it that way. look at them with an smg and without it - spectate them. you'll see what i mean. same goes for other classes. its pretty obvious
__________________

Last edited by luki1412; 09-23-2022 at 04:42.
luki1412 is offline
 



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 04:15.


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