mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
23 lines
405 B
Plaintext
23 lines
405 B
Plaintext
/*
|
|
* Author: Commy2
|
|
*
|
|
* Check if the weapon has a bipod
|
|
*
|
|
* Arguments:
|
|
* 0: weapon
|
|
*
|
|
* Return Values:
|
|
* Boolean
|
|
*
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
EXPLODE_1_PVT(_this,_weapon);
|
|
|
|
private ["_config"];
|
|
_config = configFile >> "CfgWeapons" >> _weapon;
|
|
|
|
getNumber (_config >> "ACE_Bipod") == 1 ||
|
|
getNumber (_config >> "AGM_Bipod") == 1 ||
|
|
{getNumber (_config >> "tmr_autorest_deployable") == 1}
|