[minimod][v0.2.2] Gearbox - weapon selection mod

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are ONLY for YOUR 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.

Re: [minimod][v0.2] Gearbox - weapon selection mod

Postby m8f » Wed Jan 06, 2021 9:08 am

Dark-Assassin wrote:With the wheel menu enabled, just regular scrolling through also wants to use the mouse for input which is extremely uncomfortable. IMO mouse input should only be used when opening the menu via bind rather than weapon selection override.
Set Wheel Mouse Input to Off and load this little addon that adds a new key bind.
gearbox-mouse-only-by-keybind.pk3

Dark-Assassin wrote:Also, a VM abort happens when you try to active the menu with no weapons.
Thanks for reporting. Investigating.

Edit: fixed in devbuild.
You do not have the required permissions to view the files attached to this post.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Re: [minimod][v0.2] Gearbox - weapon selection mod

Postby Bodhisattva » Wed Jan 06, 2021 11:13 am

Nice. I'll definitely start using this mod instead of PyWeaponWheel some time in the future. Right now, though, it's missing time-freeze and ammo/name of the chosen weapon, which are the things I like too much to give up, I guess.
User avatar
Bodhisattva
 
Joined: 02 Mar 2016
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: [minimod][v0.2] Gearbox - weapon selection mod

Postby m8f » Thu Jan 07, 2021 10:54 am

Bodhisattva wrote:ammo/name of the chosen weapon
I'm still thinking about where and how to display that.



Small update: v0.2.1

New:
  • General: time freeze (optional)
  • Wheel: better indication of selected weapon/slot
  • Wheel: an option to select font
  • Wheel: made colored tint on weapons optional

Fixes:
  • General: fix multiplayer synchronization
  • General: no more VM abort when the player has no weapons at all
  • General: selecting immediately when there is only one weapon in slot didn't check the presence in inventory
  • General: better reaction to slot keys in some circumstances
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Re: [minimod][v0.2] Gearbox - weapon selection mod

Postby TheRailgunner » Thu Jan 07, 2021 1:50 pm

Image

Mainly possible because Malice has extra attack functions, but the time-freeze is exploitable. Is there a way to freeze player movement and possibly the use of certain keys?
User avatar
TheRailgunner
Words go here.
 
Joined: 08 Jul 2013

Re: [minimod][v0.2.1] Gearbox - weapon selection mod

Postby wildweasel » Sat Jan 09, 2021 1:07 pm

Just stumbled upon a VM abort while running this with Hexen and no other mods:
Code: Select allExpand view
VM execution aborted: tried to read from address zero.
Called from gb_Activity.isWeapons at /home/weasel/wads/gearbox/:zscript/activity.zs

This can be reproduced reliably by loading Hexen and passing through any level transition. Just confirmed this with the latest Git master as of 2 minutes ago.
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 15 Jul 2003

Re: [minimod][v0.2.1] Gearbox - weapon selection mod

Postby StraightWhiteMan » Sat Jan 09, 2021 9:46 pm

This truly is an awesome mod. It's obviously similar to PyWeaponWheel, but visually more appealing and it a lot more compatible with other mods as well. The only thing that I'm not really digging about the mod is how it feels when you are selecting a weapon. I use the wheel setup, and the selection movement when selecting a weapon is super awkward. If you were able to move the mouse in the direction of the weapon you want to select in the wheel, it would feel 100% better.
StraightWhiteMan
 
Joined: 02 Jul 2020
Graphics Processor: nVidia (Modern GZDoom)

Re: [minimod][v0.2] Gearbox - weapon selection mod

Postby m8f » Mon Jan 11, 2021 8:11 am

TheRailgunner wrote:the time-freeze is exploitable. Is there a way to freeze player movement and possibly the use of certain keys?
I've tried a couple of ways to prevent player input while the Gearbox is opened, but it seems there is no easy and reliable way to do that. It's possible that time freeze will remain exploitable.

wildweasel wrote:Just stumbled upon a VM abort while running this with Hexen and no other mods
Thanks for the heads up! Fixed in master.

