FOnline Development > Questions and Answers

Dual wielding

<< < (2/3) > >>

lisac2k:
Balance is one issue, the implementation of the system the other. Mr. hexer is trying hard to get a smart answer for the other one ;)

Mayck:
Well i have no experience with 3D in fonline whatsoever (so no idea if one can actually have 2 weapons in one animation), but this is how i would go about the implementation of the dual wield.

Let's assume it works only if you have same 2 pistols in both hands:
First you need to add some button into GUI or hotkey to switch between normal and dual-wield.
Then you need dual-wield version of the pistol - that means item with dualwield attack animations, same stats just with AP costs for dualwield attacks/reload.

So now that player has one 10mm pistol in each hand, when player presses the dualwield shortcut, the pistol in primary slot gets changed via script into the dualwield version (perhaps some animation plays between those two states)... the same thing should also happen the otherway around i guess.
Now when player attacks you just have to check ammo in the pistol in secondary slot (also substract it) and add second hit calculations (hit/miss, damage etc. for the second pistol) via script magic.
That's about it.

Next issue would be adding shitloads of checks for every situation when the dualwield version of the pistol item might leave the primary hand slot (death, critical drops, move to inv or another slot etc.) so that it gets reverted to its normal version again. Same goes for second pistol leaving its hand slot, you would have to revert the pistol in primary hand in that case too.

Lexx:
What if I have a 10mm pistol and a desert eagle? :p

Mayck:

--- Quote from: Lexx on September 03, 2014, 04:54:27 pm ---What if I have a 10mm pistol and a desert eagle? :p

--- End quote ---
Well except for needing to determine the AP cost of attack dynamically it should actually work the same.

Graf:
From my point of view, I can't really find anything difficult in implementation of dual wielding. It would only require some extra work with attaching weapons to both hands. Plus one additional animation. The bright side, is that you'll most likely have to attach just one weapon, and then you'll be able to copy-paste the code for each next weapon, which will have this feature. This is, of course, only applicable if you have already prepared the target weapons for a regular (one hande`) wielding.

I can't say anything about the scripts, though.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version