But are you using the s4 health system? Cuz I took a look at the files and found the skelly line. Could you guide me at least on where to start lookin...
No have my own system for damage.
so far i can see in the s4 you need to create a export from the javascript.
i only look up the code did not test this.
what i can see so far are this the part names of s4.
head
chest
lArm
rArm
lKnee
rKnee
So maybe this will help you out
exports('getHealthForBodyParts', () => {
let bodyPartsHealth = {
head: 100,
chest: 100,
lArm: 100,
rArm: 100,
lKnee: 100,
rKnee: 100
};
$.each(cacheData.data.injuresD, function (i, v) {
if(configg.BoneLabelText[v.bid].name == 'Head') {
bodyPartsHealth.head = bodyPartsHealth.head - (v.count * 10);
if (bodyPartsHealth.head < 0) {
bodyPartsHealth.head = 0;
}
} else if(configg.BoneLabelText[v.bid].name == 'Chest') {
bodyPartsHealth.chest = bodyPartsHealth.chest - (v.count * 10);
if (bodyPartsHealth.chest < 0) {
bodyPartsHealth.chest = 0;
}
} else if(configg.BoneLabelText[v.bid].name == 'LArm') {
bodyPartsHealth.lArm = bodyPartsHealth.lArm - (v.count * 10);
if (bodyPartsHealth.lArm < 0) {
bodyPartsHealth.lArm = 0;
}
} else if(configg.BoneLabelText[v.bid].name == 'RArm') {
bodyPartsHealth.rArm = bodyPartsHealth.rArm - (v.count * 10);
if (bodyPartsHealth.rArm < 0) {
bodyPartsHealth.rArm = 0;
}
} else if(configg.BoneLabelText[v.bid].name == 'LKnee') {
bodyPartsHealth.lKnee = bodyPartsHealth.lKnee - (v.count * 10);
if (bodyPartsHealth.lKnee < 0) {
bodyPartsHealth.lKnee = 0;
}
} else if(configg.BoneLabelText[v.bid].name == 'RKnee') {
bodyPartsHealth.rKnee = bodyPartsHealth.rKnee - (v.count * 10);
if (bodyPartsHealth.rKnee < 0) {
bodyPartsHealth.rKnee = 0;
}
}
});
return bodyPartsHealth;
});
[/v][/v][/v][/v][/v][/v]