mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Tagging - Fix tagModel not being utilized for custom tags (#9366)
fix tagModel
This commit is contained in:
@ -15,7 +15,7 @@
|
|||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
|
||||||
params ["_class", "_displayName", "_requiredItem", "_textures", "_icon", "_materials"];
|
params ["_class", "_displayName", "_requiredItem", "_textures", "_icon", "_materials", "_tagModel"];
|
||||||
|
|
||||||
private _actions = GVAR(itemActions) getOrDefault [_requiredItem, []];
|
private _actions = GVAR(itemActions) getOrDefault [_requiredItem, []];
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ _actions pushBack ([
|
|||||||
_displayName,
|
_displayName,
|
||||||
_icon,
|
_icon,
|
||||||
{
|
{
|
||||||
(_this select 2) params ["_class", "_textures", "_materials"];
|
(_this select 2) params ["_class", "_textures", "_materials", "_tagModel"];
|
||||||
|
|
||||||
(
|
(
|
||||||
if (count _textures == count _materials) then {
|
if (count _textures == count _materials) then {
|
||||||
@ -35,12 +35,12 @@ _actions pushBack ([
|
|||||||
}
|
}
|
||||||
) params ["_randomTexture", "_randomMaterial"];
|
) params ["_randomTexture", "_randomMaterial"];
|
||||||
|
|
||||||
[_player, _randomTexture, _randomMaterial] call FUNC(tag);
|
[_player, _randomTexture, _randomMaterial, _tagModel] call FUNC(tag);
|
||||||
_player setVariable [QGVAR(lastUsedTag), _class];
|
_player setVariable [QGVAR(lastUsedTag), _class];
|
||||||
},
|
},
|
||||||
{true}, // required item is checked at an upper level
|
{true}, // required item is checked at an upper level
|
||||||
{},
|
{},
|
||||||
[_class, _textures, _materials]
|
[_class, _textures, _materials, _tagModel]
|
||||||
] call EFUNC(interact_menu,createAction));
|
] call EFUNC(interact_menu,createAction));
|
||||||
|
|
||||||
GVAR(itemActions) set [_requiredItem, _actions];
|
GVAR(itemActions) set [_requiredItem, _actions];
|
||||||
|
Reference in New Issue
Block a user