mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
23 lines
698 B
Plaintext
23 lines
698 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
GVAR(trackedBullets) = [];
|
|
|
|
["SettingsInitialized", {
|
|
//If not enabled, dont't add PFEH
|
|
if (!GVAR(enabled)) exitWith {};
|
|
|
|
// 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);
|
|
};
|
|
|
|
[] call FUNC(updateTrajectoryPFH);
|
|
|
|
}] call EFUNC(common,addEventHandler);
|