Commit Graph

1132 Commits

Author SHA1 Message Date
RGreenlees be1aead879 Potential crash fix
* Hopefully fixed rare crash in the Detour library
* Improved bot retreat thought process
* Fixed potential bot stuck when trying to evolve
* Aliens will now also see and track enemies marked by OC / scent of fear
* Updated some nav meshes
2024-07-03 14:33:49 -04:00
RGreenlees cea65c1fdc Further bot improvements
* Fixed nav meshes for lost and machina which could get bots stuck
* Improved ladder usage, fixed edge cases where bots could get stuck
* At match start, aliens will attempt to spread chambers out if the first chamber is MC or SC, rather than clustering them all at the starting hive
* Eliminated potential freeze issues with nav mesh refreshes
2024-07-03 14:33:49 -04:00
RGreenlees b1bcdd2f70 Update editor docs and crouch fix
* Bots now properly crouch in crouch areas rather than relying on their stuck detection to do it
* Updated Nav Editor docs to reflect recent changes
2024-07-03 14:33:49 -04:00
RGreenlees 290ad067eb General improvements
* AI Commander will now attempt to place turret factories close to any existing turrets to prevent inactive turrets being left behind
* Aliens will not try to pursue enemies who have teleported away (unless they teleported close by)
* Fixed a bug where bots would not target the nearest sentry/OC to engage
* Improved how marines attack OCs, particularly how they take cover to reload
2024-07-03 14:33:49 -04:00
RGreenlees a01d8a6708 Nav mesh and editor improvements
* Off-mesh connections in the nav editor are now colour-coded to make it easier to see what they do
* Improved nav meshes for a few maps to fix stuck issues
2024-07-03 14:33:49 -04:00
RGreenlees 0a15148352 Remove Debug Code 2024-07-03 14:33:49 -04:00
RGreenlees 4102dabe05 Further bot improvements
* Player-requested structures are properly integrated into the base system to prevent duplicates and better anticipate player desires
* Improved bot path finding for moving targets, hopefully they get caught less often on railings and stuff when pursuing a moving target
* When bots teleport (e.g. phase gate, but any kind of teleport), they clear their stored unstuck locations so they don't try and backtrack when attempting to get unstuck
2024-07-03 14:33:49 -04:00
RGreenlees 11512d9d28 Update DetourTileCache.cpp 2024-07-03 14:33:49 -04:00
RGreenlees 733ad6eb04 Fixed base bugs
* Fixed issue where commander would build siege turrets too far from the siege target
* Improved commander response to requests for turrets
* Nav reachabilities and paths are now regenerated after all nav mesh modifications are updated
2024-07-03 14:33:49 -04:00
RGreenlees 2842aba0bb Bot reload improvements and nav mesh updates 2024-07-03 14:33:49 -04:00
RGreenlees 65155fb3f0 Finish base system 2024-07-03 14:33:49 -04:00
RGreenlees 9ee01c0d64 Base system Enhancements
* Nearly finished base system
* Bots attacking structures no longer confused by "super chambers"
2024-07-03 14:33:49 -04:00
RGreenlees 6f263d400b New base building setup
* Improved base strategy and planning
* Bot is better at taking over from a human - less likely to sell up stuff unnecessarily
2024-07-03 14:33:49 -04:00
RGreenlees 0897cf15a0 Started base system
* Commanders now think in terms of establishing and building bases rather than placing individual structures. Should help reduce duplication of structures, selling structures unnecessarily etc.
* Incomplete implementation: not currently used but will be once finished
2024-07-03 14:33:49 -04:00
RGreenlees 73ff332b68 Removed debug code 2024-06-03 23:53:08 -04:00
RGreenlees 5b83a4c886 Fix crash on marine victory in combat
* Fixed a bug where bots could crash when marines successfully destroy the alien hive in CO
2024-06-03 23:53:08 -04:00
RGreenlees 2b27b90f25 Stuck fixes
* Hopefully fixed issue that caused bots to get stuck in the tubes in Ragnarok
2024-06-03 23:53:08 -04:00
RGreenlees f427a9c052 Stability and randomness improvements
* Fixed potential crashing when obtaining references to dropped items
* Fixed issues with random number generation
2024-06-03 23:53:08 -04:00
RGreenlees ef7e7a9178 Fixed randomness
* Fixed mistake that caused random values to follow a constant pattern
2024-06-03 23:53:08 -04:00
RGreenlees 36318cd1d4 Ladder fix + relocation fixes
* Improved ladder climbing, especially for skulks
* Fixed issues with bots getting confused when switching commanders during a relocation
2024-06-03 23:53:08 -04:00
RGreenlees 9a4a6b3660 Commander Placements Tweaks
* Commander won't get stuck trying to build base structures if using nav hints that are placed in bad spots (i.e. can't deploy structures where the nav hint is)
* Commander can now deploy prototype labs, arms labs and infantry portals on request
2024-06-03 23:53:08 -04:00
RGreenlees 9452b8a0c3 Team fill logic adjusted
* The auto-fill system for bots now takes mp_limitteams into account, and will continue to add bots to one side if the team size config specifies it to
2024-06-03 23:53:08 -04:00
RGreenlees 8fef7241a0 Updated nav meshes for relocation
* All nav meshes now have hints to help the commander relocate in good spots and build their base inside a hive appropriately
* Updated the nav editor to hide "illusionary" surfaces from other tools where they get in the way
2024-06-03 23:53:08 -04:00
RGreenlees e17fba76ea Bot Relocation
* Marine bots can now relocate their base to a nearby hive
* If the chance to relocate is above 0 (configurable in nsbots.ini) then the bots will relocate at the start of a match based on the percentage set, or if the current base is overrun and about to be lost
* The bot will recycle the old comm chair
* The bot will abandon the relocation attempt if unsuccessful 90 seconds into a match
2024-06-03 23:53:08 -04:00
RGreenlees 91231ac069 Marine Relocation
* The AI Commander can now relocate to a nearby empty hive at the start of a match, or if the current base is almost lost
2024-06-03 23:53:08 -04:00
RGreenlees c2e41c2011 Bot movement improvements
* Commander no longer sends reminders once an order is issued
* Fixed an issue where marines would loiter and refuse to move on once securing a hive
* Improved wall climbing: bots handle varied wall angles better
2024-06-03 23:53:08 -04:00
RGreenlees 5beb313546 Alien coordinated base attacks
* Aliens will now gang up to attack the marine base
* Aliens will spread out more when attacking in a group, rather than all going for the same buildings
2024-06-03 23:53:08 -04:00
RGreenlees c0bef7cb05 Improved evasive behaviour
* Bots only zig-zag when approaching a ranged enemy if that enemy is aiming at them
* Bots will not zig-zag off edges, or up against walls
2024-06-03 23:53:08 -04:00
RGreenlees 6ffc3d3258 Improved hive building
* Bots no longer squabble over who's building the hive
2024-06-03 23:53:08 -04:00
RGreenlees d17cb601eb Task priority and path merging
* Potentially fixed issue causing invalid paths
* Fixed issue where gorges wouldn't heal anyone while focused on capping res node or building defensive structures
2024-06-03 23:53:08 -04:00
RGreenlees ff3b4afb1c Bot stuck checks
* Bots will now suicide if falling for more than 15 seconds, handle stuck situations
* Bots will hopefully not get stuck in walk nodes as much
2024-06-03 23:53:08 -04:00
RGreenlees fcddb5b6c3 Resource capping tweak and comm reminders
* Marines will now get close initially to a resource node they want to cap, before guarding it. This fixes the issue in Hera where bots would wait for the RT in cargo to drop but never actually open the door so the commander could drop it
* Disabled AI commander reissuing orders to players as a reminder. It was annoying for humans, and pointless for bots since they should always obey it right away anyway
2024-06-03 23:53:08 -04:00
pierow 4736cdcc53 remove debug line 2024-05-10 16:39:11 -04:00
pierow 37a310a568 update special reload bit size 2024-05-10 16:39:11 -04:00
pierow c626c27df4 remove debug line left in 2024-05-10 16:39:11 -04:00
pierow 38d8031ab1 reduced jetpack research cost 2024-05-10 16:24:44 -04:00
pierow 27d5db3b03 update options with new cvars 2024-05-10 16:24:44 -04:00
pierow 8220ae1738 fix small gaps in skulk, gorge, and onos hitboxes 2024-05-10 16:24:44 -04:00
pierow a6c6f8c8e9 add todo for health/ammo ultrawide inset 2024-05-10 16:24:44 -04:00
pierow 6fd6cb8b8b fix todo comments for task list 2024-05-10 16:24:44 -04:00
pierow 2f6ddf68bb add 4 digit health and armor support
- fix armor number spacing
2024-05-10 16:24:44 -04:00
pierow 92db73eb89 Fix side mouse buttons registering as left click when using the cursor.
- also allow mouse3/4/5 binds to be accessible as commander.
2024-05-10 16:24:44 -04:00
RGreenlees 1363f48d96 Final fixes for next release
* Fixed some nav meshes so Onos can navigate better, and avoid bad structure placement
* Improved bot movement when not using the nav mesh (i.e. direct movement)
* Fixed player-built structures being duplicated if a commander takes over (i.e. AI commander ignoring player-placed structures and acting like they don't exist)
* Fixed marines just loitering in enemy hives doing nothing
* Fixed gorges sometimes not fully building structures and just leaving them to slowly grow
2024-05-10 16:21:30 -04:00
RGreenlees 802174ddcd Improve evolve behaviour
* Bots are less likely to get perma-stuck trying to find a good evolve location
2024-05-10 16:21:30 -04:00
RGreenlees 0f578e359f Update navmesh docs 2024-05-10 16:21:30 -04:00
RGreenlees 6ed297c68f Update nav meshes and editor
* Bring in line with new nav features and fix issues with maps
2024-05-10 16:21:30 -04:00
RGreenlees eb15f8e1d5 Improved lerk movement, debug stuff in preprocessor 2024-05-08 14:43:14 -04:00
RGreenlees f5e5b9b41a Lerk flight improvements
* Fixing lerks to get stuck less often when navigating normally
2024-05-08 14:43:14 -04:00
RGreenlees 6021daabab Wave attacking implementation 2024-05-08 14:43:14 -04:00
pierow 8835eb0a60 add cl_teamcfgs
- can change auto execution of team configs to be  0 =off, 1 = if playing only, 2 = also in spectate
2024-05-04 05:56:52 -04:00