Posted: Wed Aug 26, 2009 10:21 pm Post subject:
Vacuum Bomb Airstrike Help!
So I'm trying to make an airstrike superweapon with NPatch. Everything was straightforward until it screwed up. I use the superweapon by clicking the icon, then my mouse becomes a parachute(on purpose, there was no other good cursors), then the plane comes in but sometimes it doesn't fire the weapon.
On Construction Yard: Always fire.
On blank ground: Most of the times fire.
On blank ground with some spare structures: Never fires.
On top of defensive structure: Half of the times fire.
On units: Most of the times don't fire.
With 2 it's barely able to reach the ground under the plane due to it's high flightlevel, which is considered too when calculating the distance between aircraft and target.
Since buildings raise a bit the range due to their big size, it works on your conyard. But smaller targets cause problems. (e.g. a 5x5 building can be shot even with a range=1 weapon which still reaches the centre cell which is actually 3 cells away).
With Range=3 it should work much better.
Also take care if you raise the flightlevel. e.g. with a FlightLevel=3000, range=3 surely won't be enough too. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Tried and works 100% with Range=4. Thx LKO. Now I just wanna know how is it that it can destroy a conyard with one shot?
Splash weapons (also known as CellSpread >= 1) affect ALL of the cells affected in a single building. From 1x1 like Pillboxes to 4x4 like Conyards. This means damage (dependent on PercentAtMax) is applied upwards of 16 or more times potentially.
Even a low damage weapon can end up doing tons of damage this way. Possible bug afaik, but that's the way it is.
Let's put this in example format shall we?
First the code: (assumes everything declared beforehand)
In this setup SplashGun will do 30 damage before warhead to whatever it can (or cannot, see the 0%) hit. Against a lone unit it just affects that. Against a 3 stack infantry in one cell it affects all of them. A 2 stack on 1 cell and a lone in an adjacent cell will all take damage but one of the groups will take the splash as opposed to the direct hit.
Now against a building it is a much different beast. Take the Allied Repair Depot (3x3), the weapon will hit the center cell. Now before you think it does just the 30 damage, take the CellSpread into account. A 3x3 structure like this from a CellSpread=1 will have EVERY cell affected. That is equal to 30x9 or 270 damage before attenuation (warhead adjustments). That's a lot of damage.
Now lets say the CellSpread was upped to 2.0. Now we attack a Conyard (4x4), the direct attack while it doesn't affect 1 exact cell it will however affect a 2 cell distance around it. This means that all 16 cells are hit. Thus 16x30=480 damage before adjustments. A 3x3 structure with the same settings will still take 30x9=270 for comparison.
Yes as CellSpread increases damage against larger Foundation= structures increases. Yet conversely in scale, damage does NOT increase for structures smaller than the CellSpread radius. Once it affects all the cells in a building, no amount of CellSpread increase will cause more damage.
Don't look at me that way, I didn't write the damn thing. QUICK_EDIT
Basically look at ww warheads before you post, your wh 22800 dmg x 2 (PercentAtMax=2) on 5 cells.
Your construction yard in comparison has 1000 concrete hp by default
% think of them as simple multiples so 400% is the base damage times 4
PercentAtMax is how much dmg a cell spread should do. This never exceeds 1 for obvious reasons. (the main dmg of a shell is at the epi centre and should weaken as it "spreads" out)
You could have easily looked at the NUKEWH or HE for example. _________________ QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum