Is there a way to restrict the weapon fire of a ship to just one target? When i maximize the targets per side to 1 it works while firing at just one ship, but as soon as there are more than one target, it shoots at one ship per side simultaniously. I want just one target at any given time. (Maybe there is a way to make a 360 ° firing arc for a weapon?)
- Thanks in advance
If you specifically want this, you'd have to make it an ability that uses a weapon effect and does damage...it is possible and works quite well under human control...under AI control it works unless you are trying to do something really weird with your mod....
Thanks for the quick reply. But i would prefer the "one target at a time" solution if possible. I'm playing the Star Trek mod Sacrifice of Angels and i like it when ships move around while firing (looks more trekkish and not that static like in vanilla). I have set 1 max target for every side. It works as long as there is just one target to shoot at, but its shooting at 1 ship per side when there are multiple targets. So there is no way to make it work passive instead of an ability?
If you want the weapon to fire 360 agrees and only attack one target, you need to use an ability. There is no other solution. So its either use an ability or have it only fire in one direction for each weapon.
Thanks for the reply. Is it possible to fire such ability from various weapon hardpoints depending on the side it is fired?
I don't understand what the problem is. SOA has all of the ships set to fighter-type movement, so they should be flying around the way you prefer AND firing at multiple targets.
Change your Weapons in .mesh to Ability-0 Ability-1 Ability-2 Ability-3 etc
then have your ability's select them
weaponEffectAttachInfo attachType "Ability" abilityIndex 3
It works really well with Delay style ability like Missile barrage and Phase missile swarm
check out BuffMissileBarrageFiring.entity or outright clone it for some direction.
if your struggling with projectile weapons, you can make them all "missiles" but give them ballistic travel, from a visual standpoint they will still look like Projectiles.
its really hard to setup with beam weapons.
ironic that an issue I found in Diplomacy 1.34 with Point defense works just how you want it, they can only shoot 1 target at a time.
simply change entityType to "PlanetModuleWeaponDefense" and no matter how many turrets and targets it has it will only shoot 1 at a time.
but a PlanetModuleWeaponDefense can't have any engines http://code.google.com/p/soaseplugin/wiki/RebellionPlanetModuleWeaponDefense
and what Mystic said...
The problem is that the ships multiply their damage/dps if they are surrounded by enemy targets. Instead i want them to focus on just one target simultaneously, no matter at which side it is located.
You don't understand how damage per bank functions then. In the ship entity file there is a number set for the damage for each bank for each type of weapon. That is only split if the ship is targeting more than one enemy with different weapon emplacements on the same bank. So, just because a ship is surrounded doesn't mean that limiting it to only firing at one of those enemies is going to focus all of its firepower on that lone ship. You're just losing out on the rest of your ship's arsenal. Changing the TargetsPerBank to 1 for all directions is exactly what you're looking for.
^^ exactly.
like. one starbase. will do 1/16th its possible damage output if attacking a lone capital ship, than if it was surrounded 4 to a side.
hence when you attack a starbase, you want to make sure you only attack from one side, so that it only can do 1/4th its possible damage output. attack at an angle, you might get 2 banks firing, and youll take 1/2 its possible damage output.
I'm not sure if i'm understanding it right. So if you tell a weapon to fire at 1 target at each side, the damage is split to 1/4 dmg per side and the weapon is only doing full dmg if told to just shoot from 1 side?
Sorry, if my questions seem to be dumb, but i'm completely new to sins modding ^^
Its a little odd, but here's how it works:
Go to your list of weapons, and the stats for each weapon. Note the:
"DamageperBank:Front
DamageperBank:Back
DamageperBank:Left
DamageperBank:Right"
lines. The numbers after these is how much damage every attack will do on that side per target. Say you had this set up:
"DamageperBank:Front 65
DamageperBank:Back 15
DamageperBank:Left 25
DamageperBank:Right 25"
Any targeted ship designated as being infront of your ship will take 65 damage. Any targeted designated as being behind your ship will take 15, and any target designated as being to the left or right of your ship will take 25 damage every time that weapon fires.
Then you come across these fields after all the weapons:
"TargetCountPerBank:FRONT
TargetCountPerBank:BACK
TargetCountPerBank:LEFT
TargetCountPerBank:RIGHT"
This tells you how many ships can be targeted per side.Lets say you had it set up like this with the above DamageperBank examples:
"TargetCountPerBank:FRONT 1
TargetCountPerBank:BACK 1
TargetCountPerBank:LEFT 1
TargetCountPerBank:RIGHT 1"
In this situation, 1 ship in front of your ship would take 65, 1 behind would take 15, one to the left would take 25, and one to the right would take 25 damage each time the weapon fires. If there is only 1 enemy around your ship, and it is infront of your ship, it will take only 65 damage. If that 1 ship is behind yours, it will take only 15 damage. If it is to the left or right of yours, it will take only 25.
Lets change the TargetCountPerBank varaibles to 2 now, like so:
"TargetCountPerBank:FRONT 2
TargetCountPerBank:BACK 2
TargetCountPerBank:LEFT 2
TargetCountPerBank:RIGHT 2"
Now, 2 ships in front of your ship will take 65, 2 ships behind will take 15, 2 ships to the left will take 25 and 2 ships to the right will take 25.
If you have only one ship infront of your ship, the forward weapon bank will only have 1 designated target, and will do 65 damage to that target. If there were 2 infront of the ship, the forward weapon bank would have 2 designated targets, and would do 65 to each target - a total of 130 DPS.
Even if there is only 1 target, batteries will not focus fire. What I mean by this is that whilst you may deal a total of 130 DPS with the above setup vs 2 ships in front of you, that does not mean you will do 130 DPS to a single ship in front of you. If there is only 1 ship in front of you, you will only deal 65 DPS and only to that ship.
Hence, your forward battery will only deal half of its total damage if there is only 1 target to focus on, but all of its damage if there are two ships.
The way it is being explained for starbases is using each side. A starbase will only deal 1/4 of its DPS when fighting a fleet attacking from 1 side as only 1/4 of its weapons are facing it. Say the above DamageperBank" variables above were for a starbase, and the numbers were all 65. If you attack only from the front, only the front weapon banks will be attacking you. Hence, you are missing out on the "DamageperBank:Back", "DamageperBank:Left" and "DamageperBank:Right" DPS, as they will each only fire in their respective directions. Their damage is not added to the forward weapons of the starbase if they have no targets. Hence, assuming each bank only has 1 target, your Starbase would only deal 65 damage per attack.
Now, if you attacked from all four directions, all four of the Starbases weapon banks would be able to fire. This means you are dealing 65 damage forward, 65 damage back, 65 damage left and 65 damage right. A total of 260 Damage per attack thanks to the increased number of targets.
VS 1 side, it can only shoot 1/4 of its total targets, and thus deal 1/4 of its total DPS. VS 4 sides it can target all 4 of its targets, and deal 4/4 of its DPS.
This works the same for targets per bank. A 4 target forward bank will deal only 1/4 of its damage when fighting a lone target, as it is only attacking 1/4 of the number of targets it can attack. When fighting 4 targets, it deals 4/4 of its DPS thanks to being able to attack all 4 possible targets.
It is simple to think of it in terms of Focused and Total DPS. The "DamageperBank" variables are the Focused DPS - the DPS that weapon will deal against 1 target every time it fires.
The "TargetCountPerBank" is a multiplier for your Focused DPS that will give you the maximum POTENTIAL DPS of a weapon when fighting.
1 ship will always receive the Focused DPS every time the weapon fires.
A fleet with a number of ships equal to or greater than the number of Targets per bank will receive the Total DPS each time the weapon fires, but only [TargetCountPerBank] ships will be damaged, and they will only receive the Focused DPS each, whilst the fleet overall receives the Total DPS.
Against a number of enemies less than [TargetCountPerBank], you will only deal [Number of ships]/[TargetCountPerBank] of your Total DPS. You will still deal 100% of your Focused DPS however.
Just the opposite. The number of targets a ship is firing at has absolutely no impact on damage done. If a entity is not using all of its weapons, it can't focus them on other targets for extra damage. That's why people are saying what you want to do will not have the effect you want. You'll just end up with a ship that is inflicting the same amount of damage on 1 ship as it used to be able to do on up to four different ones, one in each direction. Thus your change, even if you could do it, would not make your ship stronger. In fact it would make it far weaker.
Now if you want to stick with the ability route, you could just set it so the ability version of the weapon does 4 times as much damage as the normal weapon used to do but only to one target, but that would certainly make it very over powered.
Thank you very much for your detailed explanation! I got it now - it makes me sad that it works that way though :/
Would it be possible to fire such ability from various weapon-points or would it just fire from the center of the ship?
I'm not entirely sure, ability hardpoints do have directions, but I'm not sure if abilities automatically pick one facing the direction of the target or not.
you have to aim them.
simply copy your weapon-0 weapon-1
and rename ability-0 ability-1
if youw ant them shooting form weapon hardpoints.
then when it asks for a point to shoot on type ability and 0 or 1
Missiles will shoot from any direction
it depends on the ability, and how you want it to work. but I would suggest looking at the boarding party ability (fires a missile at the enemy) to see if this helps you out. for example, the maw ability requires you to face a certain direction to utilize the cone type area targetting selector, but the cleansing brilliance ability uses a column type selector in order to determine which ships to target.
A abit of a resurrection, but is there any way to make the DamagePerBank and TargetCountPerBank work in reverse?So instead of having it do its full damage to all targets, it would split its maximum damage between all targets? OR multiply its damage against one target?I am guessing no, but its worth the ask. It seems more realistic that way, as if you had a battery of 4 cannons each doing 25 damage that could target 4 seperate targets, it would be 25 damage to each target. However if you only had 1 target, all 4 cannons would target the one target, doing 25x4 = 100. This makes logical sense, but doesn't appear to be how the game works.
There are many great features available to you once you register, including:
Sign in or Create Account