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

Difference between revisions of "Implementing Stealth Generators"

From ModEnc
Jump to: navigation, search
(Fixed another style 'bug')
m (Replacing Template:TTL with Template:F.)
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
__NOTOC__
+
This creates a mobile stealth generator like in {{fs}}. This simply involves creating a vehicle, a structure, and adding some key tags.
'''for RA2/YR'''
 
  
=The code=
+
<pre>[Vehicle]
 +
DeploysInto=XXXX (whatever your deploying building is called)</pre>
  
==Building==
+
<pre>[Building]
 +
CloakGenerator=yes
 +
CloakRadiusInCells=<integer></pre>
  
<pre>[MOGAPB]
+
{{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.
Adjacent=5
+
 
AIBuildThis=no
+
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.
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==
+
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.
  
<pre>[MOGAPV]
+
{{f|CloakRadiusInCells|0|link}} has no effect.
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=
+
The same deploying logic for a mobile stealth generator can be applied to a mobile gap generator, use [GAGAP] as reference.
  
*The user must still edit the string table for the name.
+
[[category:RA2/YR Tutorials]]
*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.
 

Latest revision as of 10: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.