Linedef type 9

From SRB2 Wiki
Jump to: navigation, search
Player hanging on a spinning chain.

Linedef type 9, Chain Parameters, is a type of linedef special which sets the parameters for spinning maces, spinning chains, swinging maces and swinging chains. It sets the length, speed, maximum angle and direction for these four types of chains and maces.

Setup

For each of these to appear and work properly, the Angle of the applicable Things must be identical to the tag number of the controlling linedef. The number of chain links is defined by the control linedef's X distance; one fracunit equals one chain link. The movement speed is defined by the control linedef's Y distance (0 is stationary). The other properties depend on which of the four types of chains this linedef is setting up.

Spinning maces

The direction of the mace's spin is determined by the sum of the floor height of the control sector and the front side X texture offset (the direction value should be between 0 and 359; a value of 0 or 180 makes the mace spin vertically, a value of 90 makes the mace spin horizontally clockwise, and 270 horizontally counterclockwise, and any other value will make the mace spin at varying diagonal angles). The spawn angle is determined by Y texture offsets of the controlling linedef.

Swinging maces

The angle of the mace's swing is determined by the ceiling height of the control sector (0 is stationary). The direction of the mace's swing is determined by the control linedef's front texture Y offset, and should be between 0 and 359. The angle which the mace spawns at is determined by the control linedef's front texture X offset, and should be between 0 and 359.

It is also possible to define a direction for swinging maces with the floor height of the control sector, but this method is more limited and doesn't allow you to make, for instance, alternating swinging maces, such as the ones found in Castle Eggman Zone Act 2. This should only be used when all maces that are set up in the control sector have the same properties.

Bear in mind that the maximum angle and speed values are dependent upon each other: a wide angle range will require more speed, and a narrow angle range will require less speed.

Swinging chains

The angle of the chain's swing is determined by the ceiling height of the control sector, with 128 being the maximum(0 is stationary). The direction of the chain's swing is determined by the control linedef's front texture Y offset, and should be between 0 and 359. The angle which the chain spawns at is determined by the control sector's floor height, and should be between 0 and 359.

Bear in mind that the maximum angle and speed values are dependent upon each other: a wide angle range will require more speed, and a narrow angle range will require less speed.

Spinning chains

The direction of the chain's spin is determined by the control linedef's front texture X offset, and should be between 0 and 359. The angle which the chain spawns at is determined by the control linedef's front side texture Y offset, and should be between 0 and 359. When the Not Climbable flag is set, the spinning direction of the chain cannot be changed.

Samples

Sample 1

Example WAD: ex_ld009_chainparameters_spinningmace.wad
  • This example WAD can be played in any gametype. It uses MAP01, replacing Greenflower Zone Act 1.
  • This shows the behavior of vertically and horizontally spinning maces.

Sample 2

Example WAD: ex_ld009_chainparameters_controllablechain.wad
  • This example WAD can be played in any gametype. It uses MAP01, replacing Greenflower Zone Act 1.
  • This shows the behavior of spinning chains.

Sample 3

Example WAD: ex_ld009_chainparameters_swingingmace.wad
  • This example WAD can be played in any gametype. It uses MAP01, replacing Greenflower Zone Act 1.
  • This shows the behavior of swinging maces.

Sample 4

Example WAD: ex_ld009_chainparameters_hangablechain.wad
  • This example WAD can be played in any gametype. It uses MAP01, replacing Greenflower Zone Act 1.
  • This shows the behavior of swinging chains.

  Linedef types – Parameters [view]
Custom ExitZoom Tube ParametersSpecial Sector PropertiesChain ParametersRope Hang ParametersRock Spawner ParametersContinuously Appearing/Disappearing FOFBridge Thinker