Tweak to be sure the dead unit is in a group owned by the server before proceeding with processing kills
This commit is contained in:
parent
99621912f6
commit
66ae8eb113
@ -15,6 +15,15 @@
|
|||||||
|
|
||||||
params["_unit","_killer","_instigator"];
|
params["_unit","_killer","_instigator"];
|
||||||
|
|
||||||
|
// the blck_graveyardGroup is always owned by the server.
|
||||||
|
// which makes some cleanup easier
|
||||||
|
[_unit] joinSilent blck_graveyardGroup;
|
||||||
|
|
||||||
|
if (count(units (group _unit)) isEqualTo 0) then
|
||||||
|
{
|
||||||
|
deleteGroup _group;
|
||||||
|
};
|
||||||
|
|
||||||
if (local _unit) then
|
if (local _unit) then
|
||||||
{
|
{
|
||||||
if !((vehicle _unit) isKindOf "Man") then
|
if !((vehicle _unit) isKindOf "Man") then
|
||||||
@ -35,12 +44,7 @@ _unit disableAI "ALL";
|
|||||||
{
|
{
|
||||||
_unit removeAllEventHandlers _x;
|
_unit removeAllEventHandlers _x;
|
||||||
}forEach["FiredNear","Reloaded"];
|
}forEach["FiredNear","Reloaded"];
|
||||||
[_unit] joinSilent blck_graveyardGroup;
|
|
||||||
|
|
||||||
if (count(units (group _unit)) isEqualTo 0) then
|
|
||||||
{
|
|
||||||
deleteGroup _group;
|
|
||||||
};
|
|
||||||
|
|
||||||
if !((vehicle _unit) isKindOf "Man") then
|
if !((vehicle _unit) isKindOf "Man") then
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user