Skip to content

Commit

Permalink
Cookoff - Remove animals from EH (#10513)
Browse files Browse the repository at this point in the history
* Remove animals from cookoff EH

* Apply suggestions from code review

Co-authored-by: Jouni Järvinen <[email protected]>

---------

Co-authored-by: Grim <[email protected]>
Co-authored-by: Jouni Järvinen <[email protected]>
  • Loading branch information
3 people authored Nov 17, 2024
1 parent 9bca2a7 commit b0e38de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/cookoff/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if (isServer) then {
{
deleteVehicle _x;
} forEach ((_this select 0) getVariable [QGVAR(effects), []]);
}, true, ["CAManBase", "StaticWeapon"], true] call CBA_fnc_addClassEventHandler;
}, true, ["Man", "StaticWeapon"], true] call CBA_fnc_addClassEventHandler; // Use "Man" to exclude animals as well

["ReammoBox_F", "Deleted", {
{
Expand Down Expand Up @@ -58,7 +58,7 @@ if (isServer) then {
random [MIN_AMMO_DETONATION_START_DELAY, (MIN_AMMO_DETONATION_START_DELAY + MAX_AMMO_DETONATION_START_DELAY) / 2, MAX_AMMO_DETONATION_START_DELAY]
]] call CBA_fnc_serverEvent;
};
}, true, ["CAManBase", "StaticWeapon"], true] call CBA_fnc_addClassEventHandler;
}, true, ["Man", "StaticWeapon"], true] call CBA_fnc_addClassEventHandler; // Use "Man" to exclude animals as well

if (hasInterface) then {
// Plays a sound locally, so that different sounds can be used for various distances
Expand Down

0 comments on commit b0e38de

Please sign in to comment.