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

Flat: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Testid123 (talk | contribs)
mNo edit summary
Testid123 (talk | contribs)
mNo edit summary
Line 12: Line 12:
|ares=yes
|ares=yes
}}
}}
States if this [[BuildingTypes|building]] or [[animation]] lays flat on the ground. This flag helps the game's drawing logic in determining [[layer|layers]] and where to draw it.<br>
For animations, this flag also moves the animation 3 pixels up on the Y-axis, and has code for disabling the animation's shadow (in TS animation shadows don't work anyway).<br>
The attack height (the height set by the [[FLH]] tag) affects the <b>Flat</b> tag if the <b>H</b> value (from [[FLH]]) is a negative value that will affect the height of the animation. The more negative The animation will be much lower (only <b>H=-1</b> to <b>H=-9</b> is supported. Values ​​greater than <b>9</b> will Make the animation disappear and heard only the sound)<br>[[File:H=-9.png]]<br><h3><b>H=-9</b></h3>


States if this [[BuildingTypes|building]] or [[animation]] lays flat on the ground. This flag helps the game's drawing logic in determining [[layer|layers]] and where to draw it.
==Note==
 
*The <b>Flat</b> tag has side effects. When used with large animations or animations that are too tall<br>[[File:side effects of tag Flat.png]]
For animations, this flag also moves the animation 3 pixels up on the Y-axis, and has code for disabling the animation's shadow (in TS animation shadows don't work anyway).


{{Bugs}}
{{Bugs}}
If [[Projectile]] has '''Image=Voxel x''' any Then '''Voxel x''' have '''Flat=true''' in the '''[[Art.ini]]''' or '''[[Artmd.ini]]''' section will cause Voxel to not work efficiently
If [[Projectile]] has '''Image=Voxel x''' any Then '''Voxel x''' have '''Flat=true''' in the '''[[Art.ini]]''' or '''[[Artmd.ini]]''' section will cause Voxel to not work efficiently<br>According to the video below<br>
 
According to the video below
 
https://www.youtube.com/watch?v=bwB6BhmGX6g
https://www.youtube.com/watch?v=bwB6BhmGX6g

Revision as of 12:13, 8 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: Flat
File(s): art(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no
Applicable to: BuildingTypes, Animations


States if this building or animation lays flat on the ground. This flag helps the game's drawing logic in determining layers and where to draw it.
For animations, this flag also moves the animation 3 pixels up on the Y-axis, and has code for disabling the animation's shadow (in TS animation shadows don't work anyway).

The attack height (the height set by the FLH tag) affects the Flat tag if the H value (from FLH) is a negative value that will affect the height of the animation. The more negative The animation will be much lower (only H=-1 to H=-9 is supported. Values ​​greater than 9 will Make the animation disappear and heard only the sound)

H=-9

Note

  • The Flat tag has side effects. When used with large animations or animations that are too tall

Bugs/Side-Effects/Unexpected Limitations

If Projectile has Image=Voxel x any Then Voxel x have Flat=true in the Art.ini or Artmd.ini section will cause Voxel to not work efficiently
According to the video below
https://www.youtube.com/watch?v=bwB6BhmGX6g