Commit graph

231 commits

Author SHA1 Message Date
RGreenlees
261ff5cef1 Improved guard behaviour and randomisation
* Improved the bot guard behaviour
* Improved randomisation of bot names and chamber sequences
* Fixed bug where bots would drop hives within range of siege bases
* Fixed bug where requesting turret factories and sentry turrets from the AI commander would place a phase gate instead
2024-04-14 20:50:26 +01:00
RGreenlees
7adeda4113 Add cloak behaviour
Bots will no longer see cloaked players, and have a chance based on cloak level, movement and size of the players. Bots will also sneak when approaching enemies while cloaked.
2024-04-12 16:40:50 +01:00
RGreenlees
0cb450605d Fix for CO end-game crash on marine victory
Fixed potential crash upon marine victory in combat mode, caused by trying to respawn aliens without an active hive.
2024-04-08 10:07:14 -04:00
RGreenlees
ddc8839d9a Fixed mistake in scan requests
Commander was dropping phase gates instead of scans. Oops!
2024-04-08 10:01:46 -04:00
RGreenlees
27ed51035c Lerk improvements and bot names
* Improved lerk movement when it is not flying (i.e. being cautious)
* Users can now optionally add botnames.txt to the NS folder to define custom bot names
2024-04-08 10:01:46 -04:00
RGreenlees
e322e52619 Update AvHAIWeaponHelper.cpp 2024-04-08 10:01:46 -04:00
RGreenlees
dfcd4463ac Update AvHAIWeaponHelper.cpp 2024-04-08 10:01:46 -04:00
RGreenlees
d87bb3d600 Further bot enhancements
* Improved jump and blink movement
* Hopefully fixed bug with bots trying to walk between phase gates
* Fixed issue with bots constantly switching weapons when trying to reload
* Added a max AI time for a match, with bots throwing the game if there are no humans and it goes on too long (configurable in nsbots.ini, default is 90 minutes)
2024-04-08 10:01:46 -04:00
RGreenlees
eba41379e3 Improve bot vision, bug fixes
* Re-added the view frustum for bots
* Hopefully stopped bots getting permanently stuck trying to evolve an upgrade in an invalid place
* Bots will now leave the game after 2 hours if no humans playing (ignores human spectators)
2024-04-08 10:01:46 -04:00
RGreenlees
75469430ad Bot fixes
* Fixed bots targeting mines to attack
* Fixed crash on enabling bots after previously disabling them
* Fixed bots not handling doors correctly when enabling them after match start
2024-04-08 10:01:46 -04:00
RGreenlees
349cf7240f Added more commander requests
Armouries, Heavy armour and jetpacks can be requested
2024-04-08 10:01:46 -04:00
RGreenlees
44a1072fb3 Fix phantom electrical discharge
Fixed the bug causes electricity to arc across the map for clients out of replication range of the electrocuted player
2024-04-08 09:58:14 -04:00
RGreenlees
936ef5d609 Fixed potential hang in path finding
* Fixed potential infinite loop in path finding
* Fixed bots sometimes getting stuck on doors permanently
2024-03-28 18:34:33 -04:00
RGreenlees
4efd22b709 Removed exception handling from bot config
* Removed all try/catch clauses due to build issues
2024-03-27 04:57:43 -04:00
pierow
09a9b4870f fix not healing at the armory after getting getting into the command chair with low health 2024-03-26 19:22:41 -04:00
pierow
09c48fa653 config updates 2024-03-26 19:22:41 -04:00
pierow
71e5051752 add cl_cmcancellast 2024-03-26 19:22:41 -04:00
RGreenlees
ddeb934179 Update bot ini and navmeshes 2024-03-26 19:16:46 -04:00
RGreenlees
c7efc37227 Rever accidental change to Linux fix 2024-03-26 19:16:46 -04:00
RGreenlees
b139fbf9b8 Better bot config handling and logging
* Bot config is no longer case-sensitive
* Listen server hosts now get console notifications on bot status, errors etc.
* Added safeguards around parsing the file to prevent bad values crashing
* Made mp_botautomode default to 1 and mp_botcommandermode default to 1
2024-03-26 19:16:46 -04:00
RGreenlees
67903b598e Weld tweak 2024-03-26 19:16:46 -04:00
RGreenlees
c6344df589 Weld and guard behaviour fix 2024-03-26 19:16:46 -04:00
RGreenlees
1cd837b372 Fixed bug with detecting door triggers 2024-03-26 19:16:46 -04:00
RGreenlees
f391176841 Door and movement improvements
* Fixed buttons having overly long wait times with bots
* Fixed issue with climbing walls in certain situations
2024-03-26 19:16:46 -04:00
pierow
58358d0927
Bot integration for v3.3b8 (#156)
* Initial bot commit

* Added server commands and cvars for adding AI players to the game.
* Added auto modes for automating the adding and removal of bots
* Bots connect to the server and join teams correctly

* Added round restart and new map detection for AI system

Push before new project added for detour

* Initial bot integration

* Integrated all basic bot code for navigation and task performing
* Added support for multi_managers to better understand how buttons and triggers affect doors

* Improved bot understanding of door triggers and weldables

* Reworked nav profiles

Nav profiles for bots are now dynamically updated to take into account changing capabilities, such as picking up a welder

* Improved bot door usage

* Added weldable obstacles back into navigation

Bots now understand how to get around weldable barriers

* Replaced fixed arrays with vectors

* Resource node and hive lists are now vectors.
* Further improved bot weld behaviour

* Added dynamic reachability calculations

When barriers and doors are open/closed, new reachability calculations are done for structures and items so bots understand when items/structures become reachable or unreachable as the match progresses.

* Added team-based reachability calculations

Reachabilities for structures and items are now based on the team, so bots understand when they can't reach a structure from their spawn point.

* Implemented long-range off-mesh connections and dynamic off-mesh connections

* Implemented fully dynamic off-mesh connections

Phase gates now use connections rather than custom path finding. Much more performant.

* Replaced arrays with vectors for simpler code

* Started Bot Swimming

* Bots understand trigger_changetarget

Bots can now navigate doors operated with a trigger_changetarget so they understand the sequence in which triggers must be activated to make it work

* Push before trying to fix long-range connections

* Implement new off-mesh connection system

* Redid population of door triggers

* Fixed trigger types and links to doors

* Added lift and moving platform support

* Lift improvements

* Bots avoid getting crushed under a lift when summoning it
* Bots are better at judging which stop a platform needs to be at

* Tweak lift and welder usage

* Fixed bug with multiple off-mesh connections close together

* Finish lift movement

* Fixed dodgy path finding

* Improved skulk ladder usage and lerk lift usage

* Fix crash with path finding

* Re-implement commander AI

* Commander improvements

* Improve commander sieging

* Commander scanning tweak

* Reimplemented regular marine AI

* Start reimplementing alien AI

* Implement gorge building behaviours

* Start alien tactical decisioning

* Continuing alien building and other non-combat logic

* More alien role work

* Adjusted base node definitions

* Iterate Capper Logic

* Alien assault AI

* Alien Combat

* Fix grenade throwing, better combat

* Marine combat AI improvements

* Commander improvements

* Commander + nav improvements

* Drop mines

* Improved bot stuck detection

* Commander supply improvements

* Bot fill timing config

* Added nsbots.cfg to configure internal bots

* Changed bot config file to "nsbots.cfg"

* Bug fixing with navigation

* Fix skulk movement on ladders

* Improved commander placement and tactical refresh

* Fixed bug with ladder climbing

* Doors block off-mesh connections

* Finished doors blocking connections

* Marine and alien tactical bug fixes

* Add commander beacon back in

* Start combat mode stuff

* First pass at combat mode

* Bots attack turrets

* Fix ladder and wall climbing

* Commander chat request

* Improved skulk ladders

* Added nav meshes for new bot code

* Added bot configuration to listen server menu

* Added bot config file

* Added default bot config to listenserver.cfg

* Added default bot settings to server.cfg

* Include VS filter for bot files

* Crash fixes

* Bot improvements

* Bot stability and mine placement improvements

* Fixed crash on new map start with bots

* Reverted Svencoop fix

* Fixed crash, added more cvars

* Performance improvement

* Commander building improvements

* Stop bot spasming when waiting to take command

* Fixed doors not blocking connections

* Added bot disabled guard to round start

* Commander improvements, movement improvements

* Tweaked level load sequence

* Performance improvements

* Bot load spread

* Fixed commander update

* Refactor bot frame handling

* Bug fixes + Pierow's dynamic load spread

* Minor bug fixes

* Fix door detection, prep for test

* Fixed commander siege spam

* linux compile test

* fix hardcoded inlcudes

* O1 compile flag for detour
- fix linux server crash

* Revert detour compile flags to original for windows

* linux build update

* remove x64 build configs

* update bot nav meshes and configs

* fix bot physics at high server fps, update navmeshes. from @RGreenlees

---------

Co-authored-by: RGreenlees <RGreenlees@users.noreply.github.com>
Co-authored-by: RichardGreenlees <richard.greenlees@forecast.global>
2024-03-21 14:17:18 -04:00
pierow
1e7fa6f61e update hivesight labels 2024-03-15 21:07:59 -04:00
pierow
417892f507 presets and 33b8 update
- adjust hivesight labels to be less visibile if they're not being attacked
- add crosshair scaling when above 1080p
- fix music not playing after the first map
- config updates
2024-03-13 09:10:50 -04:00
pierow
90ebbdda23 presets update
- add network rate presets
- add cl_intensityalt for alternative gamma ramp in env_gamma map entities
- separate welder flickering dynamic light setting
- crosshair updates
2024-03-10 16:58:37 -04:00
pierow
833eb0a792 merge in HL25 fixes 2024-03-04 23:29:53 -05:00
pierow
3220c418ed fix func_nobuilds underneath the map preventing commanders from dropping structures 2024-03-04 22:15:18 -05:00
pierow
3e404baff8 ns presets update
- add new default crosshairs, enabled with cl_weaponcfgs 2
- crosshair bugfixes
- add box crosshair and sub-pixel outline control
- cl_musicdelay -1 plays a track once at start of round
- removed title track from gameplay (main menu only)
- cl_bob cvars archived
- remove HL-style tilting weapon bob in spectate
- sv_randomrfk default off
- more gamma ramp removal
- remove valve shader hash check
- archive showspeed cvar
- update debug and playtest solutions for GLEW
- add HL25 wav file for button select (button rollover sound was removed in HL25)
2024-03-04 22:13:32 -05:00
pierow
0bdc52796f presets and postprocessing update 2024-02-29 01:33:35 -05:00
pierow
dcb4de963d merge in postprocessing 2024-02-28 22:46:22 -05:00
pierow
8ab1a69972 add postprocessing
- add GLSL postprocessing shader to world view and have it replicate the old gamma ramp
- clear framebuffer between frames to fix visual bugs outside map
- remove old gamma ramp code (was disabled) and remove gamma adjustments to hud elements as they're now unaffected by the shader
- additional visual preset config updates
2024-02-28 22:36:49 -05:00
pierow
0688b2ef65 fix pistol firing when closing game menu or tabbing in 2024-02-07 00:48:35 -05:00
pierow
ceb814f4f6 weapons update
- add pistol binary trigger aka pistol script and attack queueing
- add gorge heal spray +movement
- lerk flap +movement update
- fix for onos attack release bugs with +movement
2024-02-04 04:05:28 -05:00
pierow
8fde5dc37c NS preset switcher WIP
- needs sv_allow_shaders and hl25 at the moment and it piggybacks off the hl25 overbright shader using the average gamma ramp setting for ns maps.
2024-01-30 01:02:16 -05:00
pierow
abef5c5cca fix view spin when disabling the cursor
-revisit this when HL25 SDK is released
2024-01-13 21:22:04 -05:00
pierow
0e88d368b9 HL25 fixes
-Add new widescreen method and exploit prevention
-disable old widescreen method and exploit prevention
-force sv_rollangle 0
-add sv_widescreenclamp to limit fov expansion to 16:9
2023-11-27 16:01:49 -05:00
pierow
5fc8493b9a Fix crash in debug mode when spectating aliens. Credit to Neoptolemus. 2023-11-21 03:43:56 -05:00
pierow
9f324e47b0 Fix crash when player completes a commander order. Credit to @RGreenlees
- The crash possibly only occured in debug mode?
2023-10-22 23:24:42 -04:00
pierow
a04cc4fd40 add check for recent saying counter not resetting 2023-10-04 18:10:53 -04:00
pierow
61f3c7be61 fix mouse centering not working correctly with non-native fullscreen resolutions 2023-10-01 17:48:57 -04:00
RGreenlees
bf37abf714 Gorge web fixes for collision detection
* Webs placed on the floor now correctly connect with marines walking over them
* Allies and structures no longer block the web's effect if they're between the enemy and the web origin point
2023-09-26 14:37:11 -04:00
pierow
bebb696e50 fix health rings showing on the gorge being spectated while dead 2023-09-26 08:36:11 -04:00
pierow
e85d296092 fix ns_cvar_float returning int 2023-09-16 11:36:34 -04:00
RGreenlees
664a578775 Optimised Text Localisation
Added an unordered map to act as a cache for text that has already been localised
2023-09-16 11:36:34 -04:00
RGreenlees
eb91c70a75 Prevent duplicate tooltips appearing on screen
Tooltips will no longer be added to the screen if that message is already being displayed. This prevents the same message (e.g. the ready room F4 message) from appearing multiple times if the player keeps pressing F4.
2023-09-16 11:36:34 -04:00
pierow
f9a8db4963 fix mouse centering for windowed mode 2023-09-16 11:36:34 -04:00
pierow
e241e23752 disable old tooltip border 2023-09-16 11:36:34 -04:00