Popojiju wrote: ↑Tue Feb 21, 2023 8:05 pm
I'm hoping for a weapon leveler, faster or instant level up.
I also wanted one so after searching a while I found a point in the code where I could set the number of kills needed to get a weapon trait to 1, which means the trait will get instantly learned after killing something.
It's an AOB so expect it to not work after a while.
Copy the code below and paste it into your CE-Window.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>375935</ID>
<Description>"Instant Weapon Trait"</Description>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>// Game : Returnal-Win64-Shipping.exe
// Executable Version: 4.25.1.0
// Module Version : 4.25.1.0
// Script Date : 2023-03-11
// Author : Atminisdrator
[ENABLE]
aobscanmodule(aob_InstantWeaponTrait,Returnal-Returnal-Win64-Shipping.dll,c4 c1 78 10 07 c5 f8 11 03 8B)
registersymbol(aob_InstantWeaponTrait)
alloc(newmem_InstantWeaponTrait,32,aob_InstantWeaponTrait)
label(return_InstantWeaponTrait)
newmem_InstantWeaponTrait:
cmp dword ptr [r15+10], 0
je short @f
mov dword ptr [r15+10], 1
@:
vmovups xmm0,[r15]
jmp return_InstantWeaponTrait
aob_InstantWeaponTrait:
jmp newmem_InstantWeaponTrait
return_InstantWeaponTrait:
[DISABLE]
aob_InstantWeaponTrait:
db C4 C1 78 10 07
unregistersymbol(*)
dealloc(newmem_InstantWeaponTrait)
{
// ORIGINAL CODE - INJECTION POINT: Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11B7
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1150: 48 39 0B - cmp [rbx],rcx
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1153: 74 5F - je Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11B4
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1155: 48 83 C3 10 - add rbx,10
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1159: 48 3B D8 - cmp rbx,rax
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+115C: 75 F2 - jne Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1150
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+115E: 8D 42 01 - lea eax,[rdx+01]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1161: 89 47 08 - mov [rdi+08],eax
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1164: 3B 47 0C - cmp eax,[rdi+0C]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1167: 7E 08 - jle Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1171
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1169: 48 8B CF - mov rcx,rdi
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+116C: E8 9F 11 BA FF - call Returnal-Returnal-Win64-Shipping.UHealthComponent::ResetSoftDamageCapTracking+15A0
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1171: 48 8B 07 - mov rax,[rdi]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1174: C4 C1 78 10 07 - vmovups xmm0,[r15]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1179: C4 A1 78 11 04 E0 - vmovups [rax+r12*8],xmm0
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+117F: 45 84 F6 - test r14l,r14l
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1182: 0F 84 98 00 00 00 - je Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1220
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1188: 48 8D 9E E0 03 00 00 - lea rbx,[rsi+000003E0]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+118F: 48 3B DF - cmp rbx,rdi
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1192: 0F 84 88 00 00 00 - je Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1220
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1198: 48 63 6F 08 - movsxd rbp,dword ptr [rdi+08]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+119C: 48 8B 3F - mov rdi,[rdi]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+119F: 44 8B 43 0C - mov r8d,[rbx+0C]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11A3: 89 6B 08 - mov [rbx+08],ebp
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11A6: 85 ED - test ebp,ebp
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11A8: 75 5A - jne Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1204
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11AA: 45 85 C0 - test r8d,r8d
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11AD: 75 55 - jne Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1204
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11AF: 89 6B 0C - mov [rbx+0C],ebp
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11B2: EB 6C - jmp Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1220
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11B4: 8B 6B 08 - mov ebp,[rbx+08]
// ---------- INJECTING HERE ----------
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11B7: C4 C1 78 10 07 - vmovups xmm0,[r15]
// ---------- DONE INJECTING ----------
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11BC: C5 F8 11 03 - vmovups [rbx],xmm0
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11C0: 8B 4B 08 - mov ecx,[rbx+08]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11C3: 3B CD - cmp ecx,ebp
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11C5: 7D 05 - jnl Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11CC
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11C7: 89 6B 08 - mov [rbx+08],ebp
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11CA: 8B CD - mov ecx,ebp
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11CC: 45 84 F6 - test r14l,r14l
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11CF: 74 12 - je Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11E3
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11D1: 48 8D 8E E0 03 00 00 - lea rcx,[rsi+000003E0]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11D8: 48 8B D7 - mov rdx,rdi
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11DB: E8 60 B0 E2 FF - call "Returnal-Returnal-Win64-Shipping.UWaveGenBlock::operator new"+D0
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11E0: 8B 4B 08 - mov ecx,[rbx+08]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11E3: 4C 8B 06 - mov r8,[rsi]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11E6: 3B CD - cmp ecx,ebp
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11E8: BA 03 00 00 00 - mov edx,00000003
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11ED: B8 01 00 00 00 - mov eax,00000001
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11F2: 0F 4F C2 - cmovg eax,edx
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11F5: 48 8B CE - mov rcx,rsi
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11F8: 0F B6 D0 - movzx edx,al
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+11FB: 41 FF 90 68 02 00 00 - call qword ptr [r8+00000268]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1202: EB 2A - jmp Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+122E
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1204: 8B D5 - mov edx,ebp
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1206: 48 8B CB - mov rcx,rbx
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1209: E8 92 02 BA FF - call Returnal-Returnal-Win64-Shipping.UHealthComponent::ResetSoftDamageCapTracking+730
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+120E: 48 8B 0B - mov rcx,[rbx]
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1211: 4C 8B C5 - mov r8,rbp
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1214: 49 C1 E0 04 - shl r8,04
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1218: 48 8B D7 - mov rdx,rdi
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+121B: E8 5C 15 34 00 - call Returnal-Returnal-Win64-Shipping.AkMotionInitializeScePadFunctions+661C
Returnal-Returnal-Win64-Shipping.AMeleeWeaponBase::UpdateStateBeforeMovement+1220: 48 8B 06 - mov rax,[rsi]
}
</AssemblerScript>
</CheatEntry>
</CheatEntries>
</CheatTable>