Skip to content

Commit

Permalink
Merge pull request #2158 from jaj22/prevent-undercover-ACE-explosives
Browse files Browse the repository at this point in the history
### What type of PR is this.
1. [ ] Bug
2. [X] Change
3. [ ] Enhancement

### What have you changed and why?
Added client event handler to remove undercover status when an ACE explosive is set up (note that this is on trigger setup, not placement).

### Please specify which Issue this PR Resolves.
Bob didn't want to publicize the issue.

### Please verify the following and ensure all checks are completed.
1. [X] Have you loaded the mission in LAN host?
2. [ ] Have you loaded the mission on a dedicated server?

### Is further testing or are further changes required?
1. [X] No
2. [ ] Yes (Please provide further detail below.)

Notes:
Remove undercover on setup of ACE explosives
  • Loading branch information
Bob-Murphy authored Oct 4, 2021
2 parents 29329cc + d704088 commit 54b7a8b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions A3-Antistasi/functions/init/fn_initClient.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,13 @@ player addEventHandler ["GetInMan", {
};
}];

if (A3A_hasACE) then {
["ace_explosives_place", {
params ["_explosive","_dir","_pitch","_unit"];
if (_unit == player) then { player setCaptive false };
}] call CBA_fnc_addEventHandler;
};

call A3A_fnc_initUndercover;

if (isMultiplayer) then {
Expand Down

0 comments on commit 54b7a8b

Please sign in to comment.