Key fixes for 5.x:
- Made use of the latest private Sven API headers (reverse engineered with ApiGenerator). This fixed a crash when the
CBaseEntity::Classify
method was called.- When a game update inevitably breaks RCBot again, follow the instructions in that repo to update the headers. RCbot needs only the
Classify
andIsTriggered
methods fromCBaseEntity
.
- When a game update inevitably breaks RCBot again, follow the instructions in that repo to update the headers. RCbot needs only the
- Fixed bots not attacking enemies. Bots thought they had no weapons because
pev->weapons
is no longer used to store held weapons. - Replaced the chat AI with a new port of MegaHal. Bots could only speak gibberish and I couldn't figure out why.
- Fixed chat message word duplication (bots saying
hi w00tguy "w00tguy"
instead ofhi w00tguy
). (aeb9fd054)
Other changes since the 4.5/4.8 version:
- Fixed memory corruption crashes when adding bots (a2a409258 and 24207f5f1)
- Fixed bots moving in slow motion when running on a Linux dedicated server with high fps/tickrate (bdb3543ea)
- Fixed waypoints and paths not rendering beyond +/-4096 units. Sven maps can be much larger than this now (+/-32768 is the practical limit for mappers before things start breaking).
- Waypoint paths draw further away and update much faster (no more pausing at each waypoint to check for broken paths)
- minor fixes to weapons.ini (wrench had wrong ID, and added a config for weapon_displacer).
Updates:
2023/10/15: included a linux version and tool to convert .rcwa files to .rcw
2023/10/18: Fixed bugs in waypoint conversion tool.
2023/10/20: Fixed bots attacking friendly breakables.
2023/10/21: Fixed bots attacking unbreakable glass and not turrets. HAL brains load/save in multiple threads (no freezing for large brains when adding bots or changing levels).
2023/10/22: Add revive ability. Add grapple waypoints. Better AR grenade handling. Fixed weapon usage with special breakables. Fixed bots staring at buttons and not using them. Fewer bot chat typos.
2023/10/23: Fixed bots not shooting akimbo uzis. Better egon usage. Increased max waypoints from 1024 to 2048.