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

Disguise: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Testid123 (talk | contribs)
mNo edit summary
Testid123 (talk | contribs)
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Flag
|name={{PAGENAME}}
|files={{Categ|Rules(md).ini}}
|values=Strings (names of [[InfantryTypes]])
|default=none
|types={{categ|General}}
|ts=yes
|fs=yes
|hp=yes
|ra2=yes
|yr=yes
}}
Infantry type to appear as when disguised and viewed by the enemy([[Tiberian Sun]] and [[Firestorm]] Only)<br>For Ra2 use tag [[AlliedDisguise]] and [[SovietDisguise]] For YR use tag [[ThirdDisguise]] instead.
== Infantry Disguises (RA2 & YR) ==
== Infantry Disguises (RA2 & YR) ==
You noticed how the spy can disguise itself as an enemy infantry and walk right past the defenses (except dogs/yuri)? To achieve that, you need only a couple of tags and a special weapon. Firstly, add {{f|CanDisguise|yes|link}} and {{f|PermaDisguise|yes|link}} to the soldier's code. Then, make sure the unit's anti-infantry weapon has a [[warhead]] with {{f|MakesDisguise|yes|link}} set.
You noticed how the spy can disguise itself as an enemy infantry and walk right past the defenses (except dogs/yuri)? To achieve that, you need only a couple of tags and a special weapon. Firstly, add {{f|CanDisguise|yes|link}} and {{f|PermaDisguise|yes|link}} to the soldier's code. Then, make sure the unit's anti-infantry weapon has a [[warhead]] with {{f|MakesDisguise|yes|link}} set.


Line 6: Line 19:


== Vehicle Disguises (RA2 & YR) ==
== Vehicle Disguises (RA2 & YR) ==
The only disguising vehicle in the unmodded game is the Mirage Tank. This kind of disguise requires {{f|CanDisguise|yes|link}}, but not {{f|PermaDisguise|yes|link}}. Also, the vehicle that uses it should not have a [[turret]] or a [[barrel]] as the disguising logic can't turn several [[voxel]]s into a single [[shp]], so it'll end up with multiple trees - one for vehicle body, drawn at ground level, one for [[turret]], drawn on top of the first one, and optionally one for barrel.
The only disguising vehicle in the unmodded game is the Mirage Tank. This kind of disguise requires {{f|CanDisguise|yes|link}}, but not {{f|PermaDisguise|yes|link}}. Also, the vehicle that uses it should not have a [[turret]] or a [[barrel]] as the disguising logic can't turn several [[voxel]]s into a single [[shp]], so it'll end up with multiple trees - one for vehicle body, drawn at ground level, one for [[turret]], drawn on top of the first one, and optionally one for barrel.
If you want to let vehicles pick their own disguises, you once again need a [[warhead]] with {{f|MakesDisguise|yes|link}}, but since the Mirage Tank uses [[TerrainTypes|terrain objects]] instead of infantry as disguise, you will also want to add {{f|TerrainFire|yes|link}} to the weapon, which makes the vehicle able to target trees and other terrain objects without having to use force-fire.
If you want to let vehicles pick their own disguises, you once again need a [[warhead]] with {{f|MakesDisguise|yes|link}}, but since the Mirage Tank uses [[TerrainTypes|terrain objects]] instead of infantry as disguise, you will also want to add {{f|TerrainFire|yes|link}} to the weapon, which makes the vehicle able to target trees and other terrain objects without having to use force-fire.
Line 14: Line 26:
{{f|DefaultMirageDisguises|link}} defines a list of terrain objects that a {{f|CanDisguise|yes|link}} unit ''without'' {{f|PermaDisguise|yes|link}} will try to look like when it doesn't have a custom disguise.
{{f|DefaultMirageDisguises|link}} defines a list of terrain objects that a {{f|CanDisguise|yes|link}} unit ''without'' {{f|PermaDisguise|yes|link}} will try to look like when it doesn't have a custom disguise.


So if you give a vehicle {{f|PermaDisguise|yes|link}}, it will look stupid - it will use the <tt>Allied/Soviet/ThirdDisguise</tt> instead of {{f|DefaultMirageDisguises|link}}, end up looking like an infantry, and because SHP vehicles (SHP is the only way infantry can look like) use a different method to reference proper art frames, you'll see a GI with his gun spinning around as the tank moves (the game then sets {{f|WalkFrames|1|link}} and uses the first frames of the infantry SHP as it's walking animation).  
So if you give a vehicle {{f|PermaDisguise|yes|link}}, it will look stupid - it will use the <tt>Allied/Soviet/ThirdDisguise</tt> instead of {{f|DefaultMirageDisguises|link}}, end up looking like an infantry, and because SHP vehicles (SHP is the only way infantry can look like) use a different method to reference proper art frames, you'll see a GI with his gun spinning around as the tank moves (the game then sets {{f|WalkFrames|1|link}} and uses the first frames of the infantry SHP as it's walking animation).


