Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>1448</ID>
<Description>"Creature Behavior"</Description>
<Options moHideChildren="1"/>
<LastState/>
<Color>0080FF</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{======================
Author : aanpsx
Date : 2020-08-03
Game : SubnauticaZero.exe
Version : 2019.4.2.492
======================}
define(address_Creature,"Creature:UpdateBehaviour")
define(bytes_Creature,db 55 48 8B EC 48 83 EC 50)
define(fmax,(float)999999999)
define(fmin,(float)0)
define(imax,#999999999)
define(cmp1,cmp byte ptr)
define(bit,byte ptr)
define(mov1,mov byte ptr)
define(8b,dq 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0)
// 0 8101820283038404850586068707880889098
[ENABLE]
{$lua}
if syntaxcheck then return end
LaunchMonoDataCollector()
-----------------------
memrec.Color=0x000080ff
-------------- A.B.G.R
{$asm}
aobscanregion(PSX_Creature,Creature:UpdateBehaviour,Creature:UpdateBehaviour+1,55)
alloc(newmem_Creature,$1000,PSX_Creature)
label(_Creature)
label(code_Creature)
registersymbol(_Creature)
registersymbol(PSX_Creature)
registersymbol(code_Creature)
newmem_Creature:
mov [_Creature],rcx
@@://deaf
cmp1 [_Creature+70],0
je @f
mov [rcx+bc],fmin
@@://detect motion
cmp1 [_Creature+71],0
je @f
mov1 [rcx+c0],0
@@://cyclopsSonarDetectable
cmp1 [_Creature+72],0
je @f
mov1 [rcx+e4],1
@@://_friendlyToPlayer
cmp1 [_Creature+73],0
je @f
mov1 [rcx+fc],1
@@://blind
cmp1 [_Creature+74],0
je @f
mov1 [rcx+b0],0
code_Creature:
readmem(PSX_Creature,8)
jmp return_Creature
_Creature:
8b
PSX_Creature:
jmp newmem_Creature
nop 3
return_Creature:
[DISABLE]
unregistersymbol(_Creature)
unregistersymbol(PSX_Creature)
unregistersymbol(code_Creature)
dealloc(newmem_Creature)
PSX_Creature:
readmem(code_Creature,8)
//Alt: push rbp
//Alt: mov rbp,rsp
//Alt: sub rsp,50
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x00008000
-------------- A.B.G.R
{$asm}
{
// ORIGINAL CODE - INJECTION POINT: Creature:UpdateBehaviour
241BC4C7E78: 08 80 C3 76 D5 40 - or [rax+40D576C3],al
241BC4C7E7E: 02 00 - add al,[rax]
241BC4C7E80: 00 00 - add [rax],al
241BC4C7E82: 00 00 - add [rax],al
241BC4C7E84: 00 00 - add [rax],al
241BC4C7E86: 00 00 - add [rax],al
241BC4C7E88: 00 00 - add [rax],al
241BC4C7E8A: 00 00 - add [rax],al
241BC4C7E8C: 00 00 - add [rax],al
241BC4C7E8E: 00 00 - add [rax],al
// ---------- INJECTING HERE ----------
241BC4C7E90: 55 - push rbp
241BC4C7E91: 48 8B EC - mov rbp,rsp
241BC4C7E94: 48 83 EC 50 - sub rsp,50
// ---------- DONE INJECTING ----------
241BC4C7E98: 48 89 75 F0 - mov [rbp-10],rsi
241BC4C7E9C: 48 89 7D F8 - mov [rbp-08],rdi
241BC4C7EA0: 48 8B F1 - mov rsi,rcx
241BC4C7EA3: F3 0F 11 4D E0 - movss [rbp-20],xmm1
241BC4C7EA8: F3 0F 11 55 D8 - movss [rbp-28],xmm2
241BC4C7EAD: 90 - nop
241BC4C7EAE: 49 BB D0 26 39 A2 41 02 00 00 - mov r11,00000241A23926D0
241BC4C7EB8: 41 FF D3 - call r11
241BC4C7EBB: F3 0F 10 45 E0 - movss xmm0,[rbp-20]
241BC4C7EC0: F3 0F 5A C0 - cvtss2sd xmm0,xmm0
}
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>1451</ID>
<Description>"all creature are "deaf""</Description>
<LastState/>
<Color>0080FF</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{======================
Author : aanpsx
Date : 2020-08-03
Game : SubnauticaZero.exe
Version : 2019.4.2.492
======================}
define(PSX,_Creature+70)
[ENABLE]
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x000080ff
-------------- A.B.G.R
{$asm}
PSX:
db 1
[DISABLE]
PSX:
db 0
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x00008000
-------------- A.B.G.R
{$asm}
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>1452</ID>
<Description>"all creature are "Blind""</Description>
<LastState/>
<Color>0080FF</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{======================
Author : aanpsx
Date : 2020-08-03
Game : SubnauticaZero.exe
Version : 2019.4.2.492
======================}
define(PSX,_Creature+74)
[ENABLE]
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x000080ff
-------------- A.B.G.R
{$asm}
PSX:
db 1
[DISABLE]
PSX:
db 0
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x00008000
-------------- A.B.G.R
{$asm}
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>1455</ID>
<Description>"all creature are "friendly""</Description>
<LastState/>
<Color>0080FF</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{======================
Author : aanpsx
Date : 2020-08-03
Game : SubnauticaZero.exe
Version : 2019.4.2.492
======================}
define(PSX,_Creature+73)
[ENABLE]
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x000080ff
-------------- A.B.G.R
{$asm}
PSX:
db 1
[DISABLE]
PSX:
db 0
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x00008000
-------------- A.B.G.R
{$asm}
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>1453</ID>
<Description>"disable detect motion for all creature"</Description>
<LastState/>
<Color>0080FF</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{======================
Author : aanpsx
Date : 2020-08-03
Game : SubnauticaZero.exe
Version : 2019.4.2.492
======================}
define(PSX,_Creature+71)
[ENABLE]
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x000080ff
-------------- A.B.G.R
{$asm}
PSX:
db 1
[DISABLE]
PSX:
db 0
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x00008000
-------------- A.B.G.R
{$asm}
</AssemblerScript>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatTable>