Commit Graph

1779 Commits

Author SHA1 Message Date
ricardoofnl 99dda3ded5 [saco] Implement/match CChatWindow::FUNC_10067940; the entry walk needs its own index bumped ahead of the rect advance, and the strlen guards are bare temps rather than a named length 2026-09-05 10:03:36 +07:00
ricardoofnl c735f2f750 [saco] Implement/match ScrUnkAE, ScrUnkAF, ScrUnkB2, ScrUnkA0, ScrUnk39, ScrUnk7E and ScrUnk7F; the actor lookup lands in ecx because it is the this of a thiscall, not an allocator choice 2026-09-05 09:58:02 +07:00
ricardoofnl 1d0b3fac63 [saco] Implement/match ScrUnkA1; it forwards the two bytes straight to CVehiclePool::FUNC_1001EB30 2026-09-05 09:43:46 +07:00
ricardoofnl 39edc13d51 [saco] Match ScrUnk30 and CDownloadList::FUNC_10017D10; the guarded three-field update is an inline member, so the handler and its out-of-line COMDAT fall together 2026-09-05 09:43:46 +07:00
ricardoofnl 1df2731742 [saco] Match SendDeath and SetInteriorId; the killer id is a WORD out-param whose copy widens to a dword 2026-09-05 09:39:37 +07:00
ricardoofnl 3a04674340 [saco] Match FUNC_10004120; the counter is a free function whose loop index and bound are both locals declared ahead of the early return 2026-09-05 09:39:37 +07:00
ricardoofnl 8163d2e5ee [saco] Match FUNC_10003FC0, the in-vehicle boundary check; the id is tested against INVALID_VEHICLE_ID before the range 2026-09-05 09:39:37 +07:00
ricardoofnl 5baa271d74 [saco] Match FUNC_10004280; GetAt is called twice and the pool bound check folds into GetSlotState 2026-09-05 09:39:37 +07:00
ricardoofnl 2cf8455402 [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 2026-09-05 09:33:55 +07:00
ricardoofnl 558298089e [saco] Match RequestSpawn, FUNC_10003F50 and FUNC_100041C0; the spectate reset is an else if, and a plain second if costs the jmp to the tail 2026-09-05 09:24:47 +07:00
ricardoofnl 3c8eb15683 [saco] Match five more CLocalPlayer members; SPAWN_INFO sits at +0x14F and the resend test duplicates its update arm rather than merging the conditions 2026-09-05 09:24:47 +07:00
ricardoofnl e18f766850 [saco] Match five more CLocalPlayer members; the sync interval globals at 0x100FE0A8/0x100FE0AC default to 30 2026-09-05 09:24:47 +07:00
ricardoofnl 375a1b3aa3 [saco] Match four small CLocalPlayer members; the 1000 fallback has to be the trailing else, and the three key words are read through field_0 2026-09-05 09:24:47 +07:00
ricardoofnl f4d31db33e [saco] Correct CGame::CreateWeaponPickup to inline the model wait; calling IsModelLoaded and friends out of line was wrong, the only delta left is MSVC rotating the wait loop where retail leaves it top tested 2026-09-05 09:24:47 +07:00
ricardoofnl 2f9da6d14b [saco] Implement/match ScrUnk7C, ScrUnk58, ScrUnk41, ScrUnkA9 and ScrUnk7A; CLocalPlayer::sub_100030F0 takes a byte, so the caller pushes the slot dword with no movzx 2026-09-05 09:24:47 +07:00
ricardoofnl be7d816e20 [saco] Implement/match ScrUnk62, ScrUnk11, ScrUnk93 and ScrUnk10; caching m_pGameAudio in a local is what loads this before the argument pushes 2026-09-05 09:24:47 +07:00
ricardoofnl 85d533a5af [saco] Match CRemotePlayer::FUNC_10017C80; the dead out-of-line COMDAT comes back once ScrUnk50 calls the inline setter instead of assigning field_4 directly 2026-09-05 09:24:47 +07:00
ricardoofnl efad9a4425 [saco] Implement/match ScrUnk52; the wire bool picks between InterpolatePosition and InterpolateLookAt, and both endpoints are VECTORs passed by pointer 2026-09-05 09:24:47 +07:00
ricardoofnl 4ea69b96c0 [saco] Implement/match CPlayerPed::FUNC_100AD440; the armed-weapon compare stays byte wide, and this one really does use destroy_object_with_fade 2026-09-05 09:12:31 +07:00
ricardoofnl 457fb47ee6 [saco] Implement/match CPlayerPed::FUNC_100AEEE0; the bone constant owns the lowest slot, so it is the last of the three locals declared 2026-09-05 09:12:31 +07:00
ricardoofnl 066b30a8b2 [saco] Implement/match CPlayerPed::FUNC_100AF220; the three contiguous ascending float slots are one VECTOR, not three locals 2026-09-05 09:12:31 +07:00
ricardoofnl 7f80a565e2 [saco] Implement/match CPlayerPed::FUNC_100AE790; the no-task branch tails into FUNC_100AE6A0 with this still in ecx 2026-09-05 09:12:31 +07:00
ricardoofnl 69cf2dfb20 [saco] Implement/match CPlayerPed::FUNC_100AF1F0; the ped local is stored before its own test, then the tail call reloads this 2026-09-05 09:12:31 +07:00
ricardoofnl b61d2ca7cc [saco] Implement/match CPlayerPed::FUNC_100AE530; the inherited renderware getter needs no ecx reload, this is still live 2026-09-05 09:12:31 +07:00
ricardoofnl 48dfa28b5d [saco] Implement/match CPlayerPed::FUNC_100AD9E0; the same lookup as FUNC_100AD9C0 against the ped-type field 2026-09-05 09:12:31 +07:00
ricardoofnl 984369a2a6 [saco] Implement/match CPlayerPed::FUNC_100AD9C0; the model index widens through movzx for the __cdecl stat lookup 2026-09-05 09:12:31 +07:00
ricardoofnl 4aea04637b Define dword_1026EB98 in main.cpp; net/netrpc.cpp declares it extern and nothing provided it 2026-09-05 09:10:01 +07:00
ricardoofnl a1748ca81f [saco] Implement/match UnkAB; the trailing GetAt only survives DCE when its result gates a return 2026-09-05 09:07:34 +07:00
ricardoofnl 4279b751fb Drop the duplicate CPlayerPed::FUNC_100ACEF0 declaration two lanes each added 2026-09-05 08:49:41 +07:00
ricardoofnl 313c7ee291 [saco] Implement/match ScrUnk29; it is PlayAudioStream on the object at 0x1026EB8C, and the position is a VECTOR with the radius slotted below it 2026-09-05 08:45:38 +07:00
ricardoofnl 03b2f5b5a5 [saco] Implement/match FUNC_10015460; the turn-speed clamp is gated by an initialised global and _gap16C is the synced quaternion 2026-09-05 08:45:38 +07:00
ricardoofnl 5f492d0791 [saco] Implement/match FUNC_10015760, the aim sync handler; repeating the sync load per destination keeps the copies in GPRs instead of fld/fst 2026-09-05 08:45:38 +07:00
ricardoofnl 8be02a792c [saco] Implement/match FUNC_10017130; the failure path sits after the nested success block and the widened callee params force both movzx 2026-09-05 08:45:38 +07:00
ricardoofnl b87030da7a [saco] Implement/match FUNC_10015650; writing the abs difference as >= keeps the subtract order and the test ah, 1 form 2026-09-05 08:45:38 +07:00
ricardoofnl 809df262a3 [saco] Implement/match FUNC_10017340, the driver sync store; the state change is written out longhand, not through FUNC_100165B0 2026-09-05 08:45:38 +07:00
ricardoofnl 998f68c583 [saco] Implement/match FUNC_10017440, the passenger sync store; the vehicle cache is an inlined CVehiclePool::GetAt 2026-09-05 08:45:38 +07:00
ricardoofnl e10d48a9e9 [saco] Implement/match FUNC_10017260, the on-foot sync store; the sign-bit mask on the anim field is what emits jns 2026-09-05 08:45:38 +07:00
ricardoofnl 486b730168 [saco] Implement/match FUNC_10014FF0; it slerps the ped 75% onto the synced quaternion and reheads it 2026-09-05 08:45:38 +07:00
ricardoofnl 0d9aedf631 [saco] Implement/match FUNC_100148F0; it drops the ped where it stands and clears the cached vehicle 2026-09-05 08:45:38 +07:00
ricardoofnl 4c4329f013 [saco] Match CPlayerPool::GetPlayerName; folding the range guard into the pointer initializer coalesces it onto this 2026-09-05 08:45:38 +07:00
ricardoofnl 88f696841e [saco] Implement/match Unk3D; the dialog id widens with movsx, so the local is a signed short 2026-09-05 08:45:38 +07:00
ricardoofnl ac18ccbe0a [saco] Implement/match Unk24; it builds a 3D text label and the flag init lands between rep stosd and stosb 2026-09-05 08:45:38 +07:00
ricardoofnl 1ba74d3c0e [saco] Implement/match Unk3B; it sets a chat bubble and caps the text at 0x90 bytes 2026-09-05 08:45:38 +07:00
ricardoofnl 479436d28c [saco] Implement/match UpdateScoresPingsIPs; the row count is an unsigned divide and the loop index is a WORD 2026-09-05 08:45:38 +07:00
ricardoofnl 791edd231d [saco] Implement/match Unk22; MSVC parks the 2-byte locals below the 4-byte ones under the BitStream 2026-09-05 08:45:38 +07:00
ricardoofnl dcf5887c29 [saco] Implement/match EditObject; the WORD init widens to a dword store over the dead padding 2026-09-05 08:45:38 +07:00
ricardoofnl 8bac5c0eb0 [saco] Add FUNC_10011990; the inlined Write copies each by-value parameter into a temp slot first 2026-09-05 08:45:38 +07:00
ricardoofnl 77f69b96f2 [saco] Implement/match EditAttachedObject; the zero-init of the read target sits after the BitStream ctor 2026-09-05 08:45:38 +07:00
ricardoofnl ab2512f919 [saco] Implement/match SelectObject; it cancels all three editor globals, the last one without a state check 2026-09-05 08:45:38 +07:00
ricardoofnl 2eedb90411 [saco] Implement/match Unk1C; the +0x80 guard needs mov/test while the +0 one folds into a cmp 2026-09-05 08:45:38 +07:00