Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Setups the hud for the player?
- */
- disableSerialization;
- cutRsc ["playerHUD", "PLAIN", 2, false];
- [] call life_fnc_hudUpdate;
- [] spawn
- {
- private ["_dam", "_playerBloodVolume", "_damage"];
- player setVariable["DamageLife",[0,0,0,0,0,0],true];
- while {true} do
- {
- _dam = player getVariable["ACE_medical_bloodVolume",100];
- _damage = player getVariable "DamageLife";
- waitUntil {sleep 0.1; ((player getVariable["ACE_medical_bloodVolume",100]) != _dam)};
- if (!(player getVariable["ACE_medical_bodyPartStatus", [0,0,0,0,0,0]] isEqualTo _damage){ //&& life_can_take_damage) then {
- _damage = (player getVariable["ACE_medical_bodyPartStatus", [0,0,0,0,0,0]]);
- player setVariable["DamageLife",_damage,true];
- if ((_damage select 0) > 2.2 ) then {
- _playerBloodVolume = (player getVariable["ACE_medical_bloodVolume",100]) - 50;
- } else {
- _playerBloodVolume = (player getVariable["ACE_medical_bloodVolume",100]) - 10;
- };
- player setVariable["ACE_medical_bloodVolume",_playerBloodVolume];
- };
- [] call life_fnc_hudUpdate;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement