Beam Weapon issues.

This is the place for all questions related to modding Starshatter.
Post Reply
Miguel
Posts: 27
Joined: Fri Jul 30, 2004 10:19 pm

Beam Weapon issues.

Post 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,
}
User avatar
Dragonlead
Posts: 303
Joined: Sun May 16, 2004 6:25 am

RE: Beam Weapon issues.

Post 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.)
USAF Ret.
User avatar
Dragonlead
Posts: 303
Joined: Sun May 16, 2004 6:25 am

RE: Beam Weapon issues.

Post by Dragonlead »

Also, try increasing the aim value range. 0.015 is not a very big arc to work with.

V/R

USAF Ret.
User avatar
Pheonix Starflare
Posts: 254
Joined: Wed Mar 31, 2004 8:20 pm
Location: Boston, MA, USA

RE: Beam Weapon issues.

Post by Pheonix Starflare »

Technically if it's actually a light-speed weapon the speed should be 3e8
"An optimist sees a glass half full, a pessimist sees a glass half empty and an engineer sees a glass thats twice as big as it has to be."

"What do you get when you cross a chicken and and elephant? Chicken elephant sine(theta)"
Mr. D
Posts: 80
Joined: Sun Apr 04, 2004 2:23 pm
Location: Essen, Germany

RE: Beam Weapon issues.

Post 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]
Post Reply

Return to “Starshatter Modding Forum”