mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Simplified parameter names
This commit is contained in:
parent
588f76b3f1
commit
72b262f634
@ -20,15 +20,15 @@
|
|||||||
|
|
||||||
BEGIN_COUNTER(firedEH);
|
BEGIN_COUNTER(firedEH);
|
||||||
|
|
||||||
params ["_firedEHUnit", "_firedEHWeapon", "_firedEHMuzzle", "_firedEHMode", "_firedEHAmmo", "_firedEHMagazine", "_firedEHProjectile"];
|
params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile"];
|
||||||
TRACE_7("firedEH:",_firedEHUnit, _firedEHWeapon, _firedEHMuzzle, _firedEHMode, _firedEHAmmo, _firedEHMagazine, _firedEHProjectile);
|
TRACE_7("firedEH:",_unit, _weapon, _muzzle, _mode, _ammo, _magazine, _projectile);
|
||||||
|
|
||||||
if (_firedEHUnit isKindOf "CAManBase") then {
|
if (_unit isKindOf "CAManBase") then {
|
||||||
// The unit it on foot
|
// The unit it on foot
|
||||||
if (_firedEHUnit == ACE_player) then {
|
if (_unit == ACE_player) then {
|
||||||
["firedPlayer", this] call FUNC(localEvent);
|
["firedPlayer", this] call FUNC(localEvent);
|
||||||
} else {
|
} else {
|
||||||
if ([_firedEHUnit] call EFUNC(common,isPlayer)) then {
|
if ([_unit] call EFUNC(common,isPlayer)) then {
|
||||||
["firedPlayerNonLocal", this] call FUNC(localEvent);
|
["firedPlayerNonLocal", this] call FUNC(localEvent);
|
||||||
} else {
|
} else {
|
||||||
["firedNonPlayer", this] call FUNC(localEvent);
|
["firedNonPlayer", this] call FUNC(localEvent);
|
||||||
@ -36,11 +36,11 @@ if (_firedEHUnit isKindOf "CAManBase") then {
|
|||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
// The unit is a vehicle
|
// The unit is a vehicle
|
||||||
private _firedEHGunner = [_firedEHUnit, _firedEHWeapon] call EFUNC(common,getGunner);
|
private _Gunner = [_unit, _weapon] call EFUNC(common,getGunner);
|
||||||
if (_firedEHGunner == ACE_player) then {
|
if (_Gunner == ACE_player) then {
|
||||||
["firedPlayerVehicle", this] call FUNC(localEvent);
|
["firedPlayerVehicle", this] call FUNC(localEvent);
|
||||||
} else {
|
} else {
|
||||||
if ([_firedEHGunner] call EFUNC(common,isPlayer)) then {
|
if ([_Gunner] call EFUNC(common,isPlayer)) then {
|
||||||
["firedPlayerVehicleNonLocal", this] call FUNC(localEvent);
|
["firedPlayerVehicleNonLocal", this] call FUNC(localEvent);
|
||||||
} else {
|
} else {
|
||||||
["firedNonPlayerVehicle", this] call FUNC(localEvent);
|
["firedNonPlayerVehicle", this] call FUNC(localEvent);
|
||||||
|
Loading…
Reference in New Issue
Block a user