ah, i see, okay i guess there is the problem. the frames are numbered in three digits and the number is not at the end of the filename.
I took okims mod "ironclad" and tried to mimic his landing lights.
package data.scripts.plugins;
import com.fs.starfarer.api.AnimationAPI;
import com.fs.starfarer.api.combat.CombatEngineAPI;
import com.fs.starfarer.api.combat.EveryFrameWeaponEffectPlugin;
import com.fs.starfarer.api.combat.WeaponAPI;
import com.fs.starfarer.api.combat.FluxTrackerAPI;
public class isHulkCheck implements EveryFrameWeaponEffectPlugin
{
public void advance(float amount, CombatEngineAPI engine, WeaponAPI weapon)
{
if (engine.isPaused()) return;
AnimationAPI animation = weapon.getAnimation();
if (weapon.getShip().isHulk())
{
animation.pause();
}
else
{
animation.play();
}
}
}
{
"id":"thule_deco_heimdahl",
"specClass":"projectile",
"type":"DECORATIVE",
"size":"MEDIUM",
"everyFrameEffect":"data.scripts.plugins.isHulkCheck",
"turretSprite":"graphics/TL/weapons/decor/thule_heimdahl_Frame-01.png",
"hardpointSprite":"graphics/TL/weapons/decor/thule_heimdahl_Frame-01.png",
"numFrames":60,
"frameRate":15,
"alwaysAnimate":"true",
"turretOffsets":[0, 0],
"turretAngleOffsets":[0],
"hardpointOffsets":[0, 0],
"hardpointAngleOffsets":[0],
"barrelMode":"ALTERNATING", # or LINKED. whether barrels fire at the same time or alternate.
"animationType":"MUZZLE_FLASH", # NONE, GLOW, MUZZLE_FLASH, SMOKE
"muzzleFlashSpec":{"length":0.0, # only used if animationType = MUZZLE_FLASH
"spread":10,
"particleSizeMin":4.0,
"particleSizeRange":18.0,
"particleDuration":0.2,
"particleCount":25,
"particleColor":[255,150,30,200]},
"projectileSpecId":"thule_barbarossa_shot", # projectile that will be fired
"fireSoundTwo":"thule_barbarossa",
"fireSoundOne":"thule_barbarossa_overload",
}