mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Shot parent possible fix #1
This commit is contained in:
parent
a4f2ad45d8
commit
59bf6e3b91
@ -6,6 +6,12 @@
|
|||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
call FUNC(initBlackList);
|
call FUNC(initBlackList);
|
||||||
call FUNC(initMaterialCache);
|
call FUNC(initMaterialCache);
|
||||||
|
[
|
||||||
|
QEGVAR(common,setShotParents),
|
||||||
|
{
|
||||||
|
(_this#0) setVariable [QGVAR(shotParent), [_this#1, _this#2]];
|
||||||
|
}
|
||||||
|
] call CBA_fnc_addEventHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef DEBUG_MODE_DRAW
|
#ifdef DEBUG_MODE_DRAW
|
||||||
|
@ -31,7 +31,7 @@ if (GVAR(enabled) && {_ammo call FUNC(shouldFrag)}) then {
|
|||||||
"Explode",
|
"Explode",
|
||||||
{
|
{
|
||||||
params ["_projectile", "_posASL", "_velocity"];
|
params ["_projectile", "_posASL", "_velocity"];
|
||||||
private _shotParents = getShotParents _projectile;
|
private _shotParents = _projectile getVariable [QGVAR(shotParent), getShotParents _projectile];
|
||||||
private _ammo = typeOf _projectile;
|
private _ammo = typeOf _projectile;
|
||||||
// wait for frag damage to kill units before spawning fragments
|
// wait for frag damage to kill units before spawning fragments
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user