2015-07-22 08:04:54 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-09-11 14:58:26 +00:00
|
|
|
if (!hasInterface) exitWith {};
|
2015-07-22 08:04:54 +00:00
|
|
|
|
|
|
|
GVAR(trackedBullets) = [];
|
|
|
|
|
|
|
|
["SettingsInitialized", {
|
|
|
|
//If not enabled, dont't add PFEH
|
|
|
|
if (!GVAR(enabled)) exitWith {};
|
|
|
|
|
2016-02-06 21:36:20 +00:00
|
|
|
// Register fire event handler
|
|
|
|
["firedPlayer", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
|
|
|
|
["firedPlayerNonLocal", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
|
|
|
|
|
|
|
|
if (GVAR(vehicleEnabled)) then {
|
|
|
|
["firedPlayerVehicle", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
|
|
|
|
["firedPlayerVehicleNonLocal", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
|
|
|
|
};
|
|
|
|
|
2015-07-22 08:04:54 +00:00
|
|
|
[] call FUNC(updateTrajectoryPFH);
|
|
|
|
|
|
|
|
}] call EFUNC(common,addEventHandler);
|