Skip to content

Fix bot_mimic not copying weapon swap to slot 1 - #2099

Open
sunzenshen wants to merge 2 commits into
NeotokyoRebuild:masterfrom
sunzenshen:bot_mimic_fix_slot1_swap
Open

Fix bot_mimic not copying weapon swap to slot 1#2099
sunzenshen wants to merge 2 commits into
NeotokyoRebuild:masterfrom
sunzenshen:bot_mimic_fix_slot1_swap

Conversation

@sunzenshen

Copy link
Copy Markdown
Contributor

Description

Fixes bots not copying weapon swap to slot 1 when bot_mimic is 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

  • Windows MSVC VS2022

@sunzenshen
sunzenshen requested a review from a team August 28, 2026 06:36
@sunzenshen sunzenshen added the Bots Related to bot players label Aug 28, 2026
@sunzenshen

sunzenshen commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

Demo of fix:

bot-mimic-slot1-fix.mp4

Notice that if Recon does not have a utility, it merely skips that weapon swap.

@Rainyan
Rainyan self-requested a review August 28, 2026 08:18
Rainyan

This comment was marked as resolved.

@Rainyan
Rainyan requested a review from a team August 28, 2026 11:59
@Rainyan
Rainyan requested a review from a team August 29, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bots Related to bot players

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants