That is exactly what I tried to do. However, no matter what I do, it seems to find an error in a very unspecific location.
Here is the console, in a nice shade of blue for the discerning customer:
Loading Add-On: Weapon_Mod_Rocket
Add-Ons/Weapon_Mod_Rocket/Weapon_Mod_Rocket.cs Line: 21 - Syntax error.
>>> Some error context, with ## on sides of error halt:
^error("ERROR: You Dun Has Nu Rocket Lanchur!");
}
else
{
^exec("./Weapon_Rocket_Launcher.cs");
}
datablock ExplosionData(ModRocketExplosion)
{
^shakeCamera = false;
^radiusDamage = 0;
};
datablock ProjectileData(ModRocketProjectile)
^uiName ##=## "Modified Rocket";
};
datablock ItemData(ModRocketItem)
{
^uiName = "Modified Rocket";
};
>>> Error report complete.
ADD-ON "Weapon_Mod_Rocket" CONTAINS SYNTAX ERRORS
It has done this for modified directDamage values, too.
I did load the rocket launcher datablocks correctly, too.