Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PM_Jump #273

Closed
Kpoluk opened this issue Apr 23, 2023 · 9 comments
Closed

PM_Jump #273

Kpoluk opened this issue Apr 23, 2023 · 9 comments

Comments

@Kpoluk
Copy link

Kpoluk commented Apr 23, 2023

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

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

@StevenKal
Copy link

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

@WaLkZa
Copy link

WaLkZa commented Apr 23, 2023

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

@Kpoluk
Copy link
Author

Kpoluk commented Apr 23, 2023

@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
Copy link

WaLkZa commented Apr 23, 2023

@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

@WaLkZa
Copy link

WaLkZa commented Jul 10, 2023

dystopm can you take a look?

@wopox1337
Copy link
Collaborator

wopox1337 commented Jul 10, 2023

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

sv_autobunnyhopping 1
sv_enablebunnyhopping 1

@WaLkZa
Copy link

WaLkZa commented Jul 11, 2023

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

@dystopm
Copy link
Contributor

dystopm commented Jul 16, 2023

dystopm can you take a look?

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

@dystopm
Copy link
Contributor

dystopm commented Sep 25, 2023

Done in #280

@s1lentq s1lentq closed this as completed Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants