[saco] Correct the SCRIPT_COMMAND ids in FUNC_100AD3E0 and FUNC_100AE1E0; the id is a masked relocation, so the byte diff cannot see a wrong command

This commit is contained in:
ricardoofnl
2026-09-05 09:19:27 +07:00
parent 558298089e
commit 2cf8455402
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -1929,7 +1929,7 @@ void CPlayerPed::FUNC_100AD3E0()
{
if(field_2B9) {
ScriptCommand(&disassociate_object, field_2B9, 0.0f, 0.0f, 0.0f, 0);
ScriptCommand(&destroy_object_with_fade, field_2B9);
ScriptCommand(&destroy_object, field_2B9);
field_2B9 = 0;
}
}
@@ -2160,7 +2160,7 @@ void CPlayerPed::FUNC_100AE1E0()
if(!field_2F2) return;
if(field_2BD) {
ScriptCommand(&destroy_object_with_fade, field_2BD);
ScriptCommand(&script_0650, field_2BD);
field_2BD = 0;
}
+4
View File
@@ -104,6 +104,10 @@ const SCRIPT_COMMAND refresh_streaming_at = { 0x04E4, "ff" };
const SCRIPT_COMMAND select_interior = { 0x04BB, "i" }; // interior
const SCRIPT_COMMAND disassociate_object = { 0x0682, "ifffi" }; // var_object, x, y, z, ukn
const SCRIPT_COMMAND destroy_object_with_fade = { 0x09A2, "i" }; // var_object
// the two object commands samp.dll references that were missing here; the diff cannot
// see a wrong command id, the operand is a masked relocation
const SCRIPT_COMMAND destroy_object = { 0x0108, "i" }; // var_object
const SCRIPT_COMMAND script_0650 = { 0x0650, "i" }; // var_object, name not resolved
const SCRIPT_COMMAND task_pick_up_object = { 0x070A, "iifffiissi" };
const SCRIPT_COMMAND link_actor_to_interior = { 0x0860, "ii" }; // var_actor, interior
const SCRIPT_COMMAND put_actor_in_car2 = { 0x0430, "iii" };