Editing Property transfer linedef types

From Eternity Wiki
Jump to navigationJump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 23: Line 23:


  223  Ext    --  Length Sets Friction in tagged Sector,Sludge<100, Ice>100
  223  Ext    --  Length Sets Friction in tagged Sector,Sludge<100, Ice>100
See [[Sector_SetFriction]].
The length of the linedef with type 223 controls the amount of friction experienced by the player in the tagged sector, when in contact with the floor. Lengths less than 100 are sticker than normal, lengths greater than 100 are slipperier than normal. The effect is only present in the tagged sector when its friction enable bit (bit 8) in the sector type is set. This allows the flat to be changed in conjunction with turning the effect on or off thru texture/type changes.


=== New to MBF ===
=== New to MBF ===
:See [[Static_Init (sky transfer)]]
 
271  Ext    --  Transfer sky texture to tagged sectors
272  Ext    --  Transfer sky texture to tagged sectors, flipped
These linedefs transfer wall textures to skies. F_SKY1 must still be used as the floor or ceiling texture in the sectors for which sky is desired, but the presence of a 271 or 272 property-transfer linedef can change the sky texture to something other than a level-based default.
 
Every sector with F_SKY1 floor or ceiling which shares the same sector tag as the 271 or 272 linedef will use a sky texture based on the upper texture of the first sidedef in the 271 or 272 linedef. Sectors with F_SKY1 floors or ceilings which are not tagged with 271 or 272 linedefs, behave just like Doom.
 
Horizontal offsets or scrolling in the transferred texture, is converted into rotation of the sky texture. Vertical offsets or scrolling is transferred as well, allowing for precise adjustments of sky position. Unpegging in the sky transfer linedef does not affect the sky texture.
 
Horizontal scrolling of the transferred upper wall texture is converted into rotation of the sky texture, but it occurs at a very slow speed relative to the moving texture, allowing for long-period rotations (such as one complete revolution per Doom real-time hour).
 
Effects other than sky-transfer effects are not excluded from the affected sector(s), and tags can be shared so long as the effects are unambiguous. For example, a wall-scrolling linedef can share a sector tag with both its affectee linedef (the one being scrolled), and with the sector that the latter controls. There is no ambiguity because one effect (scrolling) applies to a linedef, while the other effect (sky transfer) applies to a sector.
 
If a sector underneath a special sky needs to be set up to have a different purpose (for example, if it is a lift or a stairbuilder), then two tags will need to be created, and the transfer linedef and any scrolling linedefs will need to be duplicated as well, so that the same effect as far as the sky goes, is duplicated in two separate sector tags. This will not affect sky appearance, but it will allow a special sector which needs a unique tag, to sit under such a sky.
 
Animated textures may be transferred to skies as well.
 
In Doom, skies were flipped horizontally. To maintain compatibility with this practice, the 272 linedef flips the wall image horizontally. The 271 linedef does not flip the wall image, and it is intended to make it easier to take existing non-flipped wall textures and transfer them to skies.
 
Sky textures which are different must be separated by non-sky textures, or else the results are undefined.
Note for Eternity Engine v3.31 public beta 6 and later: Sky textures will be rendered using the maximum of the texture height and the height of the tallest patch in the texture, in order to properly support tall skies that do not require stretching for mlook. Because of this, textures which are meant to cut off a taller patch at the texture height will not appear as expected when used as sky textures. Avoid using sky textures which contain patches taller than the texture to avoid this problem.


==Constant pushers==  
==Constant pushers==  
Line 49: Line 69:
Two types of point pushers are available, push and pull.
Two types of point pushers are available, push and pull.


This implementation ignores sector boundaries and provides the effect in a circular area whose center is defined by a Thing of type 5001 (push) or 5002 (pull). In Doom format, a linedef type of 226 is used to control the effect, and this line should be tagged to the sector with the 5001/5002 Thing. In [[UDMF]] and [[ExtraData]], use [[PointPush_SetForce]].
This implementation ignores sector boundaries and provides the effect in a circular area whose center is defined by a Thing of type 5001 (push) or 5002 (pull). You don't have to set any option flags on these Things. A new linedef type of 226 is used to control the effect, and this line should be tagged to the sector with the 5001/5002 Thing.
 
The length of the linedef defines the 'full' magnitude of the force, and the force is inversely proportional to distance from the point source. If the length of the controlling linedef is L, then the force is reduced to zero at a distance of 2L.


Usually, the length of the linedef defines the 'full' magnitude of the force, and the force is inversely proportional to distance from the point source. If the length of the controlling linedef is L, then the force is reduced to zero at a distance of 2L. The angle of the controlling linedef is not used. In the parameterized version you also have the option to set an explicit length value.
The angle of the controlling linedef is not used.


The sector where the 5001/5002 Things reside must have the wind-enable bit set in its type. If this is turned off, the effect goes away. The bit is, depending on format:
The sector where the 5001/5002 Things reside must have bit 9 set (0x200) in its type. If this is turned off, the effect goes away.
* bit 9 (0x200, 512) in the Doom format,
* bit 12 (0x1000, 4096) in [[UDMF]].


Point pushers can be combined with scrolling effects and constant pushers.
Point pushers can be combined with scrolling effects and constant pushers.


  226  Ext    --  Length Sets Point Source Wind/Current Force in Tagged Sectors
  226  Ext    --  Length Sets Point Source Wind/Current Force in Tagged Sectors
=== New to Eternity ===


==Moving 3DMidTex Lines==  
==Moving 3DMidTex Lines==  
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see Eternity Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: