Add mission customization, HQ support and aggression-driven AI

Integrate faction and random settings menus, generated objectives, scouts, convoys, air support, mortar stations and body-intel recovery. Add identified-body aggression, finite hunter UAZ deployment, dedicated objective defence and maximum AI skill with separate reduced aim accuracy. Include policy tests, native probes, evidence and documentation.
This commit is contained in:
2026-09-23 15:07:14 +02:00
parent 04bd19327b
commit 1b1a8b5173
242 changed files with 12153 additions and 875 deletions
+6 -4
View File
@@ -56,15 +56,17 @@ int main(){
storage.owner=&otherTruck;assert(!access.Check(&truck,&actor));storage.owner=&truck;
BaseUserAction door;door.owner=&truck;context.actions={&door};assert(!access.Check(&truck,&actor));context.actions={&storage};
manager.enabled=false;assert(!access.Check(&truck,&actor));manager.enabled=true;
// Stock Ural defines 36 root contexts and ammo adds one: a valid storage action near the end must remain discoverable.
for(int count:{37,64}){
// Stock Ural has 37 contexts and Mi-8 has 82: a valid storage action near the end must remain discoverable.
for(int count:{37,64,82,128}){
std::vector<UserActionContext> stockContexts(count);manager.contexts.clear();
for(auto& authored:stockContexts){authored.actions={&door};manager.contexts.push_back(&authored);}
stockContexts.back().actions={&storage};
assert(ERR_InfantryAmmoAccess::Points(&truck,points)&&points.Count()==1&&access.Check(&truck,&actor));
}
manager.contexts.clear();manager.contexts.resize(65,&context);assert(!access.Check(&truck,&actor));manager.contexts={&context};
context.actions.resize(17,&storage);assert(!access.Check(&truck,&actor));context.actions={&storage};
manager.contexts.clear();manager.contexts.resize(129,&context);assert(!access.Check(&truck,&actor));manager.contexts={&context};
// Native helicopter door contexts include 38 actions, most unrelated to storage.
for(int count:{33,38,64}){context.actions.clear();context.actions.resize(count,&door);context.actions.back()=&storage;assert(access.Check(&truck,&actor));}
context.actions.resize(65,&storage);assert(!access.Check(&truck,&actor));context.actions={&storage};
manager.contexts={nullptr};assert(!access.Check(&truck,&actor));manager.contexts={&context};
assert(!access.Check(&truck,&wall));assert(!access.Check(nullptr,&actor));
// A blocked context never skips an intervening external entity; another independently clear authored context may qualify.