Guest User

ExileClient_system_autoRun_canAutoRun

a guest
May 10th, 2019
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.10 KB | None | 0 0
  1. /**
  2.  * ExileClient_system_autoRun_canAutoRun
  3.  *
  4.  * Exile Mod
  5.  * www.exilemod.com
  6.  * © 2015 Exile Mod Team
  7.  *
  8.  * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  9.  * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
  10.  */
  11.  
  12. private["_canAutoRun"];
  13. _canAutoRun = true;
  14. try
  15. {
  16.     if !((vehicle player) isEqualTo player) then
  17.     {
  18.         throw false;
  19.     };
  20.     if ((getPosATL player) call ExileClient_util_world_isInTerritory) then
  21.     {
  22.         throw false;
  23.     };
  24.     if (((getPosASL player) select 2) < 0.1) then
  25.     {
  26.         throw false;
  27.     };
  28.     if ((player getHit "legs") >= 0.5) then
  29.     {
  30.         throw false;
  31.     };
  32.     if ((stance player) isEqualTo "UNDEFINED") then
  33.     {
  34.         throw false;
  35.     };
  36.     if ((animationState player) isEqualTo "unconsciousoutprone") then
  37.     {
  38.         throw false;
  39.     };
  40.     if ((animationState player) isEqualTo "ainvpknlmstpslaywrfldnon_medic") then
  41.     {
  42.         throw false;
  43.     };
  44.     if ((animationState player) isEqualTo "unconscious") then
  45.     {
  46.         throw false;
  47.     };
  48. }
  49. catch
  50. {
  51.     _canAutoRun = false;
  52. };
  53. _canAutoRun
Advertisement
Add Comment
Please, Sign In to add comment