if (isNil "d_with_carrier") then {
__pSetVar ["d_p_f_b", 0];
XKickPlayerBaseFired = {
if !(serverCommandAvailable "#shutdown") then {
if (player in (list d_player_base_trig)) then {
if ((_this select 4) isKindOf "TimeBombCore") then {
_no = nearestObject [player, (_this select 4)];
if (!isNull _no) then {deleteVehicle _no};
if (d_kick_base_satchel == 0) then {
["d_p_f_b_k", [player, name player,1]] call XNetCallEvent;
} else {
["d_p_bs", [player, name player,1]] call XNetCallEvent;
};
} else {
if (!d_there_are_enemies_atbase) then {
_num = __pGetVar(d_p_f_b);
_num = _num + 1;
__pSetVar ["d_p_f_b", _num];
if !(player in (list d_player_base_trig2)) then {
if (d_player_kick_shootingbase != 1000) then {
if (_num >= d_player_kick_shootingbase) then {
["d_p_f_b_k", [player, name player,0]] call XNetCallEvent;
};
} else {
if (_num >= d_player_kick_shootingbase) then {
["d_p_bs", [player, name player,0]] call XNetCallEvent;
};
};
};
};
};
} else {
__pSetVar ["d_p_f_b", 0];
};
};
};