Changes

From DoomWiki.org

Demo

1,820 bytes added, 13:04, 11 January 2016
Heretic: wip
* Using inventory items
To store them in tic commands, there are two additional bytes, one for looking and flying, and the other for artifact use.
 
The header is similar to 1.2 header, and does not store game version or other parameters.
{| {{prettytable}}
! byte !! purpose
|-
| 0 || [[skill level]]: values {{c|0}} through {{c|4}} indicate "thou needeth a wet-nurse" through "black plague possesses thee", respectively.
|-
| 1 || episode
|-
| 2 || map
|-
| 3 || set to {{c|1}} if player 1 present
|-
| 4 || set to {{c|1}} if player 2 present
|-
| 5 || set to {{c|1}} if player 3 present
|-
| 6 || set to {{c|1}} if player 4 present
|}
 
The tic commands take six bytes:
 
{| {{prettytable}}
! byte !! purpose
|-
| 0 || forward/backward movement: Positive values indicate forward movement, negative backward. {{c|50}} is normally the highest achievable speed if running. {{c|24}} is the walking speed. Any number from {{c|-50}} to {{c|50}} can be achieved with a mouse.
|-
| 1 || [[strafing]]: Positive values indicate rightward movement, negative leftward. {{c|40}} is the running speed, {{c|24}} without running. {{c|[[straferunning|50]]}} is also achievable in a somewhat complicated way.
|-
| 2 || turning: Positive values are left turns, negative right.
|-
| 3 || This byte encodes multiple actions in different bits. Indexing is from the least significant bit.
{| {{prettytable}}
! bit !! purpose
|-
| 0 || If set, the weapon is fired; or in special mode pause is toggled
|-
| 1 || opens a door or flips a switch; or in special mode the game to saved to the slot specified by the next three bits: 1xx0001x is slot 1, 1xx1011x is slot 6
|-
| 2 || changes to the weapon slot specified by the next three bits: xx0001xx is slot 1, xx1101xx is slot 7
|-
| 6 || unused
|-
| 7 || sets special mode, changing the meaning of the first two bits
|}
|-
| 4 || looking and flying:
|-
| 5 || artifact use:
|}
 
Following the series is a {{c|0x80}} byte at the end of the lump.
=== Hexen ===
7,722
edits