Code irritations

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

Beam weapons.
I know it's minor, but It appears I can't set a beam weapon (like a laser) to use a graphic (Eg, like the plasma weapons in my old TIC mod). This annoys me, as I don't want my lasers being shot by enemy ICXs. Any way around?

EDIT: or is there a beam type image I can set to be too small to see/notice?
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

How are enemy ICXs shooting at beam weapons in the first place? I couldn't get an ICX to target anything but missile type weapons. Is your laser weapon set to missile so that you can use a graphic? Is that it?
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

simple, the laser uses the type "missile" so I can have an invisible graphic and use a missile trail for the beam.

Also, missile trails don't appear for weapons with type particles (at least, not with an invisible graphic)
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

ah, I see. yeah, it wouldn't do to have lasers getting shot down. Have you tried adding an effect tag to a beam weapon?
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

yes, it results in game crash, something along the lines of "incorrect weapon type beam". Change the recoilless cannon to beam and see what I mean.

EDIT: quick question,I remember someone posted code for a timer based weapon firing system, but I can't find it. Could someone find it? (it was code where every set amount of time, a weapon was fired by the gsource ship. I think an example was a minelayer code.) I have an idea for it...
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

I just tried adding an effect tag to the omni laser, but it seemed to have been ignored- didn't crash tho. Checking through stdWeapons I noticed that beam weapons don't make use of any kind of extra effects. Guess the beam type is handled differently than missiles.
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

as I suspected.

Code question: can I make a device fire 2 different weapons on a timer when installed? I want to create flashing police lights using a weapon timer system. ^^
Post Reply