branchrust_reboot/main/ai_test_changescancel

24 Commits over 31 Days - 0.03cph!

3 Days Ago
merge from main
comment
4 Days Ago
merge from main
comment
8 Days Ago
merge from main
comment
8 Days Ago
merge from main
comment
8 Days Ago
merge from bs_wip
comment
11 Days Ago
Added CanEnter and CanLeave to states. Only include states that can be entered when scoring weights. Added AIStateScore with some pre-defined weight bands and increments. BaseAIBrain.Debug.
comment
11 Days Ago
Applied GetBestRoamPosition changes
comment
11 Days Ago
Reapply a ch47 fix from main in 54149
comment
11 Days Ago
merge from main
comment
26 Days Ago
merge from main
comment
29 Days Ago
State history rendering and convars
comment
30 Days Ago
Added setdestination_navmesh_failsafe convar, npcs will attempt to place themselves on a navmesh when setdestination is called and they're not currently bound to navmesh. Added a warning when warping to a valid navmesh location but still not binding to it (mismatching agent type) to make it more obvious what's going wrong.
comment
31 Days Ago
Moved GetBestRoamPosition from HumanNPC to AIInformationZone, optimised the loop checks.
comment
32 Days Ago
merge from main
comment
33 Days Ago
Merge from main
comment
33 Days Ago
merge from main
comment
35 Days Ago
Simplified SetDucked
comment
35 Days Ago
Compile fix
comment
35 Days Ago
merge from main
comment
37 Days Ago
StateDebugInfo now tracks state change type (enter/exit) and the world position at which the AI state changed.
comment
37 Days Ago
Added StateDebugInfo, keep a history of the last 20 states and durations for a brain. (editor only)
comment
37 Days Ago
Pulled HumanBrain / CH47Brain states out into partials instead of the main brain files, to make it clearer what's common and not. Removed some calculations on variables that never get used, distance checks, inverseloops etc. Some basic state cleanup.
comment
38 Days Ago
Added AIThinkMode to base brain, all brains can set their think mode: interval or fixed update, as well as individual tick rates. Moved a bunch of ShouldThink/DoThink logic to base brain so it can be used by all brains instead of each having its own delta implementation, age tracking etc. Added "time in current state" to debug display.
comment
38 Days Ago
Moved brain states to a new shared enum, AIState. State constructors set type. AddState no longer requires a type parameter. States are now automatically maintained, in a dictionary. Reworked current state handling to be a state ref, not using array indexes. Hooked up gizmo drawing to brain, calls it on any active state for debugging. Added basic debug rendering info to base brain (current state name for now).
comment