Page 1 of 1

Beam Weapon issues.

Posted: Tue Mar 29, 2005 4:37 am
by Miguel
Having trouble with AI, using mod beam weapon.
Ship keeps flying around and won't hit ship with beam weapon. Just circles ship and fires.
here def for weapon. Appreciate any help.

WEAPON
beam: {
name: "Phaser Array",
group: "Phaser",
target_type: 0xffffffff,
value: 5,
capacity: 20000,
recharge_rate: 5000,
refire_delay: 1.5,
salvo_delay: 8,
charge: 5000,
min_charge: 5000,
damage: 10,
speed: 1,
light_color: (0,0,215),
damage_type: normal,
life: 3,
min_range: 0,
max_range: 2e4,
max_track: 2e4,
self_aiming: true,
guided: 1,
syncro: false,
aim_az_max: 0.015,
aim_el_max: 0.015,
graphic_type: 3,
bitmap: "blue phaser.pcx",
flash: "HBF.pcx",
flash_scale: 0.2,
light: 1000,
sound: "e029.wav",
sound_min_dist: 2e2,
sound_max_dist: 1e3,
width: 4,
length: 2e4,
}

RE: Beam Weapon issues.

Posted: Fri Apr 01, 2005 6:21 am
by Dragonlead
OK,

First bump your speed value up to a very high number, 30e4 or something.
Make your max_track value larger than your max_range value. Otherwise your shot will be wasted as the unseen muzzle "pivots" to face the bad guy.
Make your guided param a 2 (this makes it easier for the AI to hit the target.)

RE: Beam Weapon issues.

Posted: Fri Apr 01, 2005 6:22 am
by Dragonlead
Also, try increasing the aim value range. 0.015 is not a very big arc to work with.

V/R


RE: Beam Weapon issues.

Posted: Fri Apr 01, 2005 1:59 pm
by Pheonix Starflare
Technically if it's actually a light-speed weapon the speed should be 3e8

RE: Beam Weapon issues.

Posted: Sat Apr 02, 2005 1:10 pm
by Mr. D
That would actually make it an FTL weapon, since light speed is 299,792.452 m/s, but let's not dwell[:D]