31
Modding / Re: Misc modding questions that are too minor to warrant their own thread
« on: January 06, 2016, 03:20:20 AM »
Hi there, at the moment I'm having a problem with a custom torpedo. After firing a couple of things happen, either it functions as intended, hitting a target and exploding. Sometimes it passes straight through targets and flies of into the distance. If it doesn't hit anything (glitched or otherwise) it reaches the end of it's flight time and then sits there, the projectile becomes inert but it doesn't disappear either.
I'll post the relevant code in spoilers so if I've royally screwed something up you lads can spot it. I'm about at the end of my tether trying to fix this.
And yes, in advance I'll confirm that it is supposed to have absurd emp damage.
Projectile
Weapon
csv line
I'll post the relevant code in spoilers so if I've royally screwed something up you lads can spot it. I'm about at the end of my tether trying to fix this.
And yes, in advance I'll confirm that it is supposed to have absurd emp damage.
Projectile
Spoiler
{
"id":"estoc_rpg",
"specClass":"missile",
"missileType":"ROCKET",
#"sprite":"graphics/missiles/missile_torpedo.png",
#"size":[16,28],
#"center":[8,14],
"sprite":"graphics/missiles/scion_estocrpg.png",
"size":[14,23],
"center":[7,11],
"collisionRadius":20,
"collisionClass":"PROJECTILE_FF",
"collisionClassByFighter":"PROJECTILE_FIGHTER",
"explosionColor":[255,100,100,255], # purely visual, will get a white additively blended core on top of this color
"explosionRadius":350, # purely visual
"explosionSpec":{"duration":0.1f, # not visual
"radius":175,
"coreRadius":75, # full damage within core radius
"collisionClass":HITS_SHIPS_AND_ASTEROIDS,
"collisionClassByFighter":HITS_SHIPS_AND_ASTEROIDS,
"particleSizeMin":5.0,
"particleSizeRange":3.0,
"particleDuration":1,
"particleCount":200,
"particleColor":[170,70,230,255]},
"flameoutTime":3, # total time from flameout to full fadeout
"noEngineGlowTime":0.5, # time spent without the engine glow being rendered
"fadeTime":0.5, # fadeout duration
"engineSpec":{"turnAcc":0,
"turnRate":0,
#"acc":35,
"acc":500,
"dec":0},
"engineSlots":[{"id":"ES1",
"loc":[-11, 0],
#"loc":[-14, 0],
#"style":"TORPEDO",
"style":"CUSTOM",
"styleSpec":{
"mode":"QUAD_STRIP", # PARTICLES or QUAD_STRIP, determines which params are used
"engineColor":[170,70,230,255],
"contrailDuration":2,
"contrailWidthMult":1.5,
"contrailWidthAddedFractionAtEnd":1, # can be negative. makes trail spread out/narrow at the end
"contrailMinSeg":5, # min segment length, in pixels
"contrailMaxSpeedMult":0f,
"contrailAngularVelocityMult":0.5f,
"contrailSpawnDistMult":0f, # how far away from engine it starts
"contrailColor":[170,70,230,50],
"glowSizeMult":2.5,
"glowAlternateColor":[170,70,230,255],
"type":"GLOW" # GLOW or SMOKE; additive or regular blend mode
},
"width":10.0,
"length":80.0,
"angle":180.0}]
}
"id":"estoc_rpg",
"specClass":"missile",
"missileType":"ROCKET",
#"sprite":"graphics/missiles/missile_torpedo.png",
#"size":[16,28],
#"center":[8,14],
"sprite":"graphics/missiles/scion_estocrpg.png",
"size":[14,23],
"center":[7,11],
"collisionRadius":20,
"collisionClass":"PROJECTILE_FF",
"collisionClassByFighter":"PROJECTILE_FIGHTER",
"explosionColor":[255,100,100,255], # purely visual, will get a white additively blended core on top of this color
"explosionRadius":350, # purely visual
"explosionSpec":{"duration":0.1f, # not visual
"radius":175,
"coreRadius":75, # full damage within core radius
"collisionClass":HITS_SHIPS_AND_ASTEROIDS,
"collisionClassByFighter":HITS_SHIPS_AND_ASTEROIDS,
"particleSizeMin":5.0,
"particleSizeRange":3.0,
"particleDuration":1,
"particleCount":200,
"particleColor":[170,70,230,255]},
"flameoutTime":3, # total time from flameout to full fadeout
"noEngineGlowTime":0.5, # time spent without the engine glow being rendered
"fadeTime":0.5, # fadeout duration
"engineSpec":{"turnAcc":0,
"turnRate":0,
#"acc":35,
"acc":500,
"dec":0},
"engineSlots":[{"id":"ES1",
"loc":[-11, 0],
#"loc":[-14, 0],
#"style":"TORPEDO",
"style":"CUSTOM",
"styleSpec":{
"mode":"QUAD_STRIP", # PARTICLES or QUAD_STRIP, determines which params are used
"engineColor":[170,70,230,255],
"contrailDuration":2,
"contrailWidthMult":1.5,
"contrailWidthAddedFractionAtEnd":1, # can be negative. makes trail spread out/narrow at the end
"contrailMinSeg":5, # min segment length, in pixels
"contrailMaxSpeedMult":0f,
"contrailAngularVelocityMult":0.5f,
"contrailSpawnDistMult":0f, # how far away from engine it starts
"contrailColor":[170,70,230,50],
"glowSizeMult":2.5,
"glowAlternateColor":[170,70,230,255],
"type":"GLOW" # GLOW or SMOKE; additive or regular blend mode
},
"width":10.0,
"length":80.0,
"angle":180.0}]
}
[close]
Weapon
Spoiler
{
"id":"scion_estoc",
"specClass":"projectile",
"type":"BALLISTIC",
"size":"MEDIUM",
"turretSprite":"graphics/weapons/scion_estoc.png",
"hardpointSprite":"graphics/weapons/scion_estoc.png",
"hardpointOffsets":[10, 0],
"turretOffsets":[7, 0],
"hardpointAngleOffsets":[0],
"turretAngleOffsets":[0],
"barrelMode":"ALTERNATING",
"animationType":"SMOKE",
"renderHints":[],
"interruptibleBurst":false,
"displayArcRadius":1000,
#"smokeSpec":{"particleSizeMin":20.0,
# "particleSizeRange":20.0,
# "cloudParticleCount":3,
# "cloudDuration":1.0,
# "cloudRadius":10.0,
# "blowbackParticleCount":3,
# "blowbackDuration":2.0,
# "blowbackLength":30.0,
# "blowbackSpread":10.0,
# "particleColor":[100,100,100,200]},
"smokeSpec":{"particleSizeMin":16.0,
"particleSizeRange":18.0,
"cloudParticleCount":8,
"cloudDuration":1.5,
"cloudRadius":10.0,
"blowbackParticleCount":4,
"blowbackDuration":2.0,
"blowbackLength":22.0,
"blowbackSpread":15.0,
"particleColor":[125,15,25,105]},
"autocharge":true,
"requiresFullCharge":true,
"projectileSpecId":"estoc_rpg",
"fireSoundOne":"high_intensity_laser_loop",
"fireSoundTwo":"hypervel_driver_fire",
}
}
"id":"scion_estoc",
"specClass":"projectile",
"type":"BALLISTIC",
"size":"MEDIUM",
"turretSprite":"graphics/weapons/scion_estoc.png",
"hardpointSprite":"graphics/weapons/scion_estoc.png",
"hardpointOffsets":[10, 0],
"turretOffsets":[7, 0],
"hardpointAngleOffsets":[0],
"turretAngleOffsets":[0],
"barrelMode":"ALTERNATING",
"animationType":"SMOKE",
"renderHints":[],
"interruptibleBurst":false,
"displayArcRadius":1000,
#"smokeSpec":{"particleSizeMin":20.0,
# "particleSizeRange":20.0,
# "cloudParticleCount":3,
# "cloudDuration":1.0,
# "cloudRadius":10.0,
# "blowbackParticleCount":3,
# "blowbackDuration":2.0,
# "blowbackLength":30.0,
# "blowbackSpread":10.0,
# "particleColor":[100,100,100,200]},
"smokeSpec":{"particleSizeMin":16.0,
"particleSizeRange":18.0,
"cloudParticleCount":8,
"cloudDuration":1.5,
"cloudRadius":10.0,
"blowbackParticleCount":4,
"blowbackDuration":2.0,
"blowbackLength":22.0,
"blowbackSpread":15.0,
"particleColor":[125,15,25,105]},
"autocharge":true,
"requiresFullCharge":true,
"projectileSpecId":"estoc_rpg",
"fireSoundOne":"high_intensity_laser_loop",
"fireSoundTwo":"hypervel_driver_fire",
}
}
[close]
csv line
Spoiler
Estoc,scion_estoc,2,0,1500,,5000,100000,150,30,14,3,0.05,3,ENERGY,,,3,10,1,,,0,0,0,0,,3000,1.0,200,STRIKE,,
[close]