Jump to content

Suggestion for Mapteleport

Pending 2.7.1

Yuki
Yuki

Posted

HI Nivex,

some of my Mods and Admins use the map teleport permission often.

With the new Update they can't place mapmarkers anymore. Would it be possible to enable the map teleporting via middle mouse click or something else ?

nivex

Posted

                player.State.pointsOfInterest?.Remove(note);
                note.Dispose();
                player.DirtyPlayerState();
                player.SendMarkersToClient();

if you don't want the marker deleted then you can remove this code from OnMapMarkerAdded

        private void OnMapMarkerAdded(BasePlayer player, ProtoBuf.MapNote note)
        {
            if (player.IsAlive() && player.HasPermission("raidablebases.mapteleport"))
            {
                float y = GetSpawnHeight(note.worldPosition);
                if (player.IsFlying) y = Mathf.Max(y, player.transform.position.y);
                player.Teleport(note.worldPosition.WithY(y));
            }
        }

it should look like this when done

i cannot change your keybinds. that is client side. best i could do is require you press an additional key with right-click

if i don't remove the map marker then youll cap out and not be able to place any until you remove them.

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.6k

Files Sold

Total number of files sold.

2.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.