Cuberite Forum
Paths - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html)
+--- Thread: Paths (/thread-1311.html)



Paths - NiLSPACE - 01-12-2014

This plugin allows users to fly through a given path smoothly by placing waypoints in the world. When the player then uses "/path start" the plugin starts guiding/pushing the player in the way of the next waypoint. This is usefull for for example recording. A player can set out a path then start recording, and the server will do the moving while the player can enjoy the sightseeing.

Commands

General
  • /path add - This adds a waypoint to your path
    Permission required: path.add

    /path clear - Stops your path and clears it.
    Permission required: path.clear

    /path numwp - Sends the amount of waypoints your path holds.
    Permission required: path.numwp

    /path remove - Removes the given path ID
    Permission required: path.remove

    /path replace - Replaces the given path ID with the position you are currently standing.
    Permission required: path.replace
    The following parameter combinations are recognized:
    /path replace PathID - The ID you want to replace

    /path start - Teleports you to the first waypoint and then moves you smoothly through them.
    Permission required: path.start
    The following parameter combinations are recognized:
    /path start Speed - The speed you move through the waypoints

    /path stop - Stops your path.
    Permission required: path.stop

    /path swap - Swaps all your waypoints. The first becomes the last etc
    Permission required: path.swap

    /path teleport - Teleports you to the given path
    Permission required: path.teleport
    The following parameter combinations are recognized:
    /path teleport PathID - The path ID you want to teleport to

Source: Link


RE: Paths - xoft - 01-12-2014

It would be nice to list the commands' parameters in the docs, so they are generated in the list, too.

Does the plugin send "player look" packets, too? That might be pretty interesting Smile


RE: Paths - NiLSPACE - 01-12-2014

(01-12-2014, 08:14 AM)xoft Wrote: It would be nice to list the commands' parameters in the docs, so they are generated in the list, too.
Does it automagicly generate? Because I did put it in the Info.lua

xoft Wrote:Does the plugin send "player look" packets, too? That might be pretty interesting Smile
No I tried SetRot but it didn't work ;(


RE: Paths - xoft - 01-12-2014

Yes, it does generate, just look at Gallery, or WorldEdit's //schematic command.

I think you'd need to explicitly send the packet, SetRot() probably does nothing for a cPlayer instance.


RE: Paths - NiLSPACE - 01-12-2014

Got the params documentation workingBig Grin


RE: Paths - Taugeshtu - 01-12-2014

Ah, when I saw a name I thought about path finding plugin..
Now that I am more awake than two seconds before, it might be actually nice to have API for path finding (if/when it's implemented in A.I.). Could be useful for creating companion cubes or whatever.