make all players obtain a key when one player picks it up in coop, or make keys stay after being picked up?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
MWTab
Posts: 11
Joined: Wed Nov 01, 2023 3:25 am
Operating System Version (Optional): Void Linux Rolling
Graphics Processor: nVidia with Vulkan support
Location: Salem, Or, USA

make all players obtain a key when one player picks it up in coop, or make keys stay after being picked up?

Post by MWTab »

Hiya,

The question is just what it says. Is there a way to make all players get a key when one of them picks it up, or otherwise make keys stay behind after being picked up? I tried sharing is caring, but it crashes on latest gzdoom...

-Michael.
User avatar
Player701
 
 
Posts: 1684
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support

Re: make all players obtain a key when one player picks it up in coop, or make keys stay after being picked up?

Post by Player701 »

MWTab wrote: Fri Nov 10, 2023 5:53 pmmake keys stay behind after being picked up?
Keys should always stay after pickup in coop. If they don't for you, perhaps you are running a mod that interferes with this behavior. In this case, you should contact the mod author and ask them to fix the issue.
MWTab wrote: Fri Nov 10, 2023 5:53 pm Is there a way to make all players get a key when one of them picks it up
Not in stock GZDoom, as far as I know. It is possible with scripting, but since you posted this thread in the General subforum and not in Scripting, I'm not sure if that's what you want, but I can provide a ZScript-based solution if you need one.
User avatar
Nash
 
 
Posts: 17465
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: make all players obtain a key when one player picks it up in coop, or make keys stay after being picked up?

Post by Nash »

This honestly should be a built-in feature. Wouldn't be hard at all to add

EDIT: PR sent
Last edited by Nash on Sat Nov 11, 2023 11:53 am, edited 1 time in total.
MWTab
Posts: 11
Joined: Wed Nov 01, 2023 3:25 am
Operating System Version (Optional): Void Linux Rolling
Graphics Processor: nVidia with Vulkan support
Location: Salem, Or, USA

Re: make all players obtain a key when one player picks it up in coop, or make keys stay after being picked up?

Post by MWTab »

I actually found a mod that was posted on this forum in 2021 called keyshare universal that does this very thing. I tried sharing is caring, but it was modified things too forcefully, so if I loaded it before the toby doom mod it had no affect, and if I loaded it after, the toby mod lost some functionality. But keyshare universal does the trick nicely. It appears to be designed for my very problem, where a mod makes kes not stay behind haha.

-Michael.
User avatar
Nash
 
 
Posts: 17465
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: make all players obtain a key when one player picks it up in coop, or make keys stay after being picked up?

Post by Nash »

In the next version of GZDoom (whenever that may be released), this feature will be built-in with the console command sv_coopsharekeys 1. https://github.com/ZDoom/gzdoom/pull/22 ... 0933524006
MWTab
Posts: 11
Joined: Wed Nov 01, 2023 3:25 am
Operating System Version (Optional): Void Linux Rolling
Graphics Processor: nVidia with Vulkan support
Location: Salem, Or, USA

Re: make all players obtain a key when one player picks it up in coop, or make keys stay after being picked up?

Post by MWTab »

Nash wrote: Sun Nov 12, 2023 4:42 am In the next version of GZDoom (whenever that may be released), this feature will be built-in with the console command sv_coopsharekeys 1. https://github.com/ZDoom/gzdoom/pull/22 ... 0933524006

Wow that's awesome! Much thanks! :D

-Michael.

Return to “General”