fix(ground-ai): short-circuit driveToPos instead of skipping setBehaviorTree
Skipping Unit::setBehaviorTree left unit->behTree null on LocalMP bot tanks, which prevented VehiclePhysActor from applying producedCT to appliedCT (100% dead_echo in sinai_Conq1). Hook driveToPos::update (.37 0x861370, .58 0x863a90) instead and return ER_SUCCESS (1) when the ground AI script is ready, keeping the BehTree initialized while completely suppressing stock tankBot driving. Verified MSVC build (0 warnings) and .37/.58 native module resolution (0 failures).
This commit is contained in:
1 parent
85532cd930
commit
b3f9ff589c
4 files changed
+15
-19
No files matched your search
@@ -190,7 +190,7 @@ static const LmpValueSpec SPECS[] = {
|
||||
|
||||
A(GROUND_AI, "ground_ai_mission_binding.action", ground_ai_mission_action),
|
||||
A(GROUND_AI, "ground_ai_as_ground_model", ground_ai_as_ground_model),
|
||||
A(GROUND_AI, "ground_ai_set_beh_tree", ground_ai_set_beh_tree),
|
||||
A(GROUND_AI, "ground_ai_drive_to_pos_update", ground_ai_drive_to_pos_update),
|
||||
O(GROUND_AI, "ground_ai_move_properties.move_system", ground_ai_move_system),
|
||||
O(GROUND_AI, "ground_ai_move_annotation.inactive", ground_ai_move_inactive),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user