Even though <b><u>[[VehicleTypes]]</u></b> has <b><u>{{f|DisguiseWhenStill|yes|Link}}</u></b> <b><u>{{f|CanDisguise|yes|Link}}</u></b> <b><u>{{f|Turret|no|Link}}</u></b>
But if the file name <b><u>[[SHP]]</u></b> specified in the section. <b><u>[[DefaultMirageDisguises]]</u></b> have <b><u>{{f|Theater|no|Link}}</u></b> will not display any <b><u>[[SHP]]</u></b> images.
==Nots==
If the [[VehicleTypes]] that uses this logic has {{f|Turret|yes|Link}} [[Image]] of the object specified in the tag. [[DefaultMirageDisguises]] are always larger than normal.
{{Bugs}}
{{Bugs}}


Line 21: Line 37:
Can now disguise itself as a vehicle.
Can now disguise itself as a vehicle.


You can watch a trailer here https: .//www.youtube.com ./watch?v=f5cwBkLlT3o
You can watch a trailer here https://www.youtube.com./watch?v=f5cwBkLlT3o
 
 
Delete '''.'''and fields from the links section '''(ps:  .//www.y..→ ps://)'''


Because then i can't paste the link.
[[File:PermaDisguise (VehicleTypes)1.gif]]
'''If you want to watch a video (What is the primary file edited by old school C&C modders?)'''


[[Category:RA2/YR Tutorials]]
[[Category:RA2/YR Tutorials]]

Latest revision as of 06:21, 12 October 2024

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: Disguise
File(s): Rules(md).ini
Values: Strings (names of InfantryTypes)
Default: none
Applicable to: General


Infantry type to appear as when disguised and viewed by the enemy(Tiberian Sun and Firestorm Only)
For Ra2 use tag AlliedDisguise and SovietDisguise For YR use tag ThirdDisguise instead.

Infantry Disguises (RA2 & YR)

You noticed how the spy can disguise itself as an enemy infantry and walk right past the defenses (except dogs/yuri)? To achieve that, you need only a couple of tags and a special weapon. Firstly, add CanDisguise=yes and PermaDisguise=yes to the soldier's code. Then, make sure the unit's anti-infantry weapon has a warhead with MakesDisguise=yes set.

Now how do you make other units detect disguised units? Easy, by adding DetectDisguise=yes to their code.

Vehicle Disguises (RA2 & YR)

The only disguising vehicle in the unmodded game is the Mirage Tank. This kind of disguise requires CanDisguise=yes, but not PermaDisguise=yes. Also, the vehicle that uses it should not have a turret or a barrel as the disguising logic can't turn several voxels into a single shp, so it'll end up with multiple trees - one for vehicle body, drawn at ground level, one for turret, drawn on top of the first one, and optionally one for barrel. If you want to let vehicles pick their own disguises, you once again need a warhead with MakesDisguise=yes, but since the Mirage Tank uses terrain objects instead of infantry as disguise, you will also want to add TerrainFire=yes to the weapon, which makes the vehicle able to target trees and other terrain objects without having to use force-fire.

AlliedDisguise, SovietDisguise, and ThirdDisguise (YR only) tags define which infantry the units with PermaDisguise=yes look as when the owner hasn't disguised them yet, for each side respectively.

DefaultMirageDisguises defines a list of terrain objects that a CanDisguise=yes unit without PermaDisguise=yes will try to look like when it doesn't have a custom disguise.

So if you give a vehicle PermaDisguise=yes, it will look stupid - it will use the Allied/Soviet/ThirdDisguise instead of DefaultMirageDisguises, end up looking like an infantry, and because SHP vehicles (SHP is the only way infantry can look like) use a different method to reference proper art frames, you'll see a GI with his gun spinning around as the tank moves (the game then sets WalkFrames=1 and uses the first frames of the infantry SHP as it's walking animation).

Even though VehicleTypes has DisguiseWhenStill=yes CanDisguise=yes Turret=no But if the file name SHP specified in the section. DefaultMirageDisguises have Theater=no will not display any SHP images.

Nots

If the VehicleTypes that uses this logic has Turret=yes Image of the object specified in the tag. DefaultMirageDisguises are always larger than normal.

Bugs/Side-Effects/Unexpected Limitations

I can now make vehicles use PermaDisguise=yes and CanDisguise=yes Can now disguise itself as a vehicle.

You can watch a trailer here https://www.youtube.com./watch?v=f5cwBkLlT3o