opencj-dev / server-gsc

OpenCJ serverside GSC files
GNU Affero General Public License v3.0
3 stars 1 forks source link

Demos: walkthrough and speedrun #184

Open Yocairo opened 1 year ago

Yocairo commented 1 year ago

!demo automatically selects the right walkthrough demo for the route the user is in.

!srdemo shows speedrun demo, same story as above.

iznogod commented 1 year ago

if they are not in a route and the map contains a single route, the user would've been in the route anyway already.

Yocairo commented 1 year ago

Not if they didn't catch a checkpoint yet, right?

iznogod commented 1 year ago

Start checkpoint (=spawnstruct()) gets a route assigned to it also, which will be the only one that's in the map if its a single-route map

iznogod commented 1 year ago

Also, dont force ppl to enter a route since first jump might be the one they need help with. Dropdown menu instead?

fnkcj commented 1 year ago

Say it's a 3-route map that has a common shared jump before entering any of the routes, like mp_palm. All walkthroughs for that map will do that same jump at the start, so we can just pick one of the available walkthroughs to show that jump when the user does !demo on it. Some logic is needed to pick the best variation of the jump, say always prefer norpg and take the shortest demo. There could be some value in viewing multiple different walkthroughs for the same shared jump, to see alternative techs for example.