Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harass: Bugfix: double harassment of FOBs. #7

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions server/functions/harass/fn_harass_create_squads.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@
_x setVariable ["harass_level", _enemyRatioComponent];
} forEach _harassablePlayers;

//Find players that aren't harassed enough.
private _friendlyPlayersToHarass = _harassablePlayers select {_x getVariable "harass_level" < 1};

//Keep occupied FOBs harassed
private _playersToRemove = [];
{
Expand All @@ -92,6 +89,9 @@

private _harassablePlayers = _harassablePlayers - _playersToRemove;

//Find players that aren't harassed enough.
private _friendlyPlayersToHarass = _harassablePlayers select {_x getVariable "harass_level" < 1};

private _lastPlayersToHarassLength = -1;

//Start sending harass squads at players, updating the harassment values as we do.
Expand Down