opencj-dev / server-gsc

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

Cylinder/2D checkpoints, and bhop checkpoints #53

Open opencj-dev opened 1 year ago

Yocairo commented 1 year ago

Need more info on this before it can be picked up

iznogod commented 1 year ago

just give the checkpoint a .height in the db, check intorundefined during db load and do 2d radius + origin[2] > checkpoint.origin[2] && origin[2] < checkpoint.origin[2] + checkpoint.height for passing.

For bhop, just call a "is there a checkpoint here" in the onground(true) callback and pass the checkpoint next frame, unless loaded before that.

iznogod commented 1 year ago

Correction: call it on jumpstart so it works for cod2 too.