Skip to content

[TF2] Fix specific weapons not being useable by bots in MvM#1923

Open
Mentrillum wants to merge 1 commit into
ValveSoftware:masterfrom
Mentrillum:mvm-invalid-weapon-fix
Open

[TF2] Fix specific weapons not being useable by bots in MvM#1923
Mentrillum wants to merge 1 commit into
ValveSoftware:masterfrom
Mentrillum:mvm-invalid-weapon-fix

Conversation

@Mentrillum
Copy link
Copy Markdown
Contributor

In MvM when writing pop files, specific weapons cannot be used on bots. These include the reserve shooter, panic attack, all stock melee reskins, and the festive shotgun. This is due to the function TranslateWeaponEntForClass not being included in CTFBot::AddItem and thus the game tries to create an invalid entity causing the bot to use a stock weapon over the intended weapon.

The fix was found in rafradek's Rafmod here: https://github.com/rafradek/sigsegv-mvm/blob/3ec830cdca755834a0fa69ff187cdde4a2591289/src/mod/pop/ecattr_extensions.cpp#L1588

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.

1 participant