UserDef Explainations
Here is my run through the code for what these things
do:
god
Toggled by 'God' cheat. KROZ and CORNHOLIE in Duke.
This prevents any weapon from doing damage to APLAYER.
It also is used to reset the player health to max and player's cstat to 257(10).
It also is used to check whether to kill the player when they are 'in space'
warp_on
Initialized to zero at game start.
This is set to 1 if a specific level (-L) or volume (-V) is specified on the command line.
It is set to the number +2 of the numeric command line option (-3 sets to 5) (to load a
saved game) (and then later the game is loaded).
It is set to 1 if a board (map) was specifed on the command line. (and then later the
level is loadded).
cashman
Is toggled when the 'cashman' cheat is used.
If turned on and the player presses 'space', then lotsofmoney()
eog
No longer used. Was set by now-reserved cheat. Looks like it ends current level
and goes back to the menu. (thisplayer.gm set to MODE_MENU)
showallmap
Toggled by the cheat.
show_help
Initialzed to zero.
Used to enumerate through the help pages.
scrollmode
Contains the toggle of the 'map follow mode'
When overhead_on is set, and 'map follow mode' button is pressed, then:
if(ud.scrollmode)
{
ud.folx = ps[screenpeek].oposx;
ud.foly = ps[screenpeek].oposy;
ud.fola = ps[screenpeek].oang;
}
(screenpeek) is the player ID of the view that is being displayed.
When moving, the following check is made after calculating player velocity:
if(ud.scrollmode && ud.overhead_on)
{
ud.folfvel = vel;
ud.folavel = angvel;
loc.fvel = 0;
loc.svel = 0;
loc.avel = 0;
loc.horz = 0;
return;
}
This saves the calculated velocity and angle into userdefs (ud) and sets the player's
current movement to 0.
clipping
Toggled by the 'clip' cheat.
Allows movement through walls/floors/etc. (turns off movement checking)
user_name[MAXPLAYERS][32]
Array of the player's names in multiplayer. Not currently accessible through
CON.
ridecule[10][40]
The text of the 10 taunts for the local player (what text gets sent).
Not currently accessible.
savegame[10][22]
The file names of the saved games.
Not currently accessible.
pwlockout[128]
The parental lockout password loaded from the config file.
Not currently accessible.
rtsname[128]
The file name of the RTS file being used.
Not currently accessible.
overhead_on
Toggle for map view. Non-zero if local user is in map view.
last_overhead
Used as a funky flag to determine if the 'map' button turns map mode on or off.
showweapons
Toggle turned on and off by 'show opponents weapon' button.
Initialized to zero.
pause_on
Initialized to zero.
If 1, then 'Game Paused' is displayed.
No input/movement processing occurs while pause_on is set (non-zero)
Toggled by the 'pause' button on any player's input.
from_bonus
The level that the players (all of them) came from if this is a 'bonus' level.
When exiting the 'bonus' level, the game will take the players to from_bonus+1 instead of
the current +1
camerasprite
Sprite ID of the current camera. Initialized to -1 (no current camera sprite)
This is the sprite ID to use as the player's view.
Set by the actor when player pressing space when current player's view is the local
player.
last_camsprite
Used to save the camerasprite. If there was a change, then camera_time is
updated with the current clock
last_level
Initialized to -1
When entering a level, it's set the NEXT level number (yeah, it doens't make sense to me,
either..)
secretlevel
Initialized to zero.
When hitting a Nuke butoon with a palette set, secretlevel is set to the nuke button's
lotag (if palette is not set, then it's not modified..)
const_visibility
Used to reset player's visibility value when it's 'time'. 'next' time is kept
in global lastvisincs.
It doesn't appear to be initialized....
uw_framerate
Not set nor used.
camera_time
Set to current time + TICRATE*2 when camera sprite changes.
Doesn't appear to be used by anything.
folfvel
folavel
folx
foly
fola
Follow angle, velocity and position.
fola = folavel >> 3
Used for map mode.
reccnt
Initialized to zero when starting a demo recording.
Number of recorded input buffers. Used for caching buffers before writing reset to zero
after buffers are flushed.
entered_name
Not initialized nor used.
screen_tilting
Toggle read from CONFIG file and toggled by menu item.
Used to turn on/off screen tilting
shadows
Toggle read from CONFIG file and toggled by menu item.
Used to turn on/off shadows.
fta_on
Toggle for whether to show quotes (local player only). Toggled by F8
Initialized to 1
executions
Count of the number of times Duke has been run.
If >50 and shareware version, display nag.
Read/saved from CONFIG file.
auto_run
Run mode setting from CONFIG file.
Toggled by 'AutoRun' button.
coords
If on, then coordinates of the current player's view are displayed
(screenpeek).
Toggled by 'coords' cheat and -W command line argument
tickrate
If on, then frames/second are shown
Toggled by 'allen' cheat.
m_coop
Set to -C command line argument
Set to 0 for -Q argument
coop
Both are set to the same thing.
coop is used in the code for checking.
m_coop is used to transmit game mode over network.
screen_size
The screen size for local user.
Made smaller by 'Enlarge Screen' button (-4)
Made bigger by 'Shrink Screen' button (+4)
lockout
Is parental lockout on? Non-zero if yes.
crosshair
Toggled by 'Toggle Crosshair' button.
Turns on and off crosshair
wchoice[MAXPLAYERS][MAX_WEAPONS]
Weapon Choice array. Not currently accessible.
playerai
non-zero if using computer AI
Set to 1 by -A command line
m_respawn_items
m_respawn_monsters
m_respawn_inventory
m_monsters_off
m_ffire
ffire
monsters_off
respawn_monsters
respawn_items
respawn_inventory
Both set the same. Controls settings.
m_recstat
recstat
Set to 1 if demo is currently being recorded.
Set to 1 by -R command line flag
Set to 2 when playing back a demo
brightness
Decreasd by shift+F11 (-4). Increased by +4 for F11. Max is 7<<2. Min is
0
detail
Saved/loaded from CONFIG
Set by menu item.
one is 'high', zero is 'low'
m_player_skill
player_skill
Player skill. Both are set the same - from 0 to 4.
m_level_number
level_number
m_volume_number
volume_number
Current Level# and Volume. Set when starting. Set to Vol=0, level=7 when loading 'user'
level.
multimode
Number of players.
Used in many places to control display of items as well as game configuration, packet
modes, etc.
For -Q. multimode is set to the # passed in.
m_marker
marker Controls respawn marker.
mouseflip
mouse flip mode. non-zero to flip.
Read from "mouseaimingflipped" from CONFIG
Copyright © 2000, Matt Saettler. All Rights
Reserved |