Author Topic: Complex Item Handling  (Read 2655 times)

Essentially a new way to handle items in your hands.

Controls:

Mouse1Fires weapon in right hand, as normal.
Mouse2Secondary function of weapon, if present, as normal.
Mouse3Switches current weapon in right hand over to left hand.  If there is a weapon already present, it switches to that one.
Scroll WheelSwitch through inventory, as normal.

Essentially this would be great for grapple knife, primary/secondary weapons, etc., and would be really fast, too.

Would be great if the right hand stays up, and the left hand stays down.

So the only thing you're suggesting is that mouse3 switches the weapon to the other hand.

Yes.  For instance:

>Gun in right hand, nothing in left.  You can use the Gun.
>>*Mouse3*
>>Gun goes to left hand, and nothing occupies right.
>Scroll through items menu.  Items from scroll menu go through the right hand.  Gun stays in right hand.
>Sword in right hand now.  You can now use the sword, but not the gun.
>>*Mouse3*
>>Gun goes to right hand, sword goes to left.
>Can now use gun again.

Of course have limitations that don't allow the same item in each hand, duplicating items, etc.

I could see this possibly being done with enough tweaking. The problem is right now is most dual-handed weapons are defined as one main weapon with a second weapon image shape being artificially loaded to the off-hand and the fire script has to be able to handle the states for both these weapons. Maybe a set of weapons meant for this feature would be able to support it better than just any 'ol item.

I'd like it to work for any old item, though.  Is there a way to detect if it is a dual wield weapon and just have it not spawn the second weapon, or for cases of when there is a weapon that requires two hands, to not raise the other hand?  Or perhaps not allow them to be swapped?

Wouldn't it be better to have the right click fire the item in the right hand, and left click fire the left hand's item? That way there's no need to repeatedly hit mouse3.

Because that would break secondary functions of weapons, for instance, ironsights or altfire.

Because that would break secondary functions of weapons, for instance, ironsights or altfire.
You could have mouse3 fire the right hand then, and leave mouse2 alone.

Not everyone has a mouse3 button


You could have mouse3 fire the right hand then, and leave mouse2 alone.
Then what does mouse1 do?

Not everyone has a mouse3 button
everyone should


Nah, that seems like too much now.  Besides, it seems that most players relate left click to right hand and right click to left hand.

everyone should
That is not an argument, it is an exclusatory statement. If someone made a game that took advantage of some super processor in your computer only you didnt have it and complained you couldnt play the game, youd be pissed if the developer told you "well go spend money on some periphrial to your computer".

That is not an argument, it is an exclusatory statement. If someone made a game that took advantage of some super processor in your computer only you didnt have it and complained you couldnt play the game, youd be pissed if the developer told you "well go spend money on some periphrial to your computer".
But then there's also those crappy Apple mouses with one button.

Exclusatory statement or not, a three-button mouse (pressing down scroll wheel), is not uncommon, and should be no grounds to prevent this from being made.