I tried, but I couldn't make it work.. I also tried this: IS_SHOCKING_EVENT_IN_SPHERE looping through all the events from here: https://alloc8or.re/rdr3/doc/enums/eEventType.txt , but none of those seem to exist near the corpse somehow..
Enabling this works though: SET_BLOCKING_OF_NON_TEMPORARY_EVENTS, which would suggest it's some sort of event after all I guess, so idk, but this one also makes the ped ignore a lot of other things.
Also, making the ped a sanctioned shooter (?) seem to prevent them from freaking out:
PED::SET_PED_CONFIG_FLAG(ped, 347, true);
Not sure what else this does to them though.
Anyway, I can probably work with these, thanks both of you! If anyone else has ideas they'd be still welcome!