StraightWhiteMan wrote:If you were able to move the mouse in the direction of the weapon you want to select in the wheel, it would feel 100% better.
I'm sorry, but the cursor input model is one of the building blocks of mod's architecture. I cannot change the input model without rewriting the whole thing :( The main problem with your suggestion is to make the new input work with multiwheel. So, most likely it won't happen.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Re: [minimod][v0.2.1] Gearbox - weapon selection mod

Postby Talon1024 » Mon Jan 11, 2021 5:52 pm

You can use Level.setFrozen instead of a time freeze powerup. Also, I would suggest setting +NOGRAVITY on the player mobj, setting CF_FROZEN or CF_TOTALLYFROZEN on player.cheats while the time freeze is active, saving the player's previous velocity, and setting the player's velocity to (0,0,0) while the gearbox is open.
Talon1024
 
 
 
Joined: 27 Jun 2016
Github ID: Talon1024
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit
Graphics Processor: nVidia with Vulkan support

Re: [minimod][v0.2] Gearbox - weapon selection mod

Postby StraightWhiteMan » Mon Jan 11, 2021 8:28 pm

m8f wrote:I'm sorry, but the cursor input model is one of the building blocks of mod's architecture. I cannot change the input model without rewriting the whole thing :( The main problem with your suggestion is to make the new input work with multiwheel. So, most likely it won't happen.

Okay, thanks for clarifying that. Totally fine too, it was just an if possible suggestion. I'll just have to get more used to it is all.
StraightWhiteMan
 
Joined: 02 Jul 2020
Graphics Processor: nVidia (Modern GZDoom)

Re: [minimod][v0.2.1] Gearbox - weapon selection mod

Postby mamaluigisbagel » Tue Jan 12, 2021 8:46 am

I really like the multi wheel but one thing that slightly bugs me is how weapons only group together once you obtain a certain number of them. Can there be a toggle for this? (ie a mode where they'll group up even with less weapons)
User avatar
mamaluigisbagel
"If I ever have kids, they're going to come out circle-strafing." ~Civvie 11
 
Joined: 09 Jul 2014
Discord: Nonemployee#1013
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: [minimod][v0.2.1] Gearbox - weapon selection mod

Postby krutomisi » Fri Jan 15, 2021 1:08 pm

minor fyi but just in case you weren't aware the extras.wad distributed with the unity ports of doom/doom2 includes HUD-like weapon graphics

figured it might be of use thru daisychaining if you implement the options for using different icon sets
You do not have the required permissions to view the files attached to this post.
User avatar
krutomisi
 
Joined: 11 Jan 2021

Re: [minimod][v0.2.1] Gearbox - weapon selection mod

Postby TheRailgunner » Fri Jan 15, 2021 1:51 pm

I don't know if this is an issue that happens with the Wheel selector, but it seem like Gearbox is interfering with IDCLEV (number keys in the cheat code pull up the weapon selection menu instead). It occurs even if the "automatically switch if only weapon in slot" option is set.

As far as immobilizing the player during time freeze is concerned, I might look into how Corruption Cards does it - it seems to handle holding the player in place and preventing unwarranted inputs fairly well.
User avatar
TheRailgunner
Words go here.
 
Joined: 08 Jul 2013

Re: [minimod][v0.2.1] Gearbox - weapon selection mod

Postby m8f » Fri Jan 15, 2021 8:56 pm

mamaluigisbagel wrote:I really like the multi wheel but one thing that slightly bugs me is how weapons only group together once you obtain a certain number of them. Can there be a toggle for this? (ie a mode where they'll group up even with less weapons)
TheRailgunner wrote:As far as immobilizing the player during time freeze is concerned, I might look into how Corruption Cards does it - it seems to handle holding the player in place and preventing unwarranted inputs fairly well.

Version 0.2.2.

New:
- Wheel: multiwheel engagement weapon number slider;
- Wheel: new background graphics.

Fixed:
- VM abort in hubs;
- exploiting time freezing (thanks to Talon1024);
- engaging Gearbox while dead.


krutomisi wrote:minor fyi but just in case you weren't aware the extras.wad distributed with the unity ports of doom/doom2 includes HUD-like weapon graphics
Thanks for the tip! I'll think about how to add them. Probably when patches system is ready.
TheRailgunner wrote:I don't know if this is an issue that happens with the Wheel selector, but it seem like Gearbox is interfering with IDCLEV (number keys in the cheat code pull up the weapon selection menu instead). It occurs even if the "automatically switch if only weapon in slot" option is set.
Thanks for the heads up! Will look into this later.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Re: [minimod][v0.2.2] Gearbox - weapon selection mod

Postby Dark-Assassin » Sun Jan 17, 2021 7:12 am

Still getting VM aborts with no weapons with the wheel menu.
Code: Select allExpand view
VM execution aborted: division by zero.
Called from gb_WheelInnerIndexer.getSelectedIndex at gearbox-v0.2.2.pk3:zscript/wheel/inner_indexer.zs, line 29
Called from gb_WheelIndexer.Update at gearbox-v0.2.2.pk3:zscript/wheel/indexer.zs, line 110
Called from gb_EventHandler.RenderOverlay at gearbox-v0.2.2.pk3:zscript/event_handler.zs, line 206
User avatar
Dark-Assassin
 
Joined: 19 Mar 2009
Location: South Australia

Re: [minimod][v0.2.2] Gearbox - weapon selection mod

Postby m8f » Sun Jan 17, 2021 7:17 am

Thanks for the heads up! Fixed in master again.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

PreviousNext

Return to Gameplay Mods

Who is online

Users browsing this forum: KingFrog564 and 19 guests