Skip to content

[TF2] Allow bots to realize decloaking spies#1828

Open
inco-cc wants to merge 1 commit intoValveSoftware:masterfrom
inco-cc:spy-decloak-realize
Open

[TF2] Allow bots to realize decloaking spies#1828
inco-cc wants to merge 1 commit intoValveSoftware:masterfrom
inco-cc:spy-decloak-realize

Conversation

@inco-cc
Copy link
Contributor

@inco-cc inco-cc commented Mar 10, 2026

This allows bots to realize a spy that is decloaking. Currently, bots will only realize a spy that is cloaking, due to TF_COND_STEALTHED being removed immediately when decloaking.

This replaces the condition check with the new proposed CTFPlayerShared::IsFullyVisible, which will check if the spy is either partially or fully cloaked.

Please note that the comparison videos shown below require audio to be unmuted to hear the bot call the player a spy. The bot does not attack the player due to the round being in the setup phase.

Before:

before.webm

After:

after.webm

@a584-droid
Copy link

An after and before are just the same recordings. No difference.

@Professor-Heavy
Copy link

An after and before are just the same recordings. No difference.

There's sound to it, showing that the bot is aware of the Spy.

@inco-cc
Copy link
Contributor Author

inco-cc commented Mar 12, 2026

Sorry, I forgot to mention this in the original comment. GitHub mutes videos by default, so you need to unmute them manually. I've edited the comment to explain this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants