Closed Emojigit closed 12 months ago
You can remove the air barrier code, but leave the new command
@LoneWolfHT Changes done. Ready for review.
Might be worth adding a clearbarrier
command to convert barrier nodes back. Doesn't have to be in this PR though
I'll rename border
to barrier
in your command names pre-merge unless you do that before me
Might be worth adding a
clearbarrier
command to convert barrier nodes back. Doesn't have to be in this PR thoughI'll rename
border
tobarrier
in your command names pre-merge unless you do that before me
All these done. The clear barrier is basically the same as the old barrier removal logic, but only in the selected region.
This PR is also worth closing for a clearer commit history and target. I will review and probably rewrite the codes introduced in the PR before re-opening another PR.
Two new commands are added:
/ctf_map fixborder
: Selecting two coordinates, and then convert the old barriers within that area into their new variants./ctf_map setborder
: Turn the selected area into the border. It works by looking up a reverse map ofctf_map.barrier_nodes
.