OKay I"m forgetting something

This is the place for all questions related to modding Starshatter.
Post Reply
User avatar
DamoclesX
Posts: 872
Joined: Thu Apr 08, 2004 10:50 pm
Location: Canada

OKay I"m forgetting something

Post by DamoclesX »

Its been a while since I Was this into the defs so "Ive got a problem

i'm creating the narn energy mine, so when it gets so close it a ship it will blow up and release about 12 sub objects

here is the code for the two files

WEAPON

drone: {
name: "NARN_ENERGYMINE",
group: ENERGYMINE,
target_type: 0x0000fff0,
value: 5,

damage: 5000,

capacity: 1,
ripple_count: 1,

refire_delay: 8,

speed: 10000,
mass: 10,

charge: 1,
min_charge: 0.9,
recharge_rate: 1,

life: 30, // 100*.4*10=400*1=400

eject: (0,0,5000),
thrust: 30000,

guided: 0,
syncro: false,
self_aiming: true,

aim_az_max: 0.43,
aim_az_min: -0.43,

aim_el_max: 0.43,
aim_el_min: -0.43,

slew_rate: 1,

min_range: 1, //0.1,
max_range: 100000, //40,
max_track: 200000, //60,

// turret: "ODC/TUR.mag",


graphic_type: 3, // blob
// scale: 2,




det_range: 30000,
det_count: 12,
det_child: "NARN_ENERGYMINEOBJECT",
det_spread: 0.5,




width: 100,
length: 100,

light: 255,
light_color: (0, 100, 255),
bitmap: "NARN_LTPULSE/FLAIR.pcx",

flash: "NARN_ENERGYMINE/FLASH.pcx",
flash_scale: 2,
flare: "NARN_ENERGYMINE/FLAIR.pcx",
flare_scale: 2,

trail: "NARN_ENERGYMINE/SMOKE.pcx",
trail_width: 10,


sound: "NARN_ENERGYMINE/SOUND.wav",
sound_min_dist: 3e3,
sound_max_dist: 30e3
}




}

and
WEAPON

drone: {
name: "NARN_ENERGYMINEOBJECT",
group: ENERGYMINEOBJECT,
target_type: 0x0000fff0,
value: 3,



integrity: 100,
damage: 2500,
speed: 3000,

ammo: 50,

capacity: 1,
recharge_rate: 0.9,
refire_delay: 12,
charge: 1,
min_charge: 0.9,


life: 10,
eject: (0,0,1000),

mass: 10,
carry_mass: 10,
carry_resist: 10,


thrust: 10000,
drag: 0.004,





roll_drag: 0.4,
pitch_drag: 0.4,
yaw_drag: 0.4,


roll_rate: 200,
pitch_rate: 200,
yaw_rate: 200,

guided: 1,
lethal_radius: 1000,
syncro: false,
self_aiming: true,



aim_az_max: 1.56,
aim_az_min: -1.56,

aim_el_max: 1.56,
aim_el_min: -1.56,



spread_az: 0,
spread_el: 0,

min_range: 1,
max_range: 50000,
max_track: 100000,



visible_stores: false,

graphic_type: 1, // solid
scale: 1,
light: 255,
light_color: (0, 100, 255),


flare: "NARN_ENERGYMINE/FLAIR.pcx",
flare_scale: 1,
sound: "NARN_ENERGYMINE/SOUND.wav",
sound_min_dist: 1e3,
sound_max_dist: 10e3

}

the problem is, it fires fine, but it will just track and hit the ship, it wont burst into 12 before then

also light seems to do nothing, i'm not seeing any light effects when its fired
Jason Blaz
Way to much to list here!
User avatar
DamoclesX
Posts: 872
Joined: Thu Apr 08, 2004 10:50 pm
Location: Canada

RE: OKay I"m forgetting something

Post by DamoclesX »

nm got it
Jason Blaz
Way to much to list here!
Post Reply

Return to “Starshatter Modding Forum”