Jump to content

Welcome Panel friendly?

Work in Progress 2.4.1

Vergbergler
Vergbergler

Posted

Configuration options to disable "spawn from jet" on server join.

If a player died while offline, or joining the server for the first time they automatically spawn from jet.
The player welcome screen showing during initial jet spawn causes to player to dismiss the UI and deal with falling to their death.

In short, this plugin is not compatible with WelcomePanel plugin:
https://codefling.com/plugins/welcome-panel

 

Singularity12

Posted (edited)

In Paraglider, spawn from jet is only set to activate when you respawn. We use the oxide hook OnPlayerRespawn which isn't supposed to trigger when somebody first joins and spawns the first time, only when the click respawn in the death screen. If someone was dead, and then respawns when they join back, I'm assuming that's where the problem is. Because on that respawn, welcome panel will show along with the jet drop triggering since we're relying on similar hooks. Luckily WelcomePanel only show when you first join using OnPlayerConnected hook. (A hook is basically listening for an event that fires and tells our code when to work. Different events and actions in game call on different hooks.)

So someone joining for the first time won't be jet dropped, they'll spawn on the beach with WelcomePanel open. If someone disconnects while dead, they will jet respawn when they come back, but WelcomePanel also opens again. So really it's not an issue unless someone already joined the server (and hence likely read the welcome info) AND disconnected while dead, so at least it's a fairly niche issue. (Maybe a bit less so considering how common alt+f4 is in Rust lol). So not really a bug since the code is working as intended, more a slight incompatibility. Regardless, I'll work on this and try to improve the functionality! 

Unfortunately, as modders we only have access to so many hooks, I can't simply "postpone" the jet drop until after the welcome panel is closed, because I have no oxide hook that states welcome panel has been shut, but I'll look into how David set it up and see if I can implement that compatibility. But an unfortunate issue with that, is this would have to be implemented seperately for any WelcomePanel style plugins like ServerInfo, and only if they first implent the tools for me to access. That makes me think oxide almost needs a hook for when someone has accepted the server rules or dismissed any welcome panel style plugin.

Edited by Singularity12
phrasing
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

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.