Question: impact explosions


#1

Is there a way to change the explosions done when my custom weapons hit enemy ships? Specifically, I am working on a nuclear missile and would like the impact to be more than just a small explosion. Is this even possible? I would like to make it’s impact explosion suitable for a nuclear missile (big explosion and maybe even the shockwave). My nuclear missile does massive impact damage then goes on to irradiate the enemy ship.

[config]
unlockcost = 0
lockable = 0
armour_penetration = 125
category = "WEAPONS"
classname = "SIM_MissileModule"
cost = 678
crew_required = 30
damage = 300
decoy_release_range = 0
description = "Using fission technology, this nuke blasts and irradiates your enemies into oblivion!"
fire_interval = 10000
flareuvid = 2
fuel = 2600
guiname = "Nuclear Missile"
has_decoys = 0
has_flare = 1
hitpoints = 145
icon = turret
min_range = 700
max_range = 1500
missilelength = 15.0
missilespeed = 0.15
missilewidth = 4.0
name = "nuclear missile"
powerconsumed = 15
shield_penetration = 100
size = "CRUISER"
sound = data/sounds/missile_launch.ogg
soundpriority = 0.75
soundvolume = 1.0
tracking_speed = 0.7
trail_fade_time = 1000
turnspeed = 0.5
turret_sprite = "turret_miss_v2"
turretsize = 22.0
warhead = RADIATION
weight = 160
slot_type = TURRET
uisortpos = 1160
radiation_damage = 4
radiation_decay = 1.0
total_damage = 30
damage_duration = 5600


[dataitems]
0 = cost,DECIMAL
1 = weight,DECIMAL
2 = hitpoints,DECIMAL
3 = powerconsumed,DECIMAL
4 = max_range,DECIMAL
5 = damage,DECIMAL
6 = fire_interval,INTEGER
7 = tracking_speed,DECIMAL
8 = shield_penetration,DECIMAL
9 = armour_penetration,DECIMAL
10 = crew_required,INTEGER
11 = min_range,DECIMAL
12 = has_decoys,BOOL
13 = missilespeed,DECIMAL

#2

As far as i know - at the moment, no it is not possible to make a custom impact for a custom weapon.


#3

i alredy made that question but it was with energy weapons
mayby clifki know how to do that


#4

I’m afraid the code that picks the explosion effect has no idea what weapon actually caused the damage, so this is not currently possible.