<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="42">
  <CheatEntries>
    <CheatEntry>
      <ID>12</ID>
      <Description>"God Mode"</Description>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]

aobscanmodule(no_damage,SouthPark_TFBW.exe,89 46 24 89 4C 24 58) // should be unique
alloc(newmem,$1000,no_damage)

label(code)
label(return)

newmem:

code:
  cmp byte ptr [rsi+148],CD  // Byte that seems to not appear in enemy struct
  je @f
  mov [rsi+24],0
@@:
  mov [rsp+58],ecx
  jmp return

no_damage:
  jmp newmem
  nop 2
return:
registersymbol(no_damage)

[DISABLE]

no_damage:
  db 89 46 24 89 4C 24 58

unregistersymbol(no_damage)
dealloc(newmem)
</AssemblerScript>
    </CheatEntry>
    <CheatEntry>
      <ID>24</ID>
      <Description>"Don't Spend Money"</Description>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]

aobscanmodule(no_spend,SouthPark_TFBW.exe,41 2B CE 89 48 0C) // should be unique
alloc(newmem,$1000,no_spend)

label(code)
label(return)

newmem:

code:
  //sub ecx,r14d
  nop
  nop
  nop
  mov [rax+0C],ecx
  jmp return

no_spend:
  jmp newmem
  nop
return:
registersymbol(no_spend)

[DISABLE]

no_spend:
  db 41 2B CE 89 48 0C

unregistersymbol(no_spend)
dealloc(newmem)

</AssemblerScript>
    </CheatEntry>
  </CheatEntries>
  <CheatCodes>
    <CodeEntry>
      <Description>Change of sub ecx,r14d</Description>
      <AddressString>SouthPark_TFBW.exe+17AC2B</AddressString>
      <Before>
        <Byte>41</Byte>
        <Byte>3B</Byte>
        <Byte>CE</Byte>
        <Byte>7E</Byte>
        <Byte>08</Byte>
      </Before>
      <Actual>
        <Byte>41</Byte>
        <Byte>2B</Byte>
        <Byte>CE</Byte>
      </Actual>
      <After>
        <Byte>89</Byte>
        <Byte>48</Byte>
        <Byte>0C</Byte>
        <Byte>EB</Byte>
        <Byte>05</Byte>
      </After>
    </CodeEntry>
  </CheatCodes>
  <UserdefinedSymbols/>
</CheatTable>
