Solved Return Players to Original Position with the Same Inventory They Had Before Joining

Auscopter.gg

Customer
Would it be possible to add a leave button in the Lobby (preferably the same one as Gun Game / Aim Train - it looks nice) which allows players to leave the Lobby, return to where they were prior to teleporting to the Lobby, and keep the items they had prior to teleporting as well?

I understand this is likely a pretty big job, so in the meantime even if a Leave Button could be added that just kills/respawns the player. We have a fair amount of people asking how to leave the Lobby and it would make life a bit easier.
 
yea i second this, I'm about to use this with gungame next wipe but I'm confused how once your inside lobby and joining a game how will you get back to were you were before joined.
our prefab is off of the map isolated and the lobby is sealed in a section of the prefab so I'm really confused how to players will leave the lobby after a match and go back to were they were with the gear etc they had...
 
your a bloody star mate, also just come across something i was wondering if you could shed some light.
ok so im setting up our arena now, alls gone smooth as always, lobby added,arena has been added (arena is one side of the map while lobby is a community area prefab on otherside of the map) all spawns added in arena and gear core is setup to switch through guns... all working fine however i noticed because we cant leave the lobby area we have to kill and spawn back at one of our bags, i tried it and for some reason my inventory is locked as if im still in lobby area? any suggestions mate ?

ps, if i no clip out of the lobby area my inventory unlocks fine...
 
your a bloody star mate, also just come across something i was wondering if you could shed some light.
ok so im setting up our arena now, alls gone smooth as always, lobby added,arena has been added (arena is one side of the map while lobby is a community area prefab on otherside of the map) all spawns added in arena and gear core is setup to switch through guns... all working fine however i noticed because we cant leave the lobby area we have to kill and spawn back at one of our bags, i tried it and for some reason my inventory is locked as if im still in lobby area? any suggestions mate ?

ps, if i no clip out of the lobby area my inventory unlocks fine...
You should be able to leave as long as Enable Lobby Only Mode is set to false. That said, the next update includes some improvements to this system, so it might resolve your issue (though I didn't fully understand it ). Let's wait for the update and see how it goes
 
hey vis! awesome update, a few of us have noticed that leaving a lobby and teleporting back to position before /join is putting some of us under the map and stuck in walls in base.
doesn't happen every time but I've noticed it a few and so have a few others
can u give it a look when you get a chance mate?
 
hey vis! awesome update, a few of us have noticed that leaving a lobby and teleporting back to position before /join is putting some of us under the map and stuck in walls in base.
doesn't happen every time but I've noticed it a few and so have a few others
can u give it a look when you get a chance mate?
Could you break that down a bit more? I'm not totally following what steps I'd need to take to reproduce it
 
ill try my best to explain..
we use /join to join our lobby and then use the teleport sphere to join the arena, arena goes great and we finish up and leave via the button bottom right and we are back in our lobby ( this is a custom built prefab, its a community area with race track arcade and general social gathering area that can only be accesed via minicopter or /join as its walled off).
once back in lobby and we use /leave we teleport back with our kits that we had before but some times we are slightly away from were we joined from. on a few occasions i used /join inside my base and when i teleported back i was outside my base and stuck on a compund wall, on another occasion i was slightly under the map, my feet were below ground level so couldnt move and had to no clip up out of the "underworld" . it doesnt happen every time but a few other people have said the same things and ive had to go and teleport them to a safe place. this maybe happens 1 out of 10 times maybe less.
 
ill try my best to explain..
we use /join to join our lobby and then use the teleport sphere to join the arena, arena goes great and we finish up and leave via the button bottom right and we are back in our lobby ( this is a custom built prefab, its a community area with race track arcade and general social gathering area that can only be accesed via minicopter or /join as its walled off).
once back in lobby and we use /leave we teleport back with our kits that we had before but some times we are slightly away from were we joined from. on a few occasions i used /join inside my base and when i teleported back i was outside my base and stuck on a compund wall, on another occasion i was slightly under the map, my feet were below ground level so couldnt move and had to no clip up out of the "underworld" . it doesnt happen every time but a few other people have said the same things and ive had to go and teleport them to a safe place. this maybe happens 1 out of 10 times maybe less.
Ah okay, now I see what's happening. Sounds like it's failing to detect the ground properly when teleporting the player, I can definitely polish that up in the next update
 
Back
Top
Chat commands start with a /, while console commands can be entered directly in the F1 console or server console. Use find <keyword> in console to search for available commands related to the plugin. Parameters in < > are required, while [ ] are optional.
This plugin uses Oxide's permission system. Grant or revoke permissions using oxide.grant and oxide.revoke. You can assign them to individual players or groups using their Steam id or group name.
Settings are stored in the config file found under the config/ directory. You can edit this file manually, then reload the plugin to apply your changes.
Persistent data is saved in the data/ directory. This includes things like saved settings, usage stats, or player progress depending on the plugin. Deleting a data file will reset stored progress or customizations.
Language files are located in the lang/ folder. To translate messages, copy the en.json file into your target language folder (e.g. fr, de) and edit the values. Reload the plugin after changes to apply new messages.
This section lists public methods exposed by the plugin for use in other plugins. You can call these via the CallHook method. Ensure the plugin is loaded before calling its API to avoid null reference errors.
These are custom hooks that other plugins can listen for. Simply define a method with the same name and expected parameters in your plugin to handle the event. Hooks are triggered at key moments and are useful for extending or reacting to plugin behavior.
These hooks are injected into the game's code using Harmony. They let the plugin run code at key points in the game's internal logic. You can return values to block or modify behavior. Use with caution — these are powerful and can affect core mechanics.
Cart