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
@@ -88,7 +88,7 @@ typedef struct LmpValues {
|
||||
size_t mis_mode_name, gp_ks_rules, gp_ks_rule_count, ks_rule_tag, ks_rule_air_ai_mult, ks_rule_ground_ai_mult;
|
||||
size_t ks_rule_spawn_pos, ks_rule_spawn_pos_count, ks_spawn_pos_stride, mp_ks_progress, app_terrain;
|
||||
/* local_mp_ground_ai */
|
||||
uint8_t *ground_ai_mission_action, *ground_ai_as_ground_model, *ground_ai_set_beh_tree;
|
||||
uint8_t *ground_ai_mission_action, *ground_ai_as_ground_model, *ground_ai_drive_to_pos_update;
|
||||
size_t ground_ai_move_system, ground_ai_move_inactive;
|
||||
} LmpValues;
|
||||
|
||||
|
||||
Reference in new issue
Block a user