Advertisement
infiSTAR23

ExileClient_util_player_getHitPointMap.sqf

Dec 14th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.04 KB | None | 0 0
  1. /**
  2.  * ExileClient_util_player_getHitPointMap
  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["_hitPointNames","_hitPoints","_filteredHitPoints"];
  13. _filteredHitPoints = [];
  14. _hitPoints = getAllHitPointsDamage _this;
  15. if !(_hitPoints isEqualTo []) then
  16. {
  17.     // just to be sure on Russian Arma these hitpoints are not differently named
  18.     _hitPointNames = ["face_hub","neck","head","pelvis","spine1","spine2","spine3","body","arms","hands","legs"];
  19.    
  20.     {
  21.         _val = format['%1',_x];
  22.         _val = _val select [0,5];
  23.         _filteredHitPoints pushBack [_hitPointNames select _forEachIndex, parseNumber _val];
  24.     } forEach (_hitPoints select 2);
  25. };
  26. _filteredHitPoints
  27.  
  28. // returns
  29. // http://p.infistar.de/d15-12-2015-01-06-11.png
  30.  
  31. // Oh wait. this file is useless as all hitpoints always have the same damage value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement