BunnymodXT icon indicating copy to clipboard operation
BunnymodXT copied to clipboard

Add bxt_ch_trigger_tp_keeps_momentum

Open khanghugo opened this issue 1 year ago • 3 comments

This is useful for some surf/bhop maps that take advantage of portal-like teleportation.

Implementation is simple because in order for it to work, the mapper has to make the map linear as well.

This case is promised to never happen. image

~Waiting for CI to test on Windows. Currently crashing on Windows.....~

khanghugo avatar Feb 09 '24 02:02 khanghugo

Do you want to know what the main issue with the that implementation? The fact is that your speed needs to be redirected depending on your direction

The angles must be taken either from those specified in info_teleport_destination (the mapper must take care of this so that it specify the correct angles) or redirected from the player angles at the worst

Take a look to that implementation and description: https://github.com/fireblizzard/agmod/pull/11

SmileyAG avatar Feb 09 '24 05:02 SmileyAG

Right, then there should be two options for it. With redirect and without it. Redirect is nice but I mean to have this for big surf maps and they are guaranteed to be built like that.

This is an example of a map that only works without redirect.

https://www.youtube.com/watch?v=s6Y5BY6-iGY

I can add both of that.

khanghugo avatar Feb 09 '24 05:02 khanghugo

Thanks for the help. This should be good. I don't have redirect option on by default because I think maps that take advantage of this are linear.

khanghugo avatar Feb 09 '24 16:02 khanghugo

Thanks

YaLTeR avatar Jul 12 '24 17:07 YaLTeR