Been having trouble for the longest time trying to replace weapons in the
TF2Items_OnGiveNamedItem forward. I want to believe it's user error, but nothing obvious stands out to me.
Tested the attached plugin against the following on a fresh Linux server (requires
Econ Data):
- MM:S 1.11.0-git1125
- SM 1.9.0-git6275
- TF2Items 1.6.4-hg279
The expected outcome is that the bots (and player) spawn with replacement items, but the bots usually end up equipped with either one stock item or no items at all, though the debugging messages indicate that the item selection process was successful.