-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SUGGESTION] Return to closest configured hospital on respawn #53
Comments
You are suggesting we steal QBCore code?! Deal |
Nah just using it as an example, Mythic hospital used to have this like 4
years ago or something in ESC and it was awesome
…On Mon, 5 Jun 2023, 9:13 pm ChatDisabled, ***@***.***> wrote:
You are suggesting we steal QBCore code?! Deal
—
Reply to this email directly, view it on GitHub
<#53 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGHUHJWVEWQMLROBJGPJNDXJWPMXANCNFSM6AAAAAAY2MPBWE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Rip, didn't work. But I should be able to take a look at this within the next few days. |
To give some context on this issue, there are two different code paths for re-spawning at the hospital. One is client side, when the client checks-in at the front desk, they search for the nearest bed and go to it. The second code path is server side when respawning. The server checks the list of beds for the first one not taken and spawns the client there. Some refactoring to bring these two code paths in alignment would clean-up some tech debt and fix this issue. Things to keep in mind
|
The problem
When you die, you go to one hospital
Ideal solution
Game should calculate closest hospital and send you there to the configured beds.
Alternative solutions
No
Additional context
Similar to this: qbcore-framework/qb-ambulancejob#299
But also include going to nearest hospital when a player holds E to re-spawn.
The text was updated successfully, but these errors were encountered: