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

Difference between revisions of "Disguise"

From ModEnc
Jump to: navigation, search
(Beh. Damn html > wiki conversion.)
(rw)
Line 19: Line 19:
 
I think that by giving the infantry art sections the proper vehicle-style frame reference tags, you can make it look properly, but this still requires some testing.
 
I think that by giving the infantry art sections the proper vehicle-style frame reference tags, you can make it look properly, but this still requires some testing.
  
[[Category:Tutorials]]
+
[[Category:RA2/YR Tutorials]]

Revision as of 14:38, 30 March 2008

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 Template:TTL and Template:TTL to the soldier's code. Then, make sure the unit's anti-infantry weapon has a warhead with Template:TTL set.

Now how do you make other units detect disguised units? Easy, by adding Template:TTL to their code.

Vehicle Disguises (RA2 & YR)

The only disguising vehicle in the unmodded game is the Mirage Tank. This kind of disguise requires Template:TTL, but not Template:TTL. 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 Template:TTL, but since the Mirage Tank uses terrain objects instead of infantry as disguise, you will also want to add Template:TTL to the weapon, which makes the vehicle able to target trees and other terrain objects without having to use force-fire.

Template:TTL, Template:TTL, and Template:TTL (YR only) tags define which infantry the units with Template:TTL look as when the owner hasn't disguised them yet, for each side respectively.

Template:TTL defines a list of terrain objects that a Template:TTL unit without Template:TTL will try to look like when it doesn't have a custom disguise.

So if you give a vehicle Template:TTL, it will look stupid - it will use the Allied/Soviet/ThirdDisguise instead of Template:TTL, 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 Template:TTL and uses the first frames of the infantry SHP as it's walking animation).

Template:NeedTesting I think that by giving the infantry art sections the proper vehicle-style frame reference tags, you can make it look properly, but this still requires some testing.