<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="16">
  <CheatEntries>
    <CheatEntry>
      <ID>3</ID>
      <Description>"MAIN [F1]"</Description>
      <Color>808080</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
Aobscan(addr,8B 81 D8 00 00 00 C3 00 ?? ?? ?? ?? 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? EC 57 56 53 81 EC)
Aobscan(ammoaddr,DB 40 28 D9 9D CC FE FF FF)
alloc(ammomem,2048)
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(player)
label(invinc)
label(enable_invinc)
label(disable_invinc)
label(no_invinc)
label(health)
label(max_hp)
label(ammostuff_on)
label(ammohax)
label(returnammo)
label(originalammo)
registersymbol(ammoaddr)
registersymbol(max_hp)
registersymbol(disable_invinc)
registersymbol(enable_invinc)
registersymbol(addr)
registersymbol(ammostuff_on)

ammomem:
cmp [ammostuff_on],1
je ammohax
jmp originalammo

ammohax:
//mov [ammostuff_on],0
//mov [eax+74],#7           //max bullets
mov [eax+28],7              //bullets
//mov [eax+50],#30          //ammount of strong bullets
mov [eax+80],(float)99999   //power
jmp originalammo

originalammo:
fild dword ptr [eax+28]
fstp dword ptr [ebp-00000134]
jmp returnammo

newmem:
push edi
mov edi,[ecx]
mov edi,[edi+04]
cmp edi,(int)596
je player
jmp originalcode

player:
cmp [enable_invinc],1
je invinc
cmp [disable_invinc],1
je no_invinc
cmp [max_hp],1
je health
jmp originalcode

invinc:
mov [ecx+1AC],1
jmp originalcode

no_invinc:
//mov [disable_invinc],0
mov [ecx+1AC],0
jmp originalcode

health:
mov [ecx+F8],#200
mov [ecx+D8],#200
jmp originalcode

originalcode:
pop edi
mov eax,[ecx+000000D8]
jmp returnhere


ammostuff_on:
dd 0
max_hp:
dd 0
enable_invinc:
dd 0
disable_invinc:
dd 0

ammoaddr:
jmp ammomem
nop
nop
nop
nop
returnammo:

addr:
jmp newmem
nop
returnhere:


[DISABLE]
dealloc(newmem)
dealloc(ammomem)
unregistersymbol(ammoaddr)
unregistersymbol(addr)
unregistersymbol(max_hp)
unregistersymbol(enable_invinc)
unregistersymbol(disable_invinc)
unregistersymbol(ammostuff_on)

addr:
mov eax,[ecx+000000D8]

ammoaddr:
fild dword ptr [eax+28]
fstp dword ptr [ebp-00000134]

</AssemblerScript>
      <Hotkeys>
        <Hotkey>
          <Action>Toggle Activation</Action>
          <Keys>
            <Key>112</Key>
          </Keys>
          <ID>0</ID>
        </Hotkey>
      </Hotkeys>
    </CheatEntry>
    <CheatEntry>
      <ID>15</ID>
      <Description>"[NUM 1] Invincibility"</Description>
      <Color>000040</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
enable_invinc:
dd 1
disable_invinc:
dd 0
[DISABLE]
disable_invinc:
dd 1
enable_invinc:
dd 0
</AssemblerScript>
      <Hotkeys>
        <Hotkey>
          <Action>Toggle Activation</Action>
          <Keys>
            <Key>97</Key>
          </Keys>
          <ID>0</ID>
        </Hotkey>
      </Hotkeys>
    </CheatEntry>
    <CheatEntry>
      <ID>16</ID>
      <Description>"[NUM 2] Ammo Stuff"</Description>
      <Color>000040</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
ammostuff_on:
dd 1
[DISABLE]
ammostuff_on:
dd 0
</AssemblerScript>
      <Hotkeys>
        <Hotkey>
          <Action>Toggle Activation</Action>
          <Keys>
            <Key>98</Key>
          </Keys>
          <ID>0</ID>
        </Hotkey>
      </Hotkeys>
    </CheatEntry>
    <CheatEntry>
      <ID>17</ID>
      <Description>"[NUM 3] HP Stuff"</Description>
      <Color>000040</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
max_hp:
dd 1
[DISABLE]
max_hp:
dd 0
</AssemblerScript>
      <Hotkeys>
        <Hotkey>
          <Action>Toggle Activation</Action>
          <Keys>
            <Key>99</Key>
          </Keys>
          <ID>0</ID>
        </Hotkey>
      </Hotkeys>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols>
    <SymbolEntry>
      <Name>realaddr</Name>
      <Address>0AD88651</Address>
    </SymbolEntry>
  </UserdefinedSymbols>
</CheatTable>
