<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="42">
  <CheatEntries>
    <CheatEntry>
      <ID>114982</ID>
      <Description>"&lt;=== Attach to process"</Description>
      <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
      <Color>0000FF</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
  if(getCEVersion() &lt; 7.4) then
    ShowMessage('Warning! CE version should be 7.4 or above')
  end

OpenProcess("PlagueProject-Win64-Shipping.exe")
  if(process == nil) then
    ShowMessage('The process is NOT found!')
  end

{$asm}

[DISABLE]
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>26227</ID>
          <Description>"Get LocalPlayer"</Description>
          <Options moHideChildren="1"/>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]

aobscanmodule(get_localplayer,PlagueProject-Win64-Shipping.exe,49 8B 06 48 8D 95 E0 00 00 00) // should be unique
alloc(newmem,$1000,get_localplayer)
alloc(localplayer,8)

label(code)
label(return)

newmem:
  mov [localplayer],r14
code:
  mov rax,[r14]
  lea rdx,[rbp+000000E0]
  jmp return

localplayer:
  dq 0
get_localplayer:
  jmp newmem
  nop 5
return:
registersymbol(get_localplayer localplayer)

[DISABLE]

get_localplayer:
  db 49 8B 06 48 8D 95 E0 00 00 00

unregistersymbol(get_localplayer localplayer)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: PlagueProject-Win64-Shipping.exe+28E8BCC

PlagueProject-Win64-Shipping.exe+28E8B93: F3 0F 2C C9           - cvttss2si ecx,xmm1
PlagueProject-Win64-Shipping.exe+28E8B97: 89 4C 24 44           - mov [rsp+44],ecx
PlagueProject-Win64-Shipping.exe+28E8B9B: 44 8D 04 01           - lea r8d,[rcx+rax]
PlagueProject-Win64-Shipping.exe+28E8B9F: 44 89 86 9C 00 00 00  - mov [rsi+0000009C],r8d
PlagueProject-Win64-Shipping.exe+28E8BA6: 48 8D 8D E0 00 00 00  - lea rcx,[rbp+000000E0]
PlagueProject-Win64-Shipping.exe+28E8BAD: 89 96 A0 00 00 00     - mov [rsi+000000A0],edx
PlagueProject-Win64-Shipping.exe+28E8BB3: 89 86 A4 00 00 00     - mov [rsi+000000A4],eax
PlagueProject-Win64-Shipping.exe+28E8BB9: 44 89 8E A8 00 00 00  - mov [rsi+000000A8],r9d
PlagueProject-Win64-Shipping.exe+28E8BC0: 44 89 86 AC 00 00 00  - mov [rsi+000000AC],r8d
PlagueProject-Win64-Shipping.exe+28E8BC7: E8 84 3D 01 FE        - call PlagueProject-Win64-Shipping.exe+8FC950
// ---------- INJECTING HERE ----------
PlagueProject-Win64-Shipping.exe+28E8BCC: 49 8B 06              - mov rax,[r14]
// ---------- DONE INJECTING  ----------
PlagueProject-Win64-Shipping.exe+28E8BCF: 48 8D 95 E0 00 00 00  - lea rdx,[rbp+000000E0]
PlagueProject-Win64-Shipping.exe+28E8BD6: 45 8B C4              - mov r8d,r12d
PlagueProject-Win64-Shipping.exe+28E8BD9: 49 8B CE              - mov rcx,r14
PlagueProject-Win64-Shipping.exe+28E8BDC: FF 90 78 02 00 00     - call qword ptr [rax+00000278]
PlagueProject-Win64-Shipping.exe+28E8BE2: 41 8B CC              - mov ecx,r12d
PlagueProject-Win64-Shipping.exe+28E8BE5: E8 46 FA 2B 00        - call PlagueProject-Win64-Shipping.exe+2BA8630
PlagueProject-Win64-Shipping.exe+28E8BEA: 84 C0                 - test al,al
PlagueProject-Win64-Shipping.exe+28E8BEC: 74 17                 - je PlagueProject-Win64-Shipping.exe+28E8C05
PlagueProject-Win64-Shipping.exe+28E8BEE: 48 8B 0D 93 0F 34 02  - mov rcx,[GEngine]
PlagueProject-Win64-Shipping.exe+28E8BF5: 33 D2                 - xor edx,edx
}
</AssemblerScript>
          <CheatEntries>
            <CheatEntry>
              <ID>26228</ID>
              <Description>"LocalPlayer"</Description>
              <ShowAsSigned>0</ShowAsSigned>
              <VariableType>4 Bytes</VariableType>
              <Address>localplayer</Address>
              <Offsets>
                <Offset>0</Offset>
              </Offsets>
              <CheatEntries>
                <CheatEntry>
                  <ID>26229</ID>
                  <Description>"PlayerController"</Description>
                  <ShowAsSigned>0</ShowAsSigned>
                  <VariableType>4 Bytes</VariableType>
                  <Address>+30</Address>
                  <Offsets>
                    <Offset>0</Offset>
                  </Offsets>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>26240</ID>
                      <Description>"CheatManager"</Description>
                      <ShowAsSigned>0</ShowAsSigned>
                      <VariableType>4 Bytes</VariableType>
                      <Address>+338</Address>
                      <Offsets>
                        <Offset>0</Offset>
                      </Offsets>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>26230</ID>
                      <Description>"Character"</Description>
                      <ShowAsSigned>0</ShowAsSigned>
                      <VariableType>4 Bytes</VariableType>
                      <Address>+260</Address>
                      <Offsets>
                        <Offset>0</Offset>
                      </Offsets>
                      <CheatEntries>
                        <CheatEntry>
                          <ID>26236</ID>
                          <Description>"IsInvincible"</Description>
                          <ShowAsSigned>0</ShowAsSigned>
                          <Color>0000FF</Color>
                          <VariableType>4 Bytes</VariableType>
                          <Address>+886</Address>
                        </CheatEntry>
                        <CheatEntry>
                          <ID>26234</ID>
                          <Description>"Custom Time Dilation (set to 2 and have fun)"</Description>
                          <ShowAsSigned>0</ShowAsSigned>
                          <VariableType>Float</VariableType>
                          <Address>+98</Address>
                        </CheatEntry>
                        <CheatEntry>
                          <ID>26235</ID>
                          <Description>"bbNoDamage"</Description>
                          <ShowAsSigned>0</ShowAsSigned>
                          <VariableType>4 Bytes</VariableType>
                          <Address>+710</Address>
                        </CheatEntry>
                      </CheatEntries>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
              </CheatEntries>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
</CheatTable>
