The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 871 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 871 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Airstrike SW tutorial (Ares 0.2)
#1
I'm not quite sure about myself, so I ask opinions about the writing style. Do I explain too much?

I'll try to write an Airstrike SW tutorial.

Some notes about this system:
This is a cloned Spy Plane SW, which instead of Camera=yes attacks, attacks normally. I think it1s best for imitating Carpet bombing attacks, since the planes won't return to their original spawnpoints.

Let's see the aircraft (cloned from Spy Plane):

Code:
[AIRSTR]
UIName=Name:AIRSTR
Name=Airstriker Plane
Image=CHAOSBOMBER;This can be anything, I use ArgCmdr's ChaosBomber for it
Strength=600
Category=AirLift
Armor=SWArmor; Since LegalTarget don't disallow force fire, (also I have a Parabomb SW with another aircraft) I've decided to use a new ArmorType defined as 0% for them and it works perfectly.
TechLevel=-1; Don't want do build this, do we?
Primary=AIRSTRBOMB ;The weapon
Spawned=yes    ; Created by another object (the SW) and therefore not player controllable
LeadershipRating=10
Selectable=no
RadarInvisible=no
Sight=0
Landable=no
MoveToShroud=yes
PitchAngle=0 ; default is 20 degrees
Speed=20
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Points=30
ROT=2
Crewed=yes
Ammo=1
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=2
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=0    ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
ImmuneToPsionics=yes
CanPassiveAquire=no ; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
MoveSound=SpyPlaneMoveLoop
DieSound=
CrashingSound=SpyPlaneDie
ImpactLandSound=GenAircraftCrash
FlyBy=true    ;GEF Don't slow down over your target
Trainable=no ;Even destroying a civilian building would promote this to Elite level... and we don't gain anything from this promotion.

The weapon can be anything, I based my version on this tutorial's one found on Revora.

And the SW code:

Code:
[AirstrikeSW] ;Name can be anything
UIName=Name:Airstrike
Name=Airstrike
IsPowered=true
RechargeTime=10
Type=SpyPlane
SidebarImage=airsicon
ShowTimer=yes
DisableableFromShell=yes
AIDefendAgainst=no ;Should the AI use the Force Shield against it?
SW.AITargeting=Offensive ;The default is the least defended area for the AI
SpyPlane.Type=AIRSTR ;The attacking aircraft
SpyPlane.Count=2 ;Note that these are still fly like the Spy Plane, formation cannot be created!
SW.FireIntoShroud=yes
SW.RequiresTarget=land
SW.Range=1; Well, Range is needed. However, since Spy Plane's spawnpoint is random, Range cannot be controlled directly, but Range=1 will be always overflown
SpyPlane.Mission=Attack
Action=AttackSupport
;These two lines are the most needed.
;Without these, you can easily screw up the game - huge lag without the planes, planes won't attack, etc. Anything can happen.
;It took me 2 days just to figure out the correct combination of these...
Cursor.Frame=480 ;Boris's Airstrike cursor
Cursor.Count=9
Cursor.Interval=2 ;Although a bit faster
Cursor.MiniFrame=42 ;A mini-cursor. It's green, but that's the most suitable, IMO
Cursor.MiniCount=10

Don't forget adding AIRSTR to AircraftTypes, AirstrikeSW to SuperWeapon list and if you use the new ArmorTypes definition for AIRSTR's armor, then add
Code:
[ArmorTypes]
SWArmor=0%
to rulesmd.ini too.

Now I ask, is the style correct, or should I explain more?
Reply


Messages In This Thread
Airstrike SW tutorial (Ares 0.2) - by Graion Dilach - 12.12.2010, 00:43:48
RE: Airstrike SW tutorial (Ares 0.2) - by AlliedG - 12.12.2010, 03:03:26



Users browsing this thread: 1 Guest(s)