This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
xg:class:plane_move [2017-03-17 10:30] – skyjake | xg:class:plane_move [2019-11-26 09:21] (current) – skyjake | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Plane move (XG class) ====== | ||
+ | |||
+ | |||
+ | < | ||
+ | </ | ||
+ | Moves a [[modding: | ||
+ | |||
+ | |||
+ | ===== Parameters ===== | ||
+ | |||
+ | |||
+ | ^ Prm^ Name^ Type^ Meaning | | ||
+ | | Ip0,Ip1| Target Ref, | ||
+ | | Ip2| Destination Ref| [[xg: | ||
+ | | Ip3| Move Flags| Flags| < | ||
+ | | Ip4| Start Sound| Sound| Name of the sound to play when the move is begun. | | ||
+ | | Ip5| End Sound| Sound| Name of the sound to play when the move finishes. | | ||
+ | | Ip6| Move Sound| Sound| Name of the sound to play while moving. | | ||
+ | | Ip7| Start Texture Ref| [[xg: | ||
+ | | Ip8| Start Texture Num| Flat| Name of the flat (texture) to set when the move is begun. This is used if Ip7 is set to spref_special . | | ||
+ | | Ip9| End Texture Ref| [[xg: | ||
+ | | Ip10| End Texture Num| Flat| Name of the flat (texture) to set when the move is begun. This is used if Ip9 is set to spref_special . | | ||
+ | | Ip11,Ip12| Start Type Ref, | ||
+ | | Ip13,Ip14| End Type Ref, | ||
+ | | Fp0| | Float| Move speed as units per (35 Hz) tic. A speed of 2 will move the plane 70 units per second. | | ||
+ | | Fp1| | Float| Move speed while crushing, as units per tic. | | ||
+ | | Fp2| | Float| Offset to destination height. Positive values move the destination upwards. | | ||
+ | | Fp3| | Float| Move sound minimum interval, in seconds. | | ||
+ | | Fp4| | Float| Move sound maximum interval, in seconds. The move sound will be played at random intervals, the minimum defined with Fp3 and the maximum with Fp4. | | ||
+ | | Fp5| | Float| Time to wait before moving the plane, in seconds. | | ||
+ | | Fp6| | Float| Wait time increment for each plane that gets moved. Has an effect only if more than one sector is being affected. | | ||
+ | |||
+ | |||
+ | |||
+ | ===== Speeds of original Doom plane movements ===== | ||
+ | |||
+ | |||
+ | A reference for when one wishes their plane move XG to match the speeds of the games original plane movement types. | ||
+ | |||
+ | ^ Movement Type^ Speed per tic^ Speed per second | | ||
+ | | Moving Floor| 1 unit| 35 units | | ||
+ | | 8-unit stairs| 0.25 units| 8.75 units | | ||
+ | | Door| 2 units| 70 units | | ||
+ | | Turbo/ | ||
+ | | Lifts| 4 units| 140 units | | ||
+ | |||
+ | |||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | | ||
+ | Line Type { | ||
+ | ID = 5006 | ||
+ | Comment = "Lower when Player crosses" | ||
+ | Flags = player_cross | ||
+ | Flags2 = when_act | any | ||
+ | Class = plane_move | ||
+ | Type = timed_off | ||
+ | Count = 1 | ||
+ | Time = 1 | ||
+ | Target Ref = " | ||
+ | Destination Ref = " | ||
+ | Start Sound = " | ||
+ | End Sound = " | ||
+ | Move Sound = " | ||
+ | Fp0 = 3; | ||
+ | Fp1 = 0.2; | ||
+ | Fp3 = 0.2; | ||
+ | Fp4 = 0.4; | ||
+ | } | ||
+ | |||
+ | The line is triggered when the player crosses the line (Flags = player_cross). The line is active in any skill mode and any game type (Flags2 = any) and the line carries out it's action when active (Flags2 = when_act). When activated, the line begins moving the floor plane of its sector. The destination height is the lowest floor height of the adjacent sectors. The sound bdopn is played when the move is begun, and bdcls is played when the destination height has been reached. The punch sound is played at random intervals while the plane is moving (min: 0.2 seconds, max: 0.4 seconds). The planes will be moved 3 units per game tic, which means they move 105 units per second. | ||
+ | |||
+ | |||
+ | ===== See also ===== | ||
+ | |||
+ | * Another way to move planes is the [[xg: | ||
+ | |||
+ | |||