2007.10.30, 07:59 PM
This function IS beign called, but it never gets to any of the cases :|.
And yes, the hit boxes are named right, and yes, obj.setting.hitBox is turned on.
Code:
function fyTrooperDamage(obj)
{
iface.console.write('DAMAGE');
if (obj.health.current<=0) return;
//mood='hurt';
switch (obj.hit.hitBoxName) {
case 'head':
iface.console.write('BOOM HEADSHOT');
obj.model.animation.startThenChange('hit head','idle ready');
obj.event.chain(20,'fyTrooperDamageDone');
break;
case 'body':
obj.model.animation.startThenChange('hit body','idle ready');
obj.event.chain(10,'fyTrooperDamageDone');
break;
case 'legs':
obj.model.animation.startThenChange('hit legs','idle ready');
obj.event.chain(15,'fyTrooperDamageDone');
break;
}
}
This has been fixed, I've noticed some bugs that have also cropped up with the animation smoothing which I need to look into.