Relevant thread:
https://ludeon.com/forums/index.php?topic=51389.0
Basically if you remove forcedMissRadius from explosive weapons via xml patch it creates the following error on startup:
Homez found the offending bug in Verse.VerbProperties.ConfigErrors
The relevant code is:
The issue of course is that forcedMissRadius needs to be greater than 0 if the weapon is an explosive based weapon. Which if you remove FRM from an explosive weapon, this sets FRM to it's default value of 0, float has a default value of 0 in c#.
The solution is to change forcedMissRadius > 0f != CausesExplosion to forcedMissRadius >= 0f != CausesExplosion.
https://ludeon.com/forums/index.php?topic=51389.0
Basically if you remove forcedMissRadius from explosive weapons via xml patch it creates the following error on startup:
Code Select
(Config error in Gun_TripleRocket: verb 0: has incorrect forcedMiss settings; explosive projectiles and only explosive projectiles should have forced miss enabled)
Homez found the offending bug in Verse.VerbProperties.ConfigErrors
The relevant code is:
Code Select
(if (LaunchesProjectile && defaultProjectile != null && forcedMissRadius > 0f != CausesExplosion)
{
yield return "has incorrect forcedMiss settings; explosive projectiles and only explosive projectiles should have forced miss enabled";
})
The issue of course is that forcedMissRadius needs to be greater than 0 if the weapon is an explosive based weapon. Which if you remove FRM from an explosive weapon, this sets FRM to it's default value of 0, float has a default value of 0 in c#.
The solution is to change forcedMissRadius > 0f != CausesExplosion to forcedMissRadius >= 0f != CausesExplosion.