Closed kittyron closed 1 year ago
how did you start the map
how did you start the map
Reproduced on 1.2.0 as well, TF bots in general seem to be broken no matter how they're spawned? I tried your method, tf_bot_add
and bot
and all of them were broken. It seems that for some reason the bots do not have any valid weapons
Something I did notice was that engis are mostly unaffected? they seem to spawn with the toolbox out and can place a building, but then can't swap off of it to the wrench and kind of get stuck because they want to upgrade their buildings.
Spies also wander around with their sapper out but thats it
I did some more testing, this isn't a bot issue, stock weapons in general are completely bugged right now? If you have a stock weapon in your loadout you will just not be given it.
I just noticed there are 2 the same stock weapons. One is loaded from loadout from vanilla game and the other one is from team comtress. Not working one is from team comtress. (you can hear that I can't use pistol)
Also spy has PDA instead of sapper.
The only weapon that seems to be working is PDA.
The pistol that works here is one that has a skin on it on the live game. A few of us looked into this issue and it seems to be a regression with how the game initializes the inventory system on local servers, so any "economy" items (i.e. cosmetics, weapons aside from stock, weapons with skins on them) load fine, but the base stock weapons do not. Hopefully will be fixed soon.
The pistol that works here is one that has a skin on it on the live game. A few of us looked into this issue and it seems to be a regression with how the game initializes the inventory system on local servers, so any "economy" items (i.e. cosmetics, weapons aside from stock, weapons with skins on them) load fine, but the base stock weapons do not. Hopefully will be fixed soon.
Makes sense forgot that I had skins on these weapons
Not sure if this is the proper fix, but GenerateBaseItems isn't called anywhere else in the code:
diff --git a/src/game/shared/tf/tf_item_inventory.cpp b/src/game/shared/tf/tf_item_inventory.cpp
index 6c3ee4a5..0e321f95 100644
--- a/src/game/shared/tf/tf_item_inventory.cpp
+++ b/src/game/shared/tf/tf_item_inventory.cpp
@@ -225,12 +225,7 @@ void CTFInventoryManager::PostInit( void )
void CTFInventoryManager::InitializeInventory()
{
BaseClass::InitializeInventory();
-#ifdef GAME_DLL
- if ( engine->IsDedicatedServer() )
-#endif
- {
- GenerateBaseItems();
- }
+ GenerateBaseItems();
}
//-----------------------------------------------------------------------------
Description
Bots in offline practice are T-posing
Checklist
master
branch.start_tf2.bat
(orstart_server.bat
) with no custom launch options.map
command ingame).Reproduction
Screenshots
Setup Details
Client Settings
Driver Version
Hardware Specs