Looking for help with OHK (One Hit Kill)
Posted: Sat Jul 23, 2022 8:28 pm
A few days ago I've stumbled upon an old game called "Hard to be a God" I thought it would be a good idea to try to make my first one hit kill script. So, I've followed GH's guide on OHK and tried making the script. I ended up making a slightly different one since the instructions aren't the same. In my scenario, highlighted instruction on pic. below(in disassembler) accesses player's and enemies' HP (though enemies HP value is multiplied by 2 for whatever reason, lol). I've compared a bunch of structures multiple times on different enemies/saves to find out the right offsets and came up with those shown in table comments on my pic. below
However, these 2 scripts are having an unexpected behavior. The one on the left makes enemies one-hit-killable, but whenever you're loading a game or going through map change with the script enabled, you're also dying instantly. Script on the right instantly kills all the enemies nearby and also sets my max (and current) hp and stamina to 1. I couldn't really figure out how can I fix this and damage multiplier would be a good workaround for this, but I wasn't really able to find an instruction that has anything to do with damage output. Any Ideas? I'm totally stumped
However, these 2 scripts are having an unexpected behavior. The one on the left makes enemies one-hit-killable, but whenever you're loading a game or going through map change with the script enabled, you're also dying instantly. Script on the right instantly kills all the enemies nearby and also sets my max (and current) hp and stamina to 1. I couldn't really figure out how can I fix this and damage multiplier would be a good workaround for this, but I wasn't really able to find an instruction that has anything to do with damage output. Any Ideas? I'm totally stumped