mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
|
#include "script_component.hpp"
|
||
|
private["_penArray", "_penClass"];
|
||
|
PARAMS_1(_surfaceName);
|
||
|
|
||
|
_surfaceName = [_surfaceName, "A3\data_f\Penetration\", ""] call CBA_fnc_replace;
|
||
|
_surfaceName = [_surfaceName, ".bisurf", ""] call CBA_fnc_replace;
|
||
|
|
||
|
if(!isClass (configFile >> "ACE_Penetration" >> _surfaceName)) exitWith { nil };
|
||
|
|
||
|
_penArray = [
|
||
|
getNumber (configFile >> "ACE_Penetration" >> _surfaceName >> "Thickness"),
|
||
|
getNumber (configFile >> "ACE_Penetration" >> _surfaceName >> "Density"),
|
||
|
getNumber (configFile >> "ACE_Penetration" >> _surfaceName >> "rough"),
|
||
|
getNumber (configFile >> "ACE_Penetration" >> _surfaceName >> "dust"),
|
||
|
getNumber (configFile >> "ACE_Penetration" >> _surfaceName >> "bulletPenetrability"),
|
||
|
getNumber (configFile >> "ACE_Penetration" >> _surfaceName >> "bulletPenetrabilityWithThickness"),
|
||
|
getNumber (configFile >> "ACE_Penetration" >> _surfaceName >> "friction"),
|
||
|
getNumber (configFile >> "ACE_Penetration" >> _surfaceName >> "restitution"),
|
||
|
getNumber (configFile >> "ACE_Penetration" >> _surfaceName >> "deflection")
|
||
|
];
|
||
|
|
||
|
//_penArray = HASH_CREATE;
|
||
|
//HASH_SET(_penArray, "thickness",
|
||
|
|
||
|
_penArray
|