Page 1 of 1

Another missile question

Posted: Fri Jul 02, 2004 1:25 am
by Dragonlead
Milo, et al.

I am having a devil of a time getting this missile to lock-up and shoot at anything. It will fire straight ahead if no target is locked, but won't engage anything. Here's the .def file info.

WEAPON

missile: {
name: "torpedo",
group: "torpedo",
target_type: 0xfff0,
value: 5,
ammo: 12,
refire_delay: 100,
damage: 3000,
lethal_radius: 750,
speed: 250,
life: 1200,
charge: 1,
min_charge: 1,
carry_mass: 5.0,
carry_resist: 0.0,
mass: 5.0,
thrust: 2e3,
drag: 1,
roll_rate: 5,
pitch_rate: 5,
yaw_rate: 5,
roll_drag: 3,
pitch_drag: 3,
yaw_drag: 3,
guided: 1,
syncro: true,
min_range: 1e3,
max_range: 80e3,
max_track: 1e5,
graphic_type: 1,
model: "AFHawk.mag",
sound: "mlaser.wav",
sound_min_dist: 1e3,
sound_max_dist: 15e3
}

I've tried changing it to drone as well, but no luck. I am hoping to make this much like a US Navy torpedo (one shot, one kill) idea. I know it is slow, but that isn't my problem. Any assistance would be greatly appreciated.

V/R

RE: Another missile question

Posted: Fri Jul 02, 2004 1:29 am
by Mehrunes
Add

aim_el_max: 1.0,
aim_az_max: 1.0,

to the weapon and see if that works.

RE: Another missile question

Posted: Fri Jul 02, 2004 2:17 am
by Dragonlead
Tried it. No luck.

V/R

RE: Another missile question

Posted: Fri Jul 02, 2004 2:25 am
by Mehrunes
Ok, try adding "self_aiming: true," as well.

RE: Another missile question

Posted: Fri Jul 02, 2004 2:34 am
by TheDeadlyShoe
Your target type parameter appears to be too short. For example, an anti-ship missile uses:

target_type: 0x0000fff0

and a counter missile uses:

target_type: 0x0000000f

RE: Another missile question

Posted: Fri Jul 02, 2004 3:59 am
by Dragonlead
Mehrunes, Shoe,

Thanks!![&o]They work now. I have to think it was the self-aiming thing, because I had already tried the extra 0s in the target-type line with no success. You guys are great.

V/R