After transition/after round restart, if there are multiple players with the same character or the player's character changes, all players of that character will only revert to the data that matches the first character in all data
According to Harry Potter's report, if you want a Survivor Bot that exceeds the survivor_limit limit to not be kicked out of the game after transition restored, you need a Bot management plugin that can dynamically set the value of survivor_limit, such as Merudo's SuperVersus
// Transition Restore Fix plugin version
transition_restore_fix_version
// What to choose bot data according to after restart? (0=Model Name, otherwise=Character)
choose_bot_data "0"
Changes:
Code:
1.2.5 (19-May-2023)
- Fix signature invalidation caused by 2.2.2.7 update
1.2.4 (20-Nov-2022)
- Update signature and cleaned up some code
1.2.3 (24-Oct-2022)
- Removed ConVar "restart_keep_identity"
- Added ConVar "choose_bot_data" to use which data to choose bot data after restart
- Fixed a bug in version 1.2.2, where characters may be confused after restar
1.2.2 (1-Sep-2022)
- Fix incorrect address validation
- Add support for players joining the game midway through
1.2.1 (19-Aug-2022)
- Added support for SurvivorBot data recovery after a failed round restart
- Fix Invalid Handle error
1.2.0 (19-Apr-2022)
- Fixed "RestoreTransitionedSurvivorBots::MaxRestoreSurvivorBots" patch not being applied correctly
1.1.9 (19-Apr-2022)
- Fix the function name is too long error when compiling on sourcemod1.10
- Fixed a bug where the survivor model was not pre-cached causing the server to crash
1.1.8 (1-Apr-2022)
- Prevents players joining the game during transition from taking over the Survivor Bot of transitioning players
- Prevent CDirectorSessionManager::FillRemainingSurvivorTeamSlotsWithBots from triggering before RestoreTransitionedSurvivorBots(void) during transition
1.1.7 (30-Mar-2022)
- Merge the features of [L4D2] Keep Survivor Bots After Transition
1.1.6 (29-Mar-2022)
- Fixed the data confusion caused by new players joining in the transition process
1.1.5 (27-Mar-2022)
- Fix the problem that the plugin has not taken effect on Windows all the time
1.1.4 (19-Mar-2022)
- Add team checks and more durable Windows signatures
1.1.3 (01-Mar-2022)
- Add signature thanks
- Reduce the size of the array
1.1.2 (22-Feb-2022)
- Added a ConVar to allow the player to keep the current character and model after a failed mission restart, like the game default
- Delete old cfg files to update
1.1.1 (19-Feb-2022)
- Add code to generate cfg
- Reduce reliance on signatures
- Compatible with sourcemod-1.10
1.0.9 (17-Feb-2022)
- Name change to 'Transition Restore Fix'
- Delete old 'Player Transition Save Data' version to update
- Changed the method of saving and restored data to memory patch
1.0.8 (14-Feb-2022)
- The player character is only restored the first time
1.0.7 (12-Feb-2022)
- Thanks Silvers for a better way to get or set ammo