Renegade Projects Network Forums

Full Version: Airstrike SW tutorial (Ares 0.2)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Btw why not use Immune=yes on the Spy Plane? Also I doubt anyone would forcefire on a high speed moving object.

People only forcefire on hospitals cos they are huge, easy targets.

Also not absolutely nessecary but for sake of Ares promotions, I think screenshots or a short YT video would improve this.
Personally the new ArmorType was easier to manage.

Also, Temporal warheads can erase Immune=yes, and I plan an AA Temporal unit.

I'll try YouTube, (screenshots can't provide much, IMO) but I don't have a screen-capturer, didn't finished the cameo for it ATM and my upload speed is 15 kb/s.

Will do.
Sorry for doubleposting, but I did the YouTube video.

http://www.youtube.com/watch?v=IVyR-fo7VLA
I suggest to Ren that he create a new forum in Ares General Discussion called Ares Tutorials
I suggest to you that you put your Ares tutorials on ModEnc.