ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Implementing Stealth Generators: Difference between revisions

From ModEnc
Jump to navigation Jump to search
No edit summary
m Replacing Template:TTL with Template:F.
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
This creates a Mobile stealth Generator like the one in Firestorm.
This creates a mobile stealth generator like in {{fs}}. This simply involves creating a vehicle, a structure, and adding some key tags.


__NOTOC__
<pre>[Vehicle]
DeploysInto=XXXX (whatever your deploying building is called)</pre>


=The code=
<pre>[Building]
CloakGenerator=yes
CloakRadiusInCells=<integer></pre>


==Building==
{{f|CloakGenerator|yes|link}} will indicate to the game that this structure should cloak anything within its {{f|CloakRadiusInCells|link}}, which should be a whole number value.
 
<pre>[MOGAPB]
Adjacent=5
AIBuildThis=no
Armor=steel
BaseNormal=yes
Bombable=no
BuildCat=Combat
BuildLimit=-5
Capturable=no
ClickRepairable=no
CloakGenerator=yes
Cloakable=yes
CloakRadiusInCells=10
Cost=2500
Crewed=no
HasRadialIndicator=yes
Image=GAGAP
ImmuneToPsionics=yes
IsBaseDefense=yes
IsSimpleDeployer=no
Name=Mobile Stealth Generator
Owner=British,Americans,Germans,French,Alliance,Russians,Confederates,Africans,Arabs,YuriCountry
Points=250
Powered=yes
Power=-50
Prerequisite=GAGAP,GACNST
RadarInvisible=yes
Repairable=yes
SensorArray=yes
Sight=10
Soylent=2000
Strength=1000
TechLevel=-1
ThreatPosed=10
UIName=Name:MOGAPB
UndeploysInto=MOGAPV
Warpable=no</pre>
<br />


==Vehicle==
CloakGenerators can cause '''major''' lag in RA2/YR. This is due to RA2's increased graphics size, and also the presence of {{f|DoubleThick|yes|link}} on many art entries.


<pre>[MOGAPV]
To reduce this lag, you should keep {{f|CloakRadiusInCells|link}} to a low value, as well as removing the {{f|DoubleThick|yes|link}} entry on art entries.
AllowedToStartInMultiplayer=no
Armor=heavy
Bombable=no
BuildLimit=-5
Category=Support
Cost=2500
Crusher=yes
DeploysInto=MOGAPB
Image=SREF
ImmuneToPsionics=yes
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
MovementZone=Crusher
Name=Mobile Stealth Generator
OmniCrushResistant=yes
Owner=Americans,Alliance,Germans,French,British
Parasiteable=no
Points=250
Prerequisite=GAGAP,FACTORY
RadarInvisible=yes
SelfHealing=yes
Sight=10
Size=4
Soylent=2000
Speed=5
Strength=1000
StupidHunt=yes
TechLevel=10
Trainable=no
UIName=Name:MOGAPV
Warpable=no
Weight=3</pre>


=Notes=
{{f|CloakRadiusInCells|0|link}} has no effect.


*The user must still edit the string table for the name.
The same deploying logic for a mobile stealth generator can be applied to a mobile gap generator, use [GAGAP] as reference.
*The code is alphabetized and does not follow standards. Someone can fix this if they wish. Demon Red Storm (author) will fix this as soon as possible.


[[category:Tutorials]]
[[category:RA2/YR Tutorials]]

Latest revision as of 08:08, 27 November 2009

This creates a mobile stealth generator like in Firestorm. This simply involves creating a vehicle, a structure, and adding some key tags.

[Vehicle]
DeploysInto=XXXX (whatever your deploying building is called)
[Building]
CloakGenerator=yes
CloakRadiusInCells=<integer>

CloakGenerator=yes will indicate to the game that this structure should cloak anything within its CloakRadiusInCells, which should be a whole number value.

CloakGenerators can cause major lag in RA2/YR. This is due to RA2's increased graphics size, and also the presence of DoubleThick=yes on many art entries.

To reduce this lag, you should keep CloakRadiusInCells to a low value, as well as removing the DoubleThick=yes entry on art entries.

CloakRadiusInCells=0 has no effect.

The same deploying logic for a mobile stealth generator can be applied to a mobile gap generator, use [GAGAP] as reference.