Hover toggle for helicopter (Rust)Solved
would make it possible for a solo to roofraid by taking down turrets/sams from a distance before landing on the roof
would be great for my server where there is buildingblocker (no twig/ladder raiding) like good old rust
Just make it so you can type /hover in chat and it will remain altitude/position (with a slight offset for realism) and you could also bind it to a key like "Bind H hover" or something and you can swap seats while its hovering and then once you are in the pilot seat u could type either /hover again to disable it or press any control and the hover will be cancelled
UsernameprblmsI started working on a plugin that can allow this. It worked fine on my own server but I havent tested it on a server with other players. I've submitted the file but it's currently awaiting approval.
I also made this plugin. Not sure if I should post it. =)
Will be interesting to compare how you did it to how I did it.
ZugzwangI also made this plugin. Not sure if I should post it. =)
Will be interesting to compare how you did it to how I did it.
Mine isn't to complicated, it pretty much just uses the rigidbody constraints to freeze the y position of the minicopter. If you want to see more just add me on discord and let me know, User-name#8763
GoldieFeel free to share the plugin guys, would make it alot easier for solo's to roofraid
It's under the Plugins section of the site. https://umod.org/plugins/helicopter-hover
UsernameprblmsMine isn't to complicated, it pretty much just uses the rigidbody constraints to freeze the y position of the minicopter. If you want to see more just add me on discord and let me know, User-name#8763
Was very interesting to read your code. Never realized you could lock a rigidbody like that. I did it by setting velocity to zero.
I also didn't know you could do something like monoBehaviour.StartCoroutine. I used 'private class HoverController : MonoBehaviour' and put my hover code in FixedUpdate().ZugzwangWas very interesting to read your code. Never realized you could lock a rigidbody like that. I did it by setting velocity to zero.
I also didn't know you could do something like monoBehaviour.StartCoroutine. I used 'private class HoverController : MonoBehaviour' and put my hover code in FixedUpdate().
Does it freeze the velocity every fixed update? If so im curious to see how performant that is.
Merged post
Also, by not freezing on the Y axis like you did, my MiniCopter (very slowly) moves down since its default hoverForceScale is slightly weaker than gravity. Haven't decided if it is a feature or not. I'm going to try RigidbodyConstraints.FreezePositionY to see what I prefer.