FlyingPiano
Flying Piano for Rust is an Oxide plugin which allows an enabled user to spawn and ride their own flying piano. The piano consists of a piano, code lock, and lantern. The lantern is used to take off and land.
There are two modes of operation depending on the permission granted to the user. The default mode requires low-grade fuel in the lantern in order to fly. The unlimited mode does not require fuel.
For the default mode, the user will receive notification via chat message as well as an audible water pump sound when fuel is low (1 low grade fuel). Each unit of low grade fuel gives you 10 minutes of flying time, which is the same rate of usage as the standard lantern. When you run out of fuel, the piano will land itself immediately.
https://i.imgur.com/vgd64oR.jpg
Permissions
* flyingpiano.use -- Allows player to spawn and fly a piano using low grade fuel
* flyingpiano.unlimited -- Removes the fuel requirement
It is suggested that you create groups for each mode:
* oxide.group add fp
* oxide.group add fpunlimited
Then, add the associated permissions to each group:
* oxide.grant group fp flyingpiano.use
* oxide.grant group fpunlimited flyingpiano.unlimited
Finally, add users to each group as desired:
* oxide.usergroup add rfc1920 fp
Of course, you could grant, for example, unlimited use to all players:
* oxide.grant group default fp.unlimited
Chat Commands
* /fp -- Spawn a flying piano
* /fpd -- Despawn a flying piano (must be within 10 meters of the piano)
* /fpc -- List the current number of pianos (Only useful if limit set higher than 1 per user)
* /fphelp -- List the available commands (above)
Configuration
Configuration is done via the FlyingPiano.json file under the oxide/config directory. Following is the default:
{ "Deploy - Enable limited FlyingPianos per person : ": true, "Deploy - Limit of pianos players can build : ": 1, "Minimum Distance for FPD: ": 10.0, "Minimum Flight Altitude : ": 2.0, "Require Fuel to Operate : ": true, "Speed - Normal Flight Speed is : ": 12.0, "Speed - Sprint Flight Speed is : ": 25.0 }
Note that that owner/admin can customize global fuel requirements and flying speed, and limit the number of pianos for each player (highly recommended).
You *could* set "Require Fuel to Operate : " to false, but it is recommended that you leave this setting true and use the flyingpiano.unlimited permission instead if you want to remove the fuel requirement.
Flight School
- Type /fp to spawn a piano.
- Set a code on the lock. Unlock after setting the code.
- Add low-grade fuel to the lantern (if running in default mode).
- Sit in the piano.
- Aim at the lantern and press 'E' to take off!
- From here on use, WASD, Shift (sprint), spacebar (up), and Ctrl (down) to fly.
- When ready to land, point at the lantern and press E again.
- Once on the ground, use the spacebar to dismount.
- Lock the piano using the code lock to prevent others from using it.
- Use /fpd while standing next to the piano to destroy it.