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

Add bxt_ch_trigger_tp_keeps_momentum #502

Merged
merged 2 commits into from
Jul 12, 2024
Merged

Conversation

khanghugo
Copy link
Contributor

@khanghugo khanghugo commented Feb 9, 2024

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 khanghugo marked this pull request as draft February 9, 2024 02:55
@khanghugo khanghugo force-pushed the tp_keeps_vel branch 2 times, most recently from 2abdc61 to 6a24516 Compare February 9, 2024 04:57
@khanghugo khanghugo marked this pull request as ready for review February 9, 2024 04:58
@SmileyAG
Copy link
Collaborator

SmileyAG commented Feb 9, 2024

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: fireblizzard/agmod#11

@khanghugo
Copy link
Contributor Author

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.

BunnymodXT/modules/ServerDLL.cpp Outdated Show resolved Hide resolved
@khanghugo
Copy link
Contributor Author

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.

BunnymodXT/modules/ServerDLL.cpp Outdated Show resolved Hide resolved
BunnymodXT/modules/ServerDLL.cpp Show resolved Hide resolved
@khanghugo khanghugo force-pushed the tp_keeps_vel branch 2 times, most recently from 4292038 to ee232cd Compare March 8, 2024 02:50
@YaLTeR YaLTeR merged commit 712bc7c into YaLTeR:master Jul 12, 2024
7 checks passed
@YaLTeR
Copy link
Owner

YaLTeR commented Jul 12, 2024

Thanks

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

Successfully merging this pull request may close these issues.

3 participants