• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

[C++] Official appSetCameraMaxDistance [REVERSED]

Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
Metin2Hub New World
Retired
Apr
Threads
131
755
2,498
93
It was done by Mali (not Marty) however thanks 😊
If u want Mali version, is this one :

C++:
PyObject* appSetCameraMaxDistance(PyObject* poSelf, PyObject* poArgs)
{
    float fMax;
    if (!PyTuple_GetFloat(poArgs, 0, &fMax))
        return Py_BuildException();

    const std::string c_rstrMapFileName = CPythonBackground::Instance().GetWarpMapName();

    if (!c_rstrMapFileName.compare("metin2_map_n_flame_dragon"))
        fMax = 6000.0f;
    else if (!c_rstrMapFileName.compare("metin2_12zi_stage"))
        fMax = 5000.0f;
    else if (!c_rstrMapFileName.compare("metin2_map_defensewave"))
        fMax = 5000.0f;
    else if (!c_rstrMapFileName.compare("metin2_map_miniboss_01"))
        fMax = 5000.0f;
    else if (!c_rstrMapFileName.compare("metin2_map_miniboss_02"))
        fMax = 5000.0f;
    else if (!c_rstrMapFileName.compare("metin2_map_mists_of_island"))
        fMax = 5000.0f;

    CCamera::SetCameraMaxDistance(fMax);
    return Py_BuildNone();
}

The version I published is a refactored of Martysama

Anyway u re welcome bro! ❤️
 
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock