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!

Hitbox simple command.

Experienced Elementalist
Joined
Oct 14, 2015
Messages
290
Reaction score
83
ZGlobal.cpp
Code:
float HIT_VALUE_HEAD = 15.f;
ZGlobal.h
Code:
extern float HIT_VALUE_HEAD;
ZCharacter.cpp | Search (HitTest)
Line 4543
Code:
fDist < HIT_VALUE_HEAD
ZChatCmds.cpp
Code:
void ChatCmd_HitTest(const char* line, const int argc, char** const argv);
Code:
_CC_AC("hittest", &ChatCmd_HitTest, CCF_ADMIN, ARGVNoMin, 1, true, "/hittest", "");
Code:
void ChatCmd_HitTest(const char* line, const int argc, char** const argv)
{
    if (argc < 2)
    {
        OutputCmdWrongArgument(argv[0]);
        return;
    }

    char szText[128];
    HIT_VALUE_HEAD = static_cast<float>(atof(argv[1]));
    sprintf(szText, "Set HitBox to %f",HIT_VALUE_16);
    ZChatOutput(szText, ZChat::CMT_SYSTEM);
}

Remember, it is not a safe code. :p:
 
Last edited:
Back
Top