Created
February 9, 2016 18:58
-
-
Save anonymous/e03b125ae26d67f12c7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//LOCATE PREY | |
diag_log format ["WildDogs: WildDogs Are Locating Prey!"]; | |
_alivePrey = []; | |
_PlayingDead = []; | |
//CHECK FOR PRONE PLAYERS AND ADD TO _PLAYINGDEAD ARRAY | |
{if ((animationState _x = "amovppnemstpsraswrfldnon") || (animationState _x = "amovppnemstpsraswpstdnon")) then {_PlayingDead set [(count _PlayingDead),_x];};} forEach _x; | |
_Prey = _WildDogs targetsQuery [_PlayingDead, sideUnknown ,"CAManBase", [], 0]; // OMIT PLAYERS THAT ARE PLAYINGDEAD DURING SEARCH FOR NEW PREY | |
{if (alive _Prey) then {_alivePrey set [(count _alivePrey),_Prey];};} forEach _Prey; // MAKES DOGS LEAVE DEADBODIES AFTER KILLING THEM AND SEARCH FOR NEW PREY | |
//CHASE PREY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment