Fix bot_mimic not copying weapon swap to slot 1 - #2099
Open
sunzenshen wants to merge 2 commits into
Open
Conversation
Contributor
Author
|
Demo of fix: bot-mimic-slot1-fix.mp4Notice that if Recon does not have a utility, it merely skips that weapon swap. |
Rainyan
self-requested a review
August 28, 2026 08:18
sunzenshen
force-pushed
the
bot_mimic_fix_slot1_swap
branch
from
August 29, 2026 08:06
fe6c2f2 to
42344c8
Compare
Rainyan
approved these changes
Aug 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes bots not copying weapon swap to slot 1 when
bot_mimicis enabled.As a vestige of HL2DM, bots were copying weapon swaps based on entity ID and not by slot.
This commit involves retrieving the slot number of the player's weapon and mimicking the swap to that slot.
Toolchain