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
@@ -63,14 +63,14 @@
|
||||
}
|
||||
}]
|
||||
},
|
||||
// Unit::setBehaviorTree (vtable +0x1f0 and direct calls from BotSystem attaching "tankBot").
|
||||
// 2.61.0.37: 0x4e89b0. 2.61.0.58: 0x4e8f60.
|
||||
"ground_ai_set_beh_tree": {
|
||||
// driveToPos::update (vtable[1] of the tankBot driveToPos behavior node).
|
||||
// 2.61.0.37: 0x861370. 2.61.0.58: 0x863a90.
|
||||
"ground_ai_drive_to_pos_update": {
|
||||
"variants": [{
|
||||
"written_for": "2.61.0.37",
|
||||
"locate": {
|
||||
"method": "signature",
|
||||
"pattern": "41 56 56 57 53 48 83 ec 48 8b 81 ?? ?? ?? ?? a9 00 01 00 00 75 1a 48 8b 81 ?? ?? ?? ?? 48 85 c0 74 2e f6 80 ?? ?? ?? ?? 80 75 25 e9 ?? ?? ?? ??"
|
||||
"pattern": "41 57 41 56 41 55 41 54 56 57 55 53 48 81 ec 98 02 00 00 44 0f 29 bc 24 80 02 00 00 44 0f 29 b4 24 70 02 00 00 44 0f 29 ac 24 60 02 00 00 44 0f 29 a4 24 50 02 00 00 44 0f 29 9c 24 40 02 00 00 44 0f 29 94 24 30 02 00 00 44 0f 29 8c 24 20 02 00 00 44 0f 29 84 24 10 02 00 00 0f 29 bc 24 00 02 00 00 0f 29 b4 24 f0 01 00 00 44 0f 28 da 49 89 cf 48 8b 3d ?? ?? ?? ?? 44 8b 72 08 0f b6 87 f3 00 00 00 48 8b 9f 60 06 00 00 48 85 db 40 0f 94 c5 40 08 c5 40 f6 c5 01 75 09 48 89 d9 ff 15 ?? ?? ?? ?? 44"
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user