shavitush / bhoptimer

A bunnyhop timer plugin for Counter-Strike: Source, Counter-Strike: Global Offensive and Team Fortress 2.
https://timer.shav.it
GNU General Public License v3.0
230 stars 94 forks source link

Add teleport to stage start command #1207

Closed Awesomerly closed 5 months ago

Awesomerly commented 5 months ago

On KSF, the defacto CSS surf server, there is a command called /teleport. What it does is take you back to the previous zone you were in without stopping the timer. On bhop the penalty for failing a stage isn't very bad because the ground isn't far away from the player and stages aren't as important to that gamemode, but in surf it can alleviate players from having to fall for 3 seconds just to get back to the stage they were on.

I still need feedback on this.

Awesomerly commented 5 months ago

One thing I realized is that there's already a tele command in bhoptimer that teleports to a checkpoint. On KSF /teleport also takes you to the last checkpoint in their similar-but-less-fleshed-out version of the Segmented style... I think that it may be a good idea to come up with a different official name for this command but keep /teleport as one of the names so that surfers don't have to change their binds.

ddorab commented 5 months ago

bind x "sm_tele; sm_teleport", unless there's a tele command in surf as well that's all they need to do also I thought it was meant to be an alias for tele but your thing has the same functionality as ksf where it teleports you to the last zone you were in?

Awesomerly commented 5 months ago

I thought it was meant to be an alias for tele

There's only sm_tele, no sm_teleport defined in shavit-checkpoints;

https://github.com/shavitush/bhoptimer/blob/1f1a8979274f64254bfd25cde676ffdd1065749e/addons/sourcemod/scripting/shavit-checkpoints.sp#L183-L191

but your thing has the same functionality as ksf where it teleports you to the last zone you were in?

I wonder if there's a better name for this command that I cooked up. The aliasing thing seems like a decent idea if that's the case. I will have to talk to other surfers about this.

As far as I can tell the functionality to teleport you to the last zone you were in is not in bhoptimer. I use that command a lot in surf... so much so that I have it bound to q.

ddorab commented 5 months ago

well sm_tele teleports you to the last checkpoint, so I thought you would do RegConsoleCmd("sm_teleport", Command_Tele, "Teleports to a checkpoint. Usage: sm_tele [number]"); so that players wouldn't have to change their binds but stage zones are not common at all in bhop and players don't really teleport to the last stage anyway like you said. It's up to 🥑to decide whether teleporting to last stage is needed but I just got confused by what you wanted

Awesomerly commented 5 months ago

What you said made me think about something; I could make it so that the teleport to last stage command doesn't work in segmented/tas modes, then tell surfers to alias sm_teleport to be sm_tele and sm_stagerestart or w/e it should be called.

Side note: The reason I am thinking about surfers so much is because I know a few people that use bhoptimer to run surf servers because it's the best choice for an open source timer in general. The KSF timer is the highest quality CSS surf, but it is closed-source and so the competitive surf scene centralizes on KSF servers. think it's a good thing for surfers to have alternative servers for when they want to escape the umbrella of KSF. To assist people in doing that, it may be good to implement some surf-centric features like surf-style startzone rules and nojump zones in a way that doesn't get in the way of bhop server owners and players.

There's actually a fork of bhoptimer called shavitsurftimer that adds a bunch of surf-centric features but it seems to be half-broken sadly; maybe it would be a good idea to get in contact with them...