rehlds/ReAPI

PM_Jump

Closed this issue ยท 9 comments

Hi, could you create a hook for PM_Jump() function?

It'll allow to use AXN maps on jump servers.

Beg for it to be pushed on ReGameDLL_CS first, here!

Can you show some example how this will allow to use AXN map?

@WaLkZa like this I guess

new Float:g_flOldMaxSpeed;

public plugin_init()
{ 
    RegisterHookChain(RG_Jump, "pmJump", false); // to be implemented
    RegisterHookChain(RG_Jump, "pmJump_P", true); // to be implemented
}

public pmJump()
{
    g_flOldMaxSpeed = get_pmove(pm_maxspeed);
    set_pmove(pm_maxspeed, 0.0);
}

public pmJump_P()
{
    set_pmove(pm_fuser2, 0.0);
    set_pmove(pm_maxspeed, g_flOldMaxSpeed);
}

dystopm can you take a look?

What's about new bhop cvars? Compatible with axn?

sv_autobunnyhopping 1
sv_enablebunnyhopping 1

I don't know, but this hook will be useful as well for other already implemented plugins with orpheu.

dystopm can you take a look?

Just saw this recently, next time tag me because you just wrote my profile link :P

Done in #280