To do this, you need any HEX Editor, I recommend WinHEX.
Spider-Man 2: The Game: HEX-Cheat Codes [1.0] Free Download
1: Launch the HEX-Editor program.
2: Open files from the game folder with it SYSTEM.
3: We are looking for the desired offset, change it to the code we need and save the game file.
P.S – For those who do not know, the last digit or letter in the offset means a line in the code.
Immortal life:
Editing the file – WEBHEAD.DLL
Offset: 00026D18 Code: E99395FDFF90
Offset: 000002B0 Code: C6864C040000C8399E4C040000E95C6A
Offset: 000002C0 Code: 0200
Eternal Power:
Editing the file – CORE.DLL
Offset: 000358D7 Code: E9E4A9FCFF90
Offset: 000002C0 Code: 663D597C7402EB06C70700002041D907
Offset: 000002D0 Code: 8B542414E904560300