ChillyWilly
Refugee
I'm new to modding and I tried to change the base chance of dismemberment on entityclasses.xml
The issue is that even with "100%" Chance, it doesn't dismember all the time. I'm pretty sure there is a variable that corelates to damage and I have looked on XML.txt about Zombie Limbs Dismemberment.
If TFP or Anyone have any sources on Dismember Chance, I would like to hear it
The issue is that even with "100%" Chance, it doesn't dismember all the time. I'm pretty sure there is a variable that corelates to damage and I have looked on XML.txt about Zombie Limbs Dismemberment.
Even with the "Formula" it doesn't make sense, Such as what is LowerLegDismemberBaseChance and LowerLegDismemberThreshold. Also its a bit of a mess trying to figure out what the formula means anyway.private float GetDamageFraction(float _damage) { return _damage / zombie.GetMaxHealth() ;}
GetDamageOverlimit = Max(0, GetDamageFraction(bodyDamage.RightLowerLeg + _damage)- ec.LowerLegDismemberThreshold)
baseChance = ec.LowerLegDismemberBaseChance + (GetDamageOverlimit * ec.LowerLegDismemberBonusChance);
totalChance = canDismember ? (baseChance + _weaponBase + (_damage * _weaponBonus)) : 0f;
totalChance is the actual chance for limb dismemberment.
If TFP or Anyone have any sources on Dismember Chance, I would like to hear it