Common - Fix added throwables not being throwable (#9186)

Replace
- addMagazineCargoGlobal with addItemTo(Uniform/Vest/Backpack to make added throwables throwable.
This commit is contained in:
Wakbub 2023-06-24 04:09:30 +02:00 committed by GitHub
parent beffc7660c
commit 117c3092f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,13 +112,13 @@ switch (_type select 0) do {
switch (_container) do {
case "vest": {
(vestContainer _unit) addMagazineCargoGlobal [_classname, 1/*_ammoCount*/]; //@todo Bug! This isn't really the ammo, but magazine count. No such command.
_unit addItemToVest _classname; //@todo Bug! A full magazine, ignoring ammo. No such command.
};
case "backpack": {
(backpackContainer _unit) addMagazineCargoGlobal [_classname, 1/*_ammoCount*/]; //@todo Bug! This isn't really the ammo, but magazine count. No such command.
_unit addItemToBackpack _classname; //@todo Bug! A full magazine, ignoring ammo. No such command.
};
case "uniform": {
(uniformContainer _unit) addMagazineCargoGlobal [_classname, 1/*_ammoCount*/]; //@todo Bug! This isn't really the ammo, but magazine count. No such command.
_unit addItemToUniform _classname; //@todo Bug! A full magazine, ignoring ammo. No such command.
};
default {
_unit addMagazine [_classname, _ammoCount];