Copy the weapon and projectile file of the weapon most similar to the one you are going to make and work from there, you find them in the same place you are going to put your own,"see below" and to start out from that weapon's stats, go into the vanilla weapon.csv and copy the weapons stats and place it in your own.
folder structure for this would be data/weapons*place weapon.wpn file here along with your weapon.csv*/proj*place projectile file in here*
here is the weapon/projectile files for my custom Vulcan cannon so you can see what they look like.
WEAPON
{
"id":"burst", # this id must match what's in the spreadsheet
"specClass":"projectile",
"type":"BALLISTIC",
"size":"SMALL",
"displayArcRadius":250,
"turretSprite":"graphics/weapons/burst_cannon_turret_base.png",
"turretGunSprite":"graphics/weapons/burst_cannon_turret_recoil.png",
"hardpointSprite":"graphics/weapons/vulcan_cannon_hardpoint_base.png",
"hardpointGunSprite":"graphics/weapons/vulcan_cannon_hardpoint_recoil.png",
"renderHints":[RENDER_BARREL_BELOW],
"visualRecoil":3.0, # the gun sprites are only used if this is non-0
"turretOffsets":[10, -2, 10, 2],
"turretAngleOffsets":[0, 0],
"hardpointOffsets":[15, -2, 15, 2],
"hardpointAngleOffsets":[0, 0],
"barrelMode":"ALTERNATING", # or LINKED. whether barrels fire at the same time or alternate.
"animationType":"MUZZLE_FLASH",
"muzzleFlashSpec":{"length":20.0, # only used if animationType = MUZZLE_FLASH
"spread":6.0,
"particleSizeMin":6.0,
"particleSizeRange":8.0,
"particleDuration":0.15,
"particleCount":7,
"particleColor":[255,240,165,200]},
"projectileSpecId":"vulcan_shot", # projectile that will be fired
"fireSoundOne":"gun_mechanicals_light_up_whirr",
"fireSoundTwo":"gun_rapid_2",
}
PROJ
{
"id":"burst_shot",
"specClass":"projectile",
"spawnType":"BALLISTIC_AS_BEAM",
"collisionClass":"RAY",
"collisionClassByFighter":"RAY_FIGHTER",
"hitGlowRadius":15,
#"spawnType":"BALLISTIC",
#"collisionClass":"PROJECTILE_FF",
#"collisionClassByFighter":"PROJECTILE_FIGHTER",
"length":45.0,
"width":3.5,
"fadeTime":0.3,
"fringeColor":[240,220,180,200],
"coreColor":[245,245,225,80],
"textureScrollSpeed":64.0,
"pixelsPerTexel":5.0,
"bulletSprite":"graphics/missiles/shell_small_yellow.png"
}
If you need more help il come back.