Jan 6, 2021 at 4:46 AM
Sincerity will always triumph over irony.
Modding Community Discord Admin

"What're YOU lookin' at?"
Join Date: Apr 23, 2013
Location: In a cave above the surface.
Posts: 1091
Age: 27
Pronouns: He/They
Gender Notes: More info at a later date.
(I'm on mobile so hopefully this is worded right and helps)
2 problems:
1st problem: It wouldn't be the damage function actually. NPCs don't continually check player collision and then run that function from what I've seen. Instead it just has a variable of how much damage should be dealt on contact (this is in the NPC table, so ALL npcs have one). There's seperate generalized functions that check collisions for the NPCs and will calculate that etc.
This variable is expressed as "E?X+A4" in the NPC's code. You'd be changing the constant in an instruction that goes something like
where ### is the damage.
2nd Problem: Balfrog (as is most mapbosses) is actually composed of seperate sub-entities with different hitboxes. iirc there's two that both deal damage.
You can find the offsets towards the end of this sheet. (This link is also pinned in CSMC's #resources.)
Looks like Balfrog has 3 entities (one of them being the main one that Hayden gave you the offset for). And your gonna change any E?X+A4 constants you happen to find like I mentioned earlier. That should do it!
2 problems:
1st problem: It wouldn't be the damage function actually. NPCs don't continually check player collision and then run that function from what I've seen. Instead it just has a variable of how much damage should be dealt on contact (this is in the NPC table, so ALL npcs have one). There's seperate generalized functions that check collisions for the NPCs and will calculate that etc.
This variable is expressed as "E?X+A4" in the NPC's code. You'd be changing the constant in an instruction that goes something like
MOV DWORD --?-- [E?X+A4],###where ### is the damage.
2nd Problem: Balfrog (as is most mapbosses) is actually composed of seperate sub-entities with different hitboxes. iirc there's two that both deal damage.
You can find the offsets towards the end of this sheet. (This link is also pinned in CSMC's #resources.)
Looks like Balfrog has 3 entities (one of them being the main one that Hayden gave you the offset for). And your gonna change any E?X+A4 constants you happen to find like I mentioned earlier. That should do it!




