Author: twisted
Author Website:

Requirements: Community Base addons A3

Version: 2.9
Signed: No

Short description: Automatically gives your solider and all other soldiers random weapons from any addons you have installed.

Date: 2018-10-28 10:00


Comments: (4)
Rating:



 







[h1]All the weapons/h1]
by
twisted


Description:
Automatically gives your solider and all other soldiers random weapons from any addons you have installed. works wel lin SP. this is also the MP test candidate. in MP all players must have same mods of course.

All weapons sorted by side and by soldier type (aka snipers get sniper rifles, etc)

East soldiers (CSAT included) get weapons like AKs and RPK and SVD, West get m4 and m16 and m249 and more. Independents G3 and FAL. It all depends on which weapon addons you have downaloaded and activated for your arma 3. if you have multiple AK mods or similar you will get one from them at random. The addon will check every newly spawned unit and assign them a random rifle load out based on their side.

Should work with almost all existing and new weapon packs including RHS and HLC (Toadies)

this version CHANGES only AI weapons.

Not compatible with Personal Arsenal or VAA - Virtual Arsenal Anywhere. These great mods seem to leveragae a similar start up sequence that my mod also uses. so sorry.


Installation:
To install the All the weapons you should use modfolders to keep it seperate from the official game content to prevent issues.
With Arma 3 you can use different ways to set up your modfolders to use custom content you have downloaded.
Please visit the Arma 3 Mod install instructions page for more information about using custom mods and addons in Arma 3.


Included files:
tws_randWeaponsONLYAIWEAPONSCHANGE.pbo
tws_randWeaponsALLWEAPONSCHANGE.pbo


Known issues:
- known issues: Single Player only.


Future plans:
To add random weapon ammo from ths mods weapon pool to ammo boxes near the player.


Credits & Thanks:
SaMatra for his very useful script tha laid the basics for this!
KillZone Kid for his very useful kk_instring function and a super helpful website in general.
Icebreakr for this readme.txt file, adapted from his Lingor Island (http://www.icebreakr.info)
All the people who help out on BIS forums (http://forums.bistudio.com/forumdisplay.php?f=93), Armaholic (http://www.armaholic.com/) and OFPEC (http://www.ofpec.com/index.php). You help the game grow and thrive.
BIS/BIA for making the best military simulators ever! (http://www.bistudio.com/)

Author: twisted / 2legs


License / Disclaimer:
This addon is of course for entertainment purposes only. Any commercial use is strictly prohibited without prior permission.


All rights reserved.

Author grants you, as the enduser, a personal right to download, install and play with the addon. Author can not be made responsible for ANY damage that could occur from the use of the addon.
This addon is for entertainment purposes only. Any military or commercial use is strictly prohibited. You are not allowed to exploit content.


Changelog:
2.9
debugging

2.8
fixed a bug - accessories unedefined -which came up in certain situations.

2.7
2.6
2.5
added apex weapons
fixed a bug that happened with some RHS weapons returning type as ANY when trying to look up their magazine array
It is also signed for multiplayer but all players of course need it.
Aimfix is no longer included but is available in a new version: Ai accuracy fix

2.4.1
v2.4
Added respect for weapons original config. within reason as all scopes wont fit all weapons, etc - so if the original weapon has a suppressor on then the new replacement weapon will also try have one (it will be a random choice of which one though). Same for bipods, lasers, scopes.

2.2
Fix compatability issues. now CUP compatiable. Also dead bodies dont change weapons.

v2.1
added compatability to tadies new weapons packs inclduing sig and g36

v2.0
Machinegunners get machinguns ago.

v1.9a
missing items replaced

v1.9
Optimised to run faster. less chance of normal sodiers getting silencers. Pistols re-added.

v1.8
Added a few of Toadies weapons like the Awm and more ARs.

v1.7
fixed removing launcher ammo. now it's untouched.

v1.6 MP candidate. requires testing. all players MUST have the same mods and these must be the same version.
much faster weapon switching
arranges weapons according to soldier type and gives them the right kind of weapons. machine gunners get machine guns, soldier get assualt rifles, snipers get sniper rifles (and lrps scopes).
Caches array once then reuses it as long as you have arma3 running.
add global variables that let you get to and use the weapon easily in your addons.
tws_global_weapon_array_globalgives a list of all the weapons from all the addons in your computerin one array
tws_handGun_array_global gives you alist of all handguns from all the addons in your computerin 3 arrays. 0 for opfor, 1 for blufor, 2 for independent
tws_weapon_array_global gives you alist of all weapons from all the addons in your computerin 3 arrays. 0 for opfor, 1 for blufor, 2 for independent
You can use it like this.
tws_weapon_array = uiNamespace getVariable ["tws_weapon_array_global",[]];
tws_opforglobal_weapons = tws_weapon_array select 0; // gives you an array of all opfor weapons
tws_bluforglobal_weapons = tws_weapon_array select 1; // gives you an array of all blufor weapons
tws_indeglobal_weapons = tws_weapon_array select 2; // gives you an array of all independent weapons

v1.5c
- darn removalallweapons gets rids of medic packs and similar. fixed. weapons allocation based on class is still ongoing but i should have that sorted in a while.

v1.5b
- give you options by adding two folders.
one where the player weapon changes every mission and one where it stays the same. AI weapons always change. Pick which option you want and then drag the file called tws_randWeapons.pbo from that folder into @alltheweapons15b/addons and over write the old file there.

v1.5
Fixed compatibility with ASDG JR. very big deal. More scope. More forward compatibily. Thanks Robalo.
Bipod compatibility. You most likely need DEV branch or release candidate. its got working bipods and deployment so what are you waiting for?
added seperate ai accuracy fix in addon folder. delete it in your addons directory if you prefer insanely accurate AI.
Hats and NVG are not touch
Weapons are equipped by soldier type. Snipers get sniper rifles, Machinegunners get machinge guns, etc. this is experiemental so let me know if it stuffs up but it works well for me in my testing so far and allows me to also ensure snipers have a scope ALL the time. only trick is what scope because sometimes you get an arco. but that's the way it is right now when you have scopes being chosen at random with no way to access information on what maginafication each scope ingame is (at least i know of no way to do so).

v1.3
-random handguns enabled for player. should accomodate RH pistols and Massi. Any other pistols you'd like included please post their classname and side in the BIS forum post.
-magazines added to campaign mission pool so you sometime find them as well as scopes and rifles in mission ammo boxes. No idea why weapons and scopes are showing up, must be magic precognition code by BIS. but its nice.
- added alternative versions. three extra versions. If you want them then simply copy the *.pbo from the folder and overwrite the default pbo in the addons folder:
-- Alt 1 offers the player persistent weapons - this means you DO NOT get a weapon at random at the start of each mission - but all the AI do. So you can scavenge the dead to build your ultimate weapon setup whether its m4 or ak and then keep it from mission to mission (well as much as the particualr campiagn allows). a very nice new dynamic to existing missions. It also changes headgear according to side (much less sci-fi helmets) plus fixes the ai accuracy to be within more human like values as discovered in the dev branch forums. This is the one I use now.
-- Alt 2 - player gets new random weapons based on your installed addons each mission.Headgear doesn't change. no ai accuracy fix.
-- Alt 3 - yes i may be going a bit out of scope of just the weapons.so this one just just changes the player and all AI weapon to be a random one selected from your installed addons on the beginning of each mission. that's all. NVGsare not removed n this version unlike all others.
Default (already in addons directory) brings new random weapons each mission based on your installed weapon addons, no ai accuracy fix, headgear is changed at random.

v1.2
- magazines associated with your old weapon werent always being deleted when that weapon changed. Fixed.
- Removed pistols from ai. old problem with AI is sometimes they want to use pistols isntead of their rifles for whatever reason. This fixes that. And have kept pistols for players.

v1.1
- Now doesn't remove hat/helmet or handgun
- Small change to add silencer as well as laser/flashlight

v1.0
- first release



- Community Base addons A3


Forum topic:
- BI forums


Steam Workshop:
- Subscribe




Enable javascript to be able to download from Armaholic please!