Page MenuHomeFeedback Tracker

Multiple units missing "Throw" and "Put" weapons
New, NormalPublic

Description

Multiple units classes in CfgVehicles have no "Throw" and "Put" in their weapons[] array, resulting in player being unable to throw grenades when playing as them even when having some.
Picking up grenades in-game from other inventory or adding them in-game with BIS_fnc_arsenal don't help.
Picking up explosives (i.e. AT mine) from other inventory results in having "Put X (Y left)" action being available in the mouse wheel menu, but selecting it only plays the animation without actually placing the explosive or removing it from the player's inventory.
Reproduces on every test on both current release version (["Arma 3","Arma3",210,149954,"Stable",false,"Windows","x64"]) and current dev build (["Arma 3","Arma3",211,150030,"Development",false,"Windows","x64"]) with no mods loaded.
As a wild guess, may be linked to https://feedback.bistudio.com/T165130 (as in: auto-adding "Throw" weapon disabled to prevent dupe spam, now some units get no "Throw" at all).
Affected public (scope=2) classes:
"B_G_Story_Guerilla_01_F",
"I_Story_Officer_01_F",
"C_IDAP_Man_AidWorker_07_F",
"C_IDAP_Man_AidWorker_08_F",
"C_IDAP_Man_AidWorker_09_F",
"C_Journalist_01_War_F",
"C_Man_Fisherman_01_F",
"B_W_Soldier_TL_F",
"B_Officer_Parade_F",
"B_Officer_Parade_Veteran_F",
"I_Officer_Parade_F",
"I_Officer_Parade_Veteran_F",
"I_E_Officer_Parade_F",
"I_E_Officer_Parade_Veteran_F",
"O_Officer_Parade_F",
"O_Officer_Parade_Veteran_F"

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Operating System Version
19044.1706
Category
General
Steps To Reproduce

Open 3DEN.
Place playable unit of affected class (i.e. "B_W_Soldier_TL_F").
Start mission => player can't throw grenades even if some are inside the inventory. Running player hasWeapon "Throw" in the debug console returns false.
Esc > Return to eden.
Right click on unit > Edit Loadout... > OK (without changing anything).
Start mission => player can throw/cycle grenades. Running player hasWeapon "Throw" in the debug console returns true.

Additional Information

Code to get the affected classes from the running game config.

sqf
_condition = {
    getNumber (_x >> "scope") > 0 &&
    {(configName _x) isKindOf "CAManBase"} &&
    {_weps = (getArray (_x >> "weapons")) apply {toLower _x}; !("throw" in _weps)}
};
_classes = (toString _condition) configClasses (configFile >> "CfgVehicles");
_classes apply {
	private _mags = getArray (_x >> "magazines");
	private _weps = getArray (_x >> "weapons");
	private _relevantWeps = _weps select {(toLower _x) in ["put", "throw"]};
	private _grenades = _mags select {_x isKindOf ["HandGrenade", configFile >> "CfgMagazines"]};
	[configName _x, getNumber (_x >> "scope"), configSourceMod _x, configSourceAddonList _x, _relevantWeps, _grenades]}

Result:

[["B_UAV_AI",1,"",["A3_Characters_F_Common"],[],[]],
["O_UAV_AI",1,"",["A3_Characters_F_Common"],[],[]],
["I_UAV_AI",1,"",["A3_Characters_F_Common"],[],[]],
["B_UAV_AI_F",1,"",["A3_Characters_F_Common"],[],[]],
["O_UAV_AI_F",1,"",["A3_Characters_F_Common"],[],[]],
["I_UAV_AI_F",1,"",["A3_Characters_F_Common"],[],[]],
["Underwear_F",1,"",["A3_Characters_F_Common"],[],[]],
["C_UAV_AI_F",1,"orange",["A3_Characters_F_Orange"],[],[]],
["C_IDAP_UAV_AI_F",1,"orange",["A3_Characters_F_Orange"],[],[]],
["C_IDAP_UAV_AI_antimine_F",1,"orange",["A3_Characters_F_Orange"],[],[]],
["B_G_Story_Guerilla_01_F",2,"orange",["A3_Characters_F_Orange"],[],[]],
["I_Story_Officer_01_F",2,"orange",["A3_Characters_F_Orange"],[],["SmokeShell"]],
["C_IDAP_Man_AidWorker_07_F",2,"orange",["A3_Characters_F_Orange"],[],[]],
["C_IDAP_Man_AidWorker_08_F",2,"orange",["A3_Characters_F_Orange"],[],[]],
["C_IDAP_Man_AidWorker_09_F",2,"orange",["A3_Characters_F_Orange"],[],[]],
["C_Journalist_01_War_F",2,"orange",["A3_Characters_F_Orange"],[],[]],
["C_Man_Fisherman_01_F",2,"orange",["A3_Characters_F_Orange"],[],[]],
["B_W_Soldier_TL_F",2,"enoch",["A3_Characters_F_Enoch"],[],["SmokeShell","SmokeShellGreen","SmokeShellBlue","SmokeShellOrange","Chemlight_green","Chemlight_green"]],
["B_Officer_Parade_F",2,"aow",["A3_Characters_F_AoW"],[],[]],
["B_Officer_Parade_Veteran_F",2,"aow",["A3_Characters_F_AoW"],[],[]],
["I_Officer_Parade_F",2,"aow",["A3_Characters_F_AoW"],[],[]],
["I_Officer_Parade_Veteran_F",2,"aow",["A3_Characters_F_AoW"],[],[]],
["I_E_Officer_Parade_F",2,"aow",["A3_Characters_F_AoW"],[],[]],
["I_E_Officer_Parade_Veteran_F",2,"aow",["A3_Characters_F_AoW"],[],[]],
["O_Officer_Parade_F",2,"aow",["A3_Characters_F_AoW"],[],[]],
["O_Officer_Parade_Veteran_F",2,"aow",["A3_Characters_F_AoW"],[],[]]]

Event Timeline

artemoz created this task.Nov 23 2022, 1:45 PM
honger added a subscriber: honger.Nov 23 2022, 1:49 PM
TRAGER added a subscriber: TRAGER.Jul 5 2023, 4:23 AM