Page 1 of 1
weapons .def's
Posted: Sun Apr 11, 2004 2:24 am
by cirlin
Hi, I'm putting together a few ships based on the Honor Harrington novels and there's a few things I'd like to mess with in the weapons. Unfortunately I haven't seen any finished weapons .def's. I've read the official site's SDK which tells me a lot, but I haven't seen what it should look like in the end. Does anyone have a weapons .def I could look at? Specifically I'm looking to change some of the parameters of the standard X-ray laser (The ships rely mostly on broadside weapons and the standard firing arc of the lasers aren't really wide enough). Thanks for any help you could give me.
RE: weapons .def's
Posted: Sun Apr 11, 2004 4:37 pm
by Shogun
Don't know if that is what you looked for but here is one of my old test weapon.defs of a Particle Laser Beam with 2 part turret model:
WEAPON
beam: {
name: "PLGun", // Particle Laser Turret
group: "Beam",
target_type: 0x000fffff,
value: 3,
recharge_rate: 100,
refire_delay: 40.0,
salvo_delay: 15.0,
capacity: 6000,
charge: 1500,
min_charge: 1500,
damage: 150, // 1000*150*5.0=750000
speed: 50,
life: 6.0,
turret: "PLTurret.mag",
turret_base: "RailTurretBaseup.mag",
scale: 3.5,
aim_az_max: 2.0,
aim_az_min: -0.10,
aim_el_max: 1.00,
aim_el_min: -0.10,
syncro: true,
slew_rate: 0.8,
self_aiming: true,
spread_el: 0.0,
spread_az: 0.0,
min_range: 2e3,
max_range: 155e3,
max_track: 185e3,
graphic_type: 3, // blob
width: 30,
length: 155e3,
bitmap: "HPlaser.pcx",
flash: "mflash.pcx",
flash_scale: 3.0,
sound: "hplaser.wav",
sound_min_dist: 2500,
sound_max_dist: 15e6
}
RE: weapons .def's
Posted: Sun Apr 11, 2004 4:57 pm
by cirlin
Cool, thanks, that should help a lot. Do you know if there's a way to use the sounds and images from the regular weapons? I'm basically just trying to tweek the X-ray laser some and don't really want to start from scratch with the images/sounds if I don't have to.
RE: weapons .def's
Posted: Sun Apr 11, 2004 5:22 pm
by Shogun
Sorry, but I think you cannot use the original images/sounds cause we don't have access to them, they are all in the packed dat file.
But, if you only want to modify the firing arc you can modify it in the ship.def,
don't know if this also works with the weapons Milo had made but for my mod weapons it does.
just add the following lines to the weapon in the ship. def, that will overwrite the parameters of the weapon def:
aim_az_max: 2.0,
aim_az_min: -0.10,
aim_el_max: 1.00,
aim_el_min: -0.10,
then it will look like this or so:
weapon: {
type: "ParticleLaser",
design: "Beam Weapon",
name: "Particle Laser 1",
abrv: "Laser-1",
loc: ( 177, -22, 1250),
muzzle: ( 177, -22, 1305),
aim_az_max: 2.0,
aim_az_min: -0.10,
aim_el_max: 1.00,
aim_el_min: -0.10,
size: 4,
hull_factor: 0.75
}
RE: weapons .def's
Posted: Mon Apr 12, 2004 6:24 am
by cirlin
Thanks, I'll try that. I read a little bit about that in the old forums but it was something from like a year abo and I didn't really have enough to go on. I'll let you know if it works with the original weapons.