Hi!
I'm looking for a code, or a comment on whether it's possible or not.
For my next ship, I would like to have a triple-shot laser that fires in a straight line.
Now I know that there are already guns that fire 3 shots at the same time.
BUT, they fire in an arc.
Can I configure the shots in such a way that the shots fire in a straight line, and each shot is fired from a different location of the body?
ie: I want one coming from the wing, one from the middle, and one more from the other wing.
Size of the image is 35x35 px, so I want a shot at the left wing (5px inwards from the left of the image), one from the cockpit (the middle line of the image), and one from the right wing (5px inwards from the right side of the image)
And they all fire in a straight line in the direction of where the ship is facing.
can I get some help with this?
thanks in advance,
Triple-shot laser
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Okay, I think I can handle this one:
For a 3 shot laser, you could just use:
Explanation:
1. you can place <Configuration aimTolerance="how much angle you want the weapon to deviate from a straight line"> within the <Weapons tag>
means one shot. In this example, 6 shots are fired at the same time each time the weapon is fired.
posAngle is the angle you want it to fire from. I think 0 is facing upwards (as in the nose of the Sapphire at the 1st facing.)
means how far you want the shot to appear from the angle [in pixels] , which means that the shot shows up 20 pixels from center, towards the nose of the craft.
means how much you want the shot to deviate (as in it can fire from angle x to y) from the initial firing. Since some of it is 0-180, and others are 360-181, that means all of the shots cover the full 360 degrees. This is different from posAngle and posRadius because posAngle and posRadius determine where the shot comes out, angle determines where the shot goes.
angles 0 and 360 is the same from what I've seen, and 90 is to the left of the playership.
If you want a smaller angle, use something like 355-10 to have a narrow cone in front of your ship.
Of course, there is the, but that is 5 shots, not 3. You can see this in Weapon Devices on the Wiki. Look at the configurations heading.
Hope it helps!
For a 3 shot laser, you could just use:
Code: Select all
<Configuration aimTolerance="0">
<Shot posAngle="0" posRadius="20" angle="0"/>
<Shot posAngle="50" posRadius="20" angle="0"/>
<Shot posAngle="310" posRadius="20" angle="0"/>
</Configuration>
1. you can place <Configuration aimTolerance="how much angle you want the weapon to deviate from a straight line"> within the <Weapons tag>
Code: Select all
<Weapon
type= "missile"
damage= "kinetic:0"
repeating= "150000"
fireRate= "30"
hitPoints= "25"
interaction= "5"
hitEffect= "&efShieldHit1;"
missileSpeed= "17"
accelerationFactor= "75"
lifetime= "10d5-7"
powerUse= "100"
deviceSlots= "0"
noFriendlyFire= "true"
>
<Configuration aimTolerance="5">
<Shot posAngle="180" posRadius="20" angle="0-180"/>
<Shot posAngle="180" posRadius="20" angle="360-181"/>
<Shot posAngle="180" posRadius="20" angle="0-180"/>
<Shot posAngle="180" posRadius="20" angle="360-181"/>
<Shot posAngle="180" posRadius="20" angle="0-180"/>
<Shot posAngle="180" posRadius="20" angle="360-181"/>
</Configuration>
<Effect>
<Image imageID="&rsParticles;" imageX="0" imageY="0" imageWidth="16" imageHeight="16" imageFrameCount="4" imageTicksPerFrame="1" randomStartFrame="true"/>
</Effect>
</Weapon>
Code: Select all
<shot
Code: Select all
posAngle="180"
Code: Select all
posRadius="20"
Code: Select all
angle="0-180"
angles 0 and 360 is the same from what I've seen, and 90 is to the left of the playership.
If you want a smaller angle, use something like 355-10 to have a narrow cone in front of your ship.
Of course, there is the
Code: Select all
type= "wall"
Hope it helps!
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Not exactly what I asked, but maybe my wording was wrong too.
With "straight line" I meant that the shots were parallel to each other.
So not a spread, I know how to make a spread
You know the "dual" laser beam, right?
it fires 2 shots in a straight line, parallel to each other.
Now I would like to have a similar laser, but then it fires 3 shots parallel to each other.
With "straight line" I meant that the shots were parallel to each other.
So not a spread, I know how to make a spread

You know the "dual" laser beam, right?
it fires 2 shots in a straight line, parallel to each other.
Now I would like to have a similar laser, but then it fires 3 shots parallel to each other.
- blizgerg
- Commonwealth Pilot
- Posts: 88
- Joined: Fri Apr 23, 2010 2:15 am
- Location: Planet stinky socks
I think what RPC is saying is that the configuration tag lets you specify where each shot comes from (radius and angle from the ship) and also the angle it fires from there. So, what you want is to have 3 shots two of them at offsets +- from the center and have them all fire in the at the same angle.
So, the configuration code RPC posted
So, the configuration code RPC posted
Should actually do what you want as it specifies that a shot should eminate from the polar coordinate relative to the ship facing of (0,20), (50,20) and (310, 20) and all shots should go at angle 0 from the ships facing. I.e. all shots go in the same directions.RPC wrote:Code: Select all
<Configuration aimTolerance="0"> <Shot posAngle="0" posRadius="20" angle="0"/> <Shot posAngle="50" posRadius="20" angle="0"/> <Shot posAngle="310" posRadius="20" angle="0"/> </Configuration>
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
RPC is right, this makes 3 parallel shots.<Configuration aimTolerance="0">
<Shot posAngle="0" posRadius="20" angle="0"/>
<Shot posAngle="50" posRadius="20" angle="0"/>
<Shot posAngle="310" posRadius="20" angle="0"/>
</Configuration>
I also like this:
The difference between the two is the starting position of the shots:<Configuration aimTolerance="0">
<Shot posAngle="0" posRadius="0" angle="0"/>
<Shot posAngle="90" posRadius="20" angle="0"/>
<Shot posAngle="270" posRadius="20" angle="0"/>
</Configuration>
Code: Select all
---
---
---
"trident like"
---
---
---
parallel
For a bunch of configurations, there is my "old but still ok" list on xelerus: http://xelerus.de/index.php?s=mod&id=61