-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to carry two Main weapons #254
Comments
This is not possible and the way ACE did it in Arma2 doesn't work anymore. |
Just save it somewhere and put the model on the back via attachto |
The problem is that the inventory system in Arma 3 doesn't allow you to simply save and restore everything (mainly the magazine with the correct ammo count). |
Koffein, which exactly is the problem? Couldn't we read the magazine info with currentMagazineDetail, store it and then reset it with setAmmo? Maybe the same for attachments? |
You can set the ammo if there is a magazine, but you can not add a magazine to that slot in the first place. What Arma needs is a addPrimaryWeaponMagazine command,,, Edit: If you use the addWeapon commmand, it will take any compatible magazine from the units inventory, even if you don't want it to. Edit2: The attachments are no problem, the magazines are. |
I think there's a way around that. If you run addMagazine inmediately before addWeapon, then this last magazine seems to be used. EDIT: No, it doesn't work reliably |
There's an alternative, but it seems to be a PITA: When reequiping a weapon. |
Problem is that you can not re-add non-full magazines to the correct place, e.g. vest or uniform. |
What you described is the way ACE did it in A2 btw. But the inventory was simpler back then. So as I stated, it doesn't work like this any more. |
Also, if you have a full inventory and no mags to remove beforehand, the addMagazine command will fail and the magazine is lost. This wasn't the case in A2, since there was no extra slot for the currently loaded mag. |
Wow. I was gonna point out addItemToXXXX, but you are right! I'm giving up! |
I tried all this before and even more but it just doesn't work : / |
I see. Sorry for wasting your time :( |
No worries, it's still fun thinking about all this. Maybe someone will come up with something, |
There's a request for this (http://feedback.arma3.com/view.php?id=15286) on the feedback tracker, which it's assigned. |
Actually you can put a second weapon in the backpack with vanilla ArmA3 |
Closed. |
what if you have the weapon automatically remove the clip. That clip will then go into your inventory. When you switch back to that weapon, either you can have it where you reload that same magazine or you just have to simply reload your gun. It doesn't sound too hard. |
O_O Do it then. |
I wonder is it possible where you also state the primary as a launcher too. |
It's not. Everything about the gear system is hard coded. The item has to be a specific type and simulation class to fit in that slot (type 4, simulation RocketLauncher ,iirc ). Changing those values won't let them fit into the primary weapon slot (type 1, simulation Rifle). Those values are bitmasks, but using 5 will only make one weapon use up both slots and causes more issues, because that behavior which was used for machine guns in A2 is no longer supported in A3. (Weapon duplication or deletion glitches) |
Is there a way to write this into the mod? |
might want to shift this over to ACE |
Is it possible to have the feature to carry two main weapons ?
Exemple : A breacher can carry one M4A1 and one shotgun in the back for the CQB.
Idea : For that you can try to unlock the AT slot so it will restrict the "Rambo" player who want to use 2 main weapons 1 AT.
The text was updated successfully, but these errors were encountered: