Newbie Spellweaver
- Joined
- Apr 26, 2023
- Messages
- 27
- Reaction score
- 10
This is a simple way to patch HitHead.
Obs: This code is not complete, or just a base to get you started.
.h
.cpp
Open ZCharacter.cpp
Search: HitTest
The way to detect if the value is changed is up to you.
Obs: This code is not complete, or just a base to get you started.
.h
Code:
float HitHead;
.cpp
Code:
float HitHead = 15.f;
Open ZCharacter.cpp
Search: HitTest
Code:
auto Hit_15 = static_cast<float>(HitHead);
Code:
if (fDist < Hit_15)
{
if (pOutPos) *pOutPos = nearest;
return ZOH_HEAD;
}
The way to detect if the value is changed is up to you.