mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
legability formatting
This commit is contained in:
parent
7b282ec96c
commit
22ca38fc2c
@ -20,11 +20,15 @@
|
||||
|
||||
params ["_ammo"];
|
||||
|
||||
GVAR(spallInfoCache) getOrDefaultCall [_ammo, {
|
||||
private _ammoConfig = configFile >> "CfgAmmo" >> _ammo;
|
||||
private _caliber = getNumber (_ammoConfig >> "caliber");
|
||||
private _explosive = getNumber (_ammoConfig >> "explosive");
|
||||
private _indirectHit = getNumber (_ammoConfig >> "indirectHitRange");
|
||||
GVAR(spallInfoCache) getOrDefaultCall [
|
||||
_ammo,
|
||||
{
|
||||
private _ammoConfig = configFile >> "CfgAmmo" >> _ammo;
|
||||
private _caliber = getNumber (_ammoConfig >> "caliber");
|
||||
private _explosive = getNumber (_ammoConfig >> "explosive");
|
||||
private _indirectHit = getNumber (_ammoConfig >> "indirectHitRange");
|
||||
|
||||
[_caliber, _explosive, _indirectHit]
|
||||
}, true]
|
||||
[_caliber, _explosive, _indirectHit]
|
||||
},
|
||||
true
|
||||
]
|
||||
|
@ -17,8 +17,12 @@
|
||||
|
||||
params ["_ammo"];
|
||||
|
||||
GVAR(shouldSpallCache) getOrDefaultCall [_ammo, {
|
||||
(_ammo call FUNC(getSpallInfo)) params ["_caliber", "_explosive", "_indirectHit"];
|
||||
GVAR(shouldSpallCache) getOrDefaultCall [
|
||||
_ammo,
|
||||
{
|
||||
(_ammo call FUNC(getSpallInfo)) params ["_caliber", "_explosive", "_indirectHit"];
|
||||
|
||||
_caliber >= 2.5 || (_explosive > 0 && _indirectHit >= 1)
|
||||
}, true]
|
||||
_caliber >= 2.5 || (_explosive > 0 && _indirectHit >= 1)
|
||||
},
|
||||
true
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user