PM_Jump
Closed this issue ยท 9 comments
Kpoluk commented
Hi, could you create a hook for PM_Jump() function?
It'll allow to use AXN maps on jump servers.
WaLkZa commented
Can you show some example how this will allow to use AXN map?
Kpoluk commented
@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);
}
WaLkZa commented
@Kpoluk Thanks. I look the logic here https://github.com/MichaelKheel/ProKreedz/blob/master/src/KZ_Engine.sma#L5045-L5061
Let's ping @s1lentq @wopox1337
SergeyShorokhov commented
What's about new bhop cvars? Compatible with axn?
sv_autobunnyhopping 1
sv_enablebunnyhopping 1
WaLkZa commented
I don't know, but this hook will be useful as well for other already implemented plugins with orpheu.