Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Simple Hit Head Patch

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. :partymental:

.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. :reeeee:
 
Newbie Spellweaver
Joined
Aug 8, 2012
Messages
19
Reaction score
0
This is a simple way to patch HitHead.
Obs: This code is not complete, or just a base to get you started. :partymental:
.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. :reeeee:
 
Back
Top