[minimod][v0.7.2] Gearbox - weapon/inventory handling

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
Nimlouth
Posts: 22
Joined: Wed May 06, 2020 8:34 am
Graphics Processor: nVidia (Modern GZDoom)
Location: Argentina

Re: [minimod][v0.5.1] Gearbox - weapon/inventory handling

Post by Nimlouth »

Hey! So, first of all, I know I'm that annoying dude that keeps asking for a dumb feature, but I just think it's a fun idea and I found an equally dumb way to dirty-hack it in that someone might find interesting.

So, in a previous post I said someone found a debug feature in GZDoom that sort of works like slow-mo, devs already said it is not currently a "modding feature" but more of a sort of buggy thing they implemented a while ago for testing purpouses. This is the i_timescale parameter. SgtMarkIV released a video talking about it and a simple mod that binds the console command to a key and adds a soundFX to make it feel like actual slow mo. There are several issues with i_timescale but the major thing seems to be that it messes with THE WHOLE engine, so i.e opening the console while on a lower timescale would make it open slower too, etc.

Having toyed around with it, I can say it works just well enough that it doesn't create major problems and the mini mod that binds it to a key makes it super useful for recording cool footage and such.

And so, while playing EoA (a DOOM2016 mod) I just sat thinking, man, the Gearbox weapon wheel would be just perfect for this if would toggle some sort of slow-mo like DOOM 2016 does.

I then just went ahead and learned did it with AutoHotkey haha here's a video demo I recorded:


I basically:

a) Bound alt to hold-release wapon wheel toggle.
b) Bound numpad8 to slow-mo toggle.
c) Made an AH script that sends a numapd8 key press each time I press alt AND also when I release alt. This toggles slow-mo on when pressing alt to open the wheel and toggles it off when I release alt to select a weapon. (0ω0)b

Here's the AH script for anyone interested, you can also find the "slow-mo" mod in as an attachment in this post.
Spoiler:
I think using i_timescale in its current state CAN be problematic, but maybe it could be implemented as an experimental feature within Gearbox?

Cheers!
You do not have the required permissions to view the files attached to this post.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

Re: [minimod][v0.5.1] Gearbox - weapon/inventory handling

Post by wildweasel »

Mods cannot change i_timescale. The feature is unfinished and not intended to be used in such ways yet.
User avatar
Nimlouth
Posts: 22
Joined: Wed May 06, 2020 8:34 am
Graphics Processor: nVidia (Modern GZDoom)
Location: Argentina

Re: [minimod][v0.5.1] Gearbox - weapon/inventory handling

Post by Nimlouth »

wildweasel wrote:Mods cannot change i_timescale. The feature is unfinished and not intended to be used in such ways yet.
Oh :'c.

You mean "mods cannot change i_timescale" like in "you literally can't use it because there is no way to use it yet (like say, there's no way to use it zscript)" or like "you shouldn't use it because it's not finished yet and it would be bad developing practice?"
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

Re: [minimod][v0.5.1] Gearbox - weapon/inventory handling

Post by wildweasel »

Zscript has no way to access it, and there will be a lot of unintended side effects if you use the console command in the wrong kind of way (such as with input polling). I wouldn't recommend making a mod that relies on the current implementation.
saladofstones
Posts: 25
Joined: Tue Jul 31, 2018 3:33 pm

Re: [minimod][v0.5.1] Gearbox - weapon/inventory handling

Post by saladofstones »

Is it possible to have an option that emulates the old weapon menu? I've been using it until it stopped working for certain hideous destructor mods. I'm trying gearbox, but I really miss the old UI.
User avatar
m8f
 
 
Posts: 1446
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)

Re: [minimod][v0.5.1] Gearbox - weapon/inventory handling

Post by m8f »

I've been thinking about adding more representations, old-style text UI one of them. However, I don't want to bring back all the customizability of it, because it quickly becomes hard to maintain and error-prone. Can you please post a screenshot of your Weapon Menu UI?
User avatar
Ermac
Posts: 18
Joined: Fri Sep 01, 2017 9:27 am
Graphics Processor: nVidia with Vulkan support

Re: [minimod][v0.5.1] Gearbox - weapon/inventory handling

Post by Ermac »

Is it possible to add colored borders for the selected weapon/item icon (so it looks like a highlighted icon) in LZDoom build since the wheel has no selection indicator on the icons themselves?
User avatar
m8f
 
 
Posts: 1446
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)

Re: [minimod][v0.5.1] Gearbox - weapon/inventory handling

Post by m8f »

No, LZDoom doesn't support rotated graphics for that.
User avatar
Ermac
Posts: 18
Joined: Fri Sep 01, 2017 9:27 am
Graphics Processor: nVidia with Vulkan support

Re: [minimod][v0.5.1] Gearbox - weapon/inventory handling

Post by Ermac »

Yes I know that's not possible in LZDoom. I was asking for something like this
Spoiler:
Like copying the icon itself but slightly bigger, with a color fill and placed underneath the actual icon, so it'll look like a highlighted icon when selected
User avatar
m8f
 
 
Posts: 1446
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)

Re: [minimod][v0.5.1] Gearbox - weapon/inventory handling

Post by m8f »

Thanks for the suggestion. I have to think about it, created an issue for this.
User avatar
De-M-oN
Posts: 203
Joined: Mon May 26, 2008 3:24 pm
Preferred Pronouns: He/Him
Location: Germany

Re: [minimod][v0.5.1] Gearbox - weapon/inventory handling

Post by De-M-oN »

That will be super helpful for VR because there I dont have so much buttons with the VR Controllers.
User avatar
m8f
 
 
Posts: 1446
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)

Re: [minimod][v0.6.0] Gearbox - weapon/inventory handling

Post by m8f »

Gearbox updated to v0.6.0.

Changes since v0.5.1:

New:
  • Plain Text view.
Fixed:
  • Wheel mouse input affecting mouse input in Blocks view;
  • velocity being restored even if freezing is off;
  • hidden guns being selectable by number keys;
  • weapon scale defined in weapon class not being taken into account.
Thanks to Accensus and Someone64 for bug reports.

User avatar
Enjay
 
 
Posts: 26540
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: [minimod][v0.6.0] Gearbox - weapon/inventory handling

Post by Enjay »

Very nice fixes and additions, thank you.

Is there a way to make Gearbox in Wheel mode respect my inverted mouse Y axis (when mouse is enabled in wheel mode)? It's very difficult to use wheel mode if your mouse is set to inverted. I normally use Blocks, where it isn't an issue but I just tried Wheel and couldn't see an option to address this.
User avatar
Delfino Furioso
Posts: 118
Joined: Sat Mar 27, 2021 3:21 pm

Re: [minimod][v0.6.0] Gearbox - weapon/inventory handling

Post by Delfino Furioso »

I've tried the latest release and I'm loving the plain text UI... keep up the good work!
saladofstones
Posts: 25
Joined: Tue Jul 31, 2018 3:33 pm

Re: [minimod][v0.6.0] Gearbox - weapon/inventory handling

Post by saladofstones »

i really appreciate the plain text UI, but is it possible to have the functionality to increase priority for certain weapons? Along with choosing the order of how weapons are selected. I realize this is probably a pretty extensive framework but I honestly consider the previous weapon mod to be so functional I'm having a hard time coping.

Return to “Gameplay Mods”