Commit graph

577 commits

Author SHA1 Message Date
RGreenlees
cfc65e1f5a Improved lerk flight
* Better lerk flight
* Fixed bots switching weapons rapidly
2024-04-26 11:53:17 -04:00
RGreenlees
540194cc6e Bots combine silence and cloak
* Bots will prefer to combine the silence and cloak upgrades if both are available and they have one of them already
2024-04-26 11:53:17 -04:00
RGreenlees
7f75f80a6e Finish bot hearing 2024-04-20 19:52:59 +01:00
RGreenlees
2224c32a73 Include AvHAISoundQueue in project
* Bot hearing relies on the new AvHAISoundQueue files, so these must be added to the project
2024-04-19 16:15:29 +01:00
RGreenlees
f24261e416 Fixed bug with lift detection
* Bots no longer get perma-stuck when standing on the drill in Ragnarok (or similar situations in other maps)
* Fixed fades getting glued to the ceiling when trying to blink into a vent
* Fixed bots getting stuck on top of railings sometimes
* Fixed bots sometimes deciding to evolve in the ready room on certain maps
* Updated nav mesh for eclipse
2024-04-19 15:25:24 +01:00
RGreenlees
33b5fcbe82 Improved marine combat
* Improved hearing logic
* Improved marine combat decision making (they don't all cluster around the CC for no reason anymore)
* Bots can now hear regen sounds
2024-04-18 23:44:05 +01:00
RGreenlees
188b1dac32 Merge branch 'BotHearing' of https://github.com/RGreenlees/NS into BotHearing 2024-04-18 08:27:50 +01:00
RGreenlees
3073f7f60b Bot hearing started 2024-04-18 08:24:16 +01:00
pierow
68b7278072 weapon animation fixes
- Fixed animation issues with pistol binary trigger and moved the binary triggering to client code
- Fixed reload animation not always playing
- Fixed numerous incorrect or broken alien weapon animations on every class
- Added transitional animation out of gorge building
2024-04-17 22:41:10 -04:00
RGreenlees
b1f1c6a660 Removed debug code 2024-04-16 19:57:26 +01:00
RGreenlees
3e36057948 Lift improvements
* Fixed bots getting into a clusterfuck when multiple try to use a lift at the same time.
* Improved nav meshes for various maps
* Added new console commands for debugging to force bots to evolve
* If there is no CC, infantry portal or hives in NS mode, bots will revert to deathmatch behaviour to finish the game
* Fixed bots flying off target when leaping/blinking sometimes
* If there is no armoury to retreat to, marines won't back off and will attack (stops clustering around the CC for no reason).
2024-04-16 17:39:23 +01:00
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
d886d9b2e3 bot ini and navmesh updates
* Added max match time to nsbots.ini
* Tweaked nav meshes for several maps
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
pierow
4871012a51 Revert "hltv config update"
This reverts commit 1ee5881cf2.
2024-03-29 19:39:21 -04:00
pierow
a5239c575b update configs and readme 2024-03-29 19:37:15 -04:00
pierow
6506119264 add env_gamma 1.7 to ns_ragnarok 2024-03-29 19:37:15 -04:00
RGreenlees
9381cf6438 Updated Machina nav mesh
* Fixed nav mesh issue where bots could get stuck in one of the hives trying to drop down from a height if the hive was present
2024-03-28 18:34:33 -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
4470feb4c5 Fixed bot crash with empty chat message
* Bot no longer causes a crash if a player submits an empty chat message
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
3daa2f32e4 linux client update and config update 2024-03-23 16:54:55 -04:00
pierow
c4629d6113 update configs
- default zoom sensitivity ratio lowered to be closer to matching vertical monitor distance instead of 4/3 horizontal distance
2024-03-23 16:54:55 -04:00
pierow
b8f5f818bc update mapcycle, remove old cfg file 2024-03-23 16:54:55 -04:00
pierow
3cc9648ea7 add alternative env_gamma to ns_hera and ns_lost 2024-03-23 16:54:55 -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
1ee5881cf2 hltv config update 2024-03-21 14:10:29 -04:00
pierow
b615902e94 configs update 2024-03-21 12:57:44 -04:00
pierow
34a62c747b remove pistol script references from team configs 2024-03-21 01:50:36 -04:00
pierow
48addfdd2f revert titlescreen music rename 2024-03-21 00:54:47 -04:00
pierow
a411958a1e Remove ResetGamma.exe 2024-03-21 00:33:48 -04:00
pierow
1677f6d7c8 remove title track from in-game music programatically 2024-03-21 00:33:13 -04:00
pierow
adb875bc40 server cvars update 2024-03-16 16:49:18 -04:00
pierow
1e7fa6f61e update hivesight labels 2024-03-15 21:07:59 -04:00
pierow
3b4c2d98dd blockcsripts default 0 2024-03-15 12:41:54 -04:00
pierow
202889488b fix linux server crash 2024-03-13 18:42:07 -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
de3ae12236 increase listen server default player size 2024-03-12 08:05:13 -04:00
pierow
42346aee87 fix crash after getting kicked from a server 2024-03-12 08:04:52 -04:00
pierow
0e53e0ee3d revise new maxunlag value
-300ms because some intercontinental players spike over 250ms
2024-03-11 07:16:13 -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
1dc828e071 force sv_allow_shaders 0 2024-03-04 23:15:08 -05:00
pierow
856e71f05a healspray +movement and cl_weaponcfgs improvements 2024-03-04 23:10:56 -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
c5c338ba3d preset switcher update WIP 2024-02-07 00:51:12 -05:00
pierow
0688b2ef65 fix pistol firing when closing game menu or tabbing in 2024-02-07 00:48:35 -05:00
pierow
5636d7a103 NS preset switcher update WIP 2024-02-04 04:08:01 -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
a024343cb0 consistency check shader files 2024-01-30 01:02:54 -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
61c7fc5d9c reduce sticking to diagonal walls. Credit to @AltimorTASDK 2024-01-14 17:41:48 -05:00
pierow
e59ea9b87f readd line deleted in error 2024-01-14 17:36:59 -05:00
pierow
ae447029c0 add cl_bobview 2024-01-14 16:57:25 -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
48da9f7260 add lerk flap to +movement 2024-01-08 13:22:32 -05:00
pierow
56512a8f45 additional removal of old widescreen 2023-12-06 05:46:16 -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
bf34643be3 revise mouse paramater comments 2023-11-25 13:46:15 -05:00
pierow
deffcba07c sv_rollangle 0 2023-11-25 13:44:53 -05:00
pierow
44ffcf24fd version number to v33b8 2023-11-21 03:48:12 -05:00
pierow
e435bdad29 version number to v33b8 2023-11-21 03:46:47 -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
1748d39d7e fix for typing another key in chat before releasing enter key causing it to send the message 2023-10-04 18:11:40 -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
pierow
dfd82fcec5 add cl_weaponswap 2 to default config.cfg
-fixes server assuming cvar is 0 for clients that boot the game for the first time
2023-09-30 14:34:39 -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
cdbfeeb219 add ns_askr_b6 2023-09-16 11:52:24 -04:00
pierow
e2b3d7f2b2 generate symbols in release server dll for plugin offsets 2023-09-16 11:36:34 -04:00
pierow
e85d296092 fix ns_cvar_float returning int 2023-09-16 11:36:34 -04:00
pierow
ca5246501b localization map update 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