mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
0e1f2828a9
* Rename Advanced Throwing component to be in-line with other advanced_ components * Rename wiki page as well * Add redirect from old wiki page
26 lines
656 B
Plaintext
26 lines
656 B
Plaintext
/*
|
|
* Author: PabstMirror
|
|
* Retrieve muzzle name from config.
|
|
*
|
|
* Arguments:
|
|
* 0: Magazine Classname <STRING>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* "magazine" call ace_advanced_throwing_fnc_getMuzzle
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_magazineClassname"];
|
|
|
|
_magazineClassname = toLower _magazineClassname;
|
|
private _throwMuzzles = getArray (configFile >> "CfgWeapons" >> "Throw" >> "muzzles");
|
|
|
|
_throwMuzzles = _throwMuzzles select {_magazineClassname in ((getArray (configFile >> "CfgWeapons" >> "Throw" >> _x >> "magazines")) apply {toLower _x})};
|
|
|
|
[_throwMuzzles select 0, ""] select (_throwMuzzles isEqualTo [])
|