mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Apply the ufeh to ACE_Scopes
This commit is contained in:
parent
12d7a171e5
commit
cdfdfffff6
@ -9,11 +9,3 @@ class Extended_PostInit_EventHandlers {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_FiredBIS_EventHandlers {
|
||||
class CAManBase {
|
||||
class ADDON {
|
||||
firedBIS = QUOTE(_this call FUNC(firedEH););
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -136,3 +136,8 @@ if (!hasInterface) exitWith {};
|
||||
},
|
||||
{false},
|
||||
[201, [true, true, false]], true] call CBA_fnc_addKeybind;
|
||||
|
||||
|
||||
// Register fire event handler
|
||||
["firedPlayer", DFUNC(firedEH)] call EFUNC(common,addEventHandler);
|
||||
["firedPlayerNonLocal", DFUNC(firedEH)] call EFUNC(common,addEventHandler);
|
||||
|
@ -1,15 +1,9 @@
|
||||
/*
|
||||
* Author: KoffeinFlummi, esteldunedain
|
||||
* Adjusts the flight path of the bullet according to the zeroing
|
||||
* Adjusts the flight path of the bullet according to the zeroing. Called from the unified fired EH only for local and non-local players on foot.
|
||||
*
|
||||
* Argument:
|
||||
* 0: unit - Object the event handler is assigned to <OBJECT>
|
||||
* 1: weapon - Fired weapon <STRING>
|
||||
* 2: muzzle - Muzzle that was used <STRING>
|
||||
* 3: mode - Current mode of the fired weapon <STRING>
|
||||
* 4: ammo - Ammo used <STRING>
|
||||
* 5: magazine - magazine name which was used <STRING>
|
||||
* 6: projectile - Object of the projectile that was shot <OBJECT>
|
||||
* None. Parameters inherited from EFUNC(common,firedEH)
|
||||
*
|
||||
* Return value:
|
||||
* None
|
||||
@ -18,12 +12,11 @@
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
//IGNORE_PRIVATE_WARNING ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_vehicle", "_gunner", "_turret"];
|
||||
TRACE_10("firedEH:",_unit, _weapon, _muzzle, _mode, _ammo, _magazine, _projectile, _vehicle, _gunner, _turret);
|
||||
|
||||
private ["_adjustment", "_weaponIndex", "_zeroing", "_adjustment"];
|
||||
|
||||
params ["_unit", "", "", "", "", "", "_projectile"];
|
||||
|
||||
if (!([_unit] call EFUNC(common,isPlayer))) exitWith {};
|
||||
|
||||
_adjustment = _unit getVariable [QGVAR(Adjustment), []];
|
||||
if (_adjustment isEqualTo []) exitWith {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user