Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * ExileClient_util_player_getHitPointMap
- *
- * Exile Mod
- * www.exilemod.com
- * © 2015 Exile Mod Team
- *
- * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
- * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
- */
- private["_hitPointNames","_hitPoints","_filteredHitPoints"];
- _filteredHitPoints = [];
- _hitPoints = getAllHitPointsDamage _this;
- if !(_hitPoints isEqualTo []) then
- {
- // just to be sure on Russian Arma these hitpoints are not differently named
- _hitPointNames = ["face_hub","neck","head","pelvis","spine1","spine2","spine3","body","arms","hands","legs"];
- {
- _val = format['%1',_x];
- _val = _val select [0,5];
- _filteredHitPoints pushBack [_hitPointNames select _forEachIndex, parseNumber _val];
- } forEach (_hitPoints select 2);
- };
- _filteredHitPoints
- // returns
- // http://p.infistar.de/d15-12-2015-01-06-11.png
- // 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