So I've got a basic weapon script. I'm using pretty much the same stuff as with the default sword weapon, with a few exceptions (more damage, slower fire rate). This is just so I can get used to scripting weapons, since I'm new to it. But I'm struggling, the addon isn't showing up in my addons list when I go to start a server, which I believe means there's a compiling error.
datablock ProjectileData(advancedSwordProjectile : swordProjectile)
{
directDamage = 50;
uiName = "Advanced Sword Slice";
};
datablock ItemData(advancedSwordItem : swordItem)
{
shapeFile = "AddOns/Weapon_Sword/sword.dts";
uiName = "Advanced Sword";
image = advancedSwordImage;
};
datablock ShapeBaseImageData(advancedSwordImage : swordImage)
{
shapeFile = "AddOns/Weapon_Sword/sword.dts";
item = advancedSwordItem;
projectile = advancedSwordProjectile;
stateTimeoutValue[0] = 0.8;
stateTimeoutValue[3] = 1;
};