Bolt weapon def woes

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

Bolt weapon def woes

Post by Mattbmth »

I can never seem to get a bolt weapon def to work and I don't know what I am doing wrong. If anyone could point out what I'm doing wrong I would be most greateful. Also how do you specify the colour of the bolt?

[font="Courier New"]WEAPON

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

capacity: 600,
recharge_rate: 20,
refire_delay: 0.5,

damage: 5,
speed: 35e3,
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.1,
aim_el_max: 0.05,

graphic_type: 3,
length: 10,
width: 3,

light: 100e3,
}[/font]
Melkor
Posts: 74
Joined: Wed Aug 11, 2004 6:38 am

RE: Bolt weapon def woes

Post by Melkor »

First off, any time you have a multiple-word name, you need to put it in quotes, so it should be "Maeson Cannon". This may also apply to M-Cannon since it has a hyphen (might as well try it with quotes just to be sure). Also, I think the min_charge value needs to be larger than the charge value. Definitely use quotes though...

to set the light color:

light_color: (R, G, B)

R=red, G=green, B=blue
Mattbmth
Posts: 7
Joined: Wed Jul 21, 2004 3:24 pm

RE: Bolt weapon def woes

Post by Mattbmth »

hi, thanks a lot but the damn thing still isn't working I have amended the def file and don't knwo what to try next. Does the bolt take it's colour from the light_color property?

WEAPON

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

capacity: 600,
recharge_rate: 20,
refire_delay: 0.5,

damage: 5,
speed: 35e3,
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.1,
aim_el_max: 0.05,

graphic_type: 3,
length: 10,
width: 3,

light: 100e3,
light_color: (179,242,70),
}
Shogun
Posts: 6
Joined: Sun Apr 11, 2004 4:25 pm

RE: Bolt weapon def woes

Post by Shogun »

well no it doesn't, the color of your bolt is only controlled by the color of the bitmap,
and your weapon def is missing this bitmap parameter, without it you won't see any colorful weapon effect

to give you an example of how such a bitmap can look like open the attachment to this post, save the pic on your hd, you have to change the format to .pcx, and change your def file at the end so it looks like this:

[font="Courier New"]
graphic_type: 3,
bitmap: "Laser1.pcx",
length: 10,
width: 3,
[/font]

you can also add a sound effect to your weapon, that makes the thing much better [:D]

[font="Courier New"]
sound: "PulseLaser.wav",
sound_min_dist: 50,
sound_max_dist: 5e3
[/font]

hope it helps
Attachments
Laser1.jpg
Laser1.jpg (11.04 KiB) Viewed 146 times
Post Reply

Return to “Starshatter Modding Forum”