Turret Tracking Probs

This is the place for all questions related to modding Starshatter.
Post Reply
Mattbmth
Posts: 7
Joined: Wed Jul 21, 2004 3:24 pm

Turret Tracking Probs

Post by Mattbmth »

Hi all,

Many thanks to those of you who helped me with the bolt weapon problems I've been having. Now I want to base the weapon on a turret. I have created the MAG file and added all the properties into teh def file that I think you need to but the thing won't track for some reason. Could anyone help?

WEAPON

primary:{
name: "MaesonCannon",
group: "M-Cannon",
target_type: 0x0000000f,
value: 4,

capacity: 800,
recharge_rate: 20,
refire_delay: 0.5,

damage: 10,
speed: 18e3,
life: 5,

charge: 100,
min_charge: 99,

min_range: 1,
max_range: 50e3,
max_track: 45e3,

syncro: false,
self_aiming: true,
aim_az_max: 0.698,
aim_el_max: 0.1,
turret_axis: x,

turret: "MaesonCannon.mag",
scale: 4,

graphic_type: 2,
bitmap: "maeson.pcx",
scale: 1,

light: 1e3,
light_color: (179,242,70),

sound: "maeson.wav", //sound file to play during firing
sound_min_dist: 5000, // MAX distance at which the sound is at full volume
sound_max_dist: 25000, // MAX distance the weapon can be heard.

}
Mehrunes
Posts: 257
Joined: Wed Mar 31, 2004 6:56 am
Contact:

RE: Turret Tracking Probs

Post by Mehrunes »

Your limits on inclination are very narrow, are you sure what you're trying to shoot is inside the weapons firing arc?
Mattbmth
Posts: 7
Joined: Wed Jul 21, 2004 3:24 pm

RE: Turret Tracking Probs

Post by Mattbmth »

I have changed the setting to the following but still no joy ...

syncro: false,
guided: 0,
self_aiming: true,
aim_az_max: 0.698,
aim_az_min: -0.698,
aim_el_max: 0.262,
aim_el_min: -0.262,
slew: 1,
p10ppy
Posts: 37
Joined: Sat Apr 10, 2004 11:11 pm

RE: Turret Tracking Probs

Post by p10ppy »

it looks ok to me
cept maybe

Code: Select all

target_type: 0x0000000f,

that will only track drones and fighters iirc

heres a working example (incase that helps)
[:)]

Code: Select all

WEAPON
 beam:{
 	name:"Hyde Dynamic LAS2",
 	scale:1,
 	target_type:0x00000fff,
 	value:4,	
    recharge_rate:200,
    refire_delay:0, 
    capacity:2001,
    charge:200,
 	damage:10,	
 	speed:100e3,	
 	min_charge:100,
 	life:0.1,	
 	min_range:100, 
 	max_range:100e3, 
 	max_track:40e3,
 	self_aiming:true,
 	aim_az_max:3.14,
 	aim_az_min:-3.14,
 	aim_el_max:1.6,
 	aim_el_min:0.04,
 	turret_base:"laser/lasturx2.mag",
   	turret:"laser/lasturx2b.mag",
    	scale:1,
 	graphic_type:3,	//1=solid, 2=sprite, 3=blob. 
    light:200,
    light_color:(10, 100, 200),		
    width:2,
    length:200e3,
    bitmap:"laser/laser1.pcx",
    sound:"laser/laser1.wav",
    sound_min_dist:1e3,
    sound_max_dist:100e3,
 }

and the ship def entry

Code: Select all

 weapon: {
 type: "Hyde Dynamic LAS2",
 design:"Beam Weapon",
 name:"Hyde Dynamic LAS2",
 abrv:"HD-LAS2",
 group:"TuLAS2x2",
 loc:( 0, 48, 28),
 muzzle:( 0, 6, 8),
 muzzle:( 0, 3, 9),
 size:32,
 hull_factor:0.7,
 explosion:8,
 }
Mattbmth
Posts: 7
Joined: Wed Jul 21, 2004 3:24 pm

RE: Turret Tracking Probs

Post by Mattbmth »

Hi,

Thanks so much for that, trust me to miss the obvious thing !! Thanks again for everyone's help.

Matt
Post Reply

Return to “Starshatter Modding Forum”