Commit graph

44 commits

Author SHA1 Message Date
smallmodel
f8f9d2f65c
Use MAX_PATHNODES rather than a constant number 2025-01-21 20:56:26 +01:00
smallmodel
591be6c2fd
Create a new node if the load index is outside the node count
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 16s
2025-01-17 21:49:17 +01:00
smallmodel
037af5d728
Don't access the removed node 2024-10-13 11:32:11 +02:00
smallmodel
5ec106642d
Fix node cover mask 2024-10-08 21:00:01 +02:00
smallmodel
dcd9ce91a8
Use the raw integer value of the squared distance when comparing nodes 2024-10-08 20:42:22 +02:00
smallmodel
feb76f4fb4
Allow entities other than SimpleActor for finding covers and sniper nodes 2024-10-08 20:31:50 +02:00
smallmodel
d467b68187
Add node editing support, with a way to dynamically load, remove and modify nodes while editing 2024-10-08 20:25:33 +02:00
smallmodel
58f6c719a9
Add code to select current node in view and draw it for editing later 2024-10-08 01:14:40 +02:00
smallmodel
b2fa21a111
Format navigation source file 2024-10-07 23:52:39 +02:00
smallmodel
f94099e350
Don't link nodes that can't be reached with an high fall height 2024-10-07 23:49:39 +02:00
smallmodel
7ef006ccca
Fix nodes improperly connecting to other nodes that are below the ground 2024-10-05 21:15:37 +02:00
smallmodel
627f66fb5b
Add basic pathnode editing feature 2024-10-05 20:45:56 +02:00
smallmodel
2980771deb
Fix path node connection, use the target node num 2024-10-05 20:13:03 +02:00
smallmodel
1169b84c2f
Make sure the entity is valid before checking for the bad place team 2024-10-05 20:12:37 +02:00
smallmodel
11abdd451f
Fix incorrect dir for PathSearch::FindPathAway 2024-10-03 21:27:30 +02:00
smallmodel
981d72ac5a
Add assertions to check for invalid path distance 2024-09-01 18:28:01 +02:00
smallmodel
d3d2082e41
Removed useless print 2024-06-09 13:08:01 +02:00
smallmodel
685dc0336a
Corrected loop ordering 2024-02-17 00:05:39 +01:00
smallmodel
e50a041c12
SimpleEntity subclass flags name now starts with ECF_ prefix 2023-11-16 23:17:06 +01:00
smallmodel
096692fec8
Fixed usage of 2D vector array 2023-11-14 01:07:23 +01:00
smallmodel
d6b7fecb69
Refactored navigation with moh 2.0 features 2023-11-09 23:44:53 +01:00
smallmodel
51a0ee56aa
Refactored FindNearestSniperNode() 2023-11-09 21:55:28 +01:00
smallmodel
2ed369568c
Fixed AllocPathNode() and FreePathNode() not working as intended 2023-11-09 21:10:43 +01:00
smallmodel
4a9f676d5d
Tidied up FindPathX methods 2023-11-09 21:01:30 +01:00
smallmodel
343ce4a6a7
Using vec3_t type for start/end/position 2023-11-09 19:58:46 +01:00
smallmodel
df8b854cb7
Cleaned up GeneratePath methods 2023-11-09 19:52:53 +01:00
smallmodel
831dc770d8
Added droptofloor() 2023-11-09 19:37:25 +01:00
smallmodel
8a9285c64f
Cleaned up navigate source files and added low-wall arc 2023-11-09 19:31:20 +01:00
smallmodel
31014808c8
Added and using AI_COVER_MASK 2023-10-29 20:20:19 +01:00
smallmodel
3373caa939
DebugNearestStartNode() should return a node only if node_count is higher than 0 2023-10-24 19:37:48 +02:00
smallmodel
dc1be17b2a
Added badPlaceTeam 2023-10-24 19:35:42 +02:00
smallmodel
ddb6236eb9
simplified delta subtraction 2023-10-23 22:55:35 +02:00
smallmodel
31fde1ad94
Unreachable node fix 2023-10-23 18:57:56 +02:00
smallmodel
8afb7457c2
Fixed FindPotentialCover never setting found nodes 2023-10-23 17:28:52 +02:00
smallmodel
6f9f845bb2
Set m_LoadIndex to 0 when loading archived nodes 2023-10-23 17:16:54 +02:00
smallmodel
b996918d3b
Formatted navigate source files 2023-10-22 21:06:43 +02:00
smallmodel
6860a1e992
Crash fix 2023-10-22 19:45:48 +02:00
smallmodel
a6f6cbd9b5
Fixed a crash in FindCornerNodeForExactPath 2023-10-19 20:19:43 +02:00
smallmodel
c9c7a4beed
Implemented PathSearch::UpdatePathwaysForBadPlace 2023-09-12 23:59:38 +02:00
smallmodel
1a53bdd584
Implemented PathSearch::ArchiveDynamic 2023-08-16 18:48:38 +02:00
smallmodel
c4738966fe
Using g_utils.cpp from fakk 2023-08-15 01:27:35 +02:00
smallmodel
3ca09613e1
Fixed string constants 2023-08-10 12:08:53 +02:00
smallmodel
5333c7ff4a
Removed empty line before opening braces 2023-07-05 20:52:55 +02:00
OM
e4fa0fff3a Renamed **game** to **fgame** 2023-06-15 23:44:02 +02:00
Renamed from code/game/navigate.cpp (Browse further)