Constantly updated gamevars: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Fox (talk | contribs)
Merge "Constantly updated gamevars" and "Pre-defined gamevars"
Tag: New redirect
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
These are [[gamevar]]s which are defined as direct pointers to internal variables in the game.  While some will change frequently, others will remain static for the whole game.  Please note that the values of most of these variables will be different on each peer, so you must not rely on them for anything that could possibly have an effect on sync.  As such, these variables are ''only'' for use within local events such as those which allow you to display tiles on the screen. See also [[Pre-defined gamevars]].
#REDIRECT [[Pre-defined gamevars]]
 
The "Current actor or player" group of variables point to the current actor/player. The other ones point to internal and usually global variables.
 
<strong>Do not attempt to redefine these unless you know what you are doing or you will have problems.</strong>
 
{| cellpadding="0" cellspacing="0" border="0" width="100%"
| width="33%" valign="top" style="border-right: none; padding: 0.6em;" |
Map
*[[RESPAWN_MONSTERS]]
*[[RESPAWN_ITEMS]]
*[[RESPAWN_INVENTORY]]
*[[MONSTERS_OFF]]
*[[MARKER]]
*[[FFIRE]]
*[[LEVEL]]
*[[VOLUME]]
*[[NUMWALLS]]
*[[NUMSECTORS]]
 
Multiplayer
*[[COOP]]
*[[MULTIMODE]]
 
Current actor or player
*[[WEAPON]]
*[[WORKSLIKE]]
*[[RETURN]]
*[[ZRANGE]]
*[[ANGRANGE]]
*[[AUTOAIMANGLE]]
*[[LOTAG]]
*[[HITAG]]
*[[TEXTURE]]
*[[THISACTOR]]
 
 
| width="33%" valign="top" style="border-right: none; border-left: none; padding: 0.6em;" |
Screen drawing
*[[gs]]
*[[gun_pos]]
*[[looking_angSR1]]
*[[looking_arc]]
*[[weapon_xoffset]]
*[[weaponcount]]
*[[windowx1]]
*[[windowx2]]
*[[windowy1]]
*[[windowy2]]
*[[xdim]]
*[[ydim]]
*[[yxaspect]]
 
Renderer
*[[framerate]]
*[[rendmode]]
 
Misc
*[[current_menu]]
*[[currentweapon]]
*[[display_mirror]]
*[[gametype_flags]]
*[[gravitationalconstant]]
*[[lastvisinc]]
*[[myconnectindex]]
*[[numplayers]]
*[[NUMSECTORS]]
*[[randomseed]]
*[[screenpeek]]
*[[totalclock]]
*[[viewingrange]]
*[[lastsavepos]]
 
| width="33%" valign="top" style="border-left: none; padding: 0.6em;" |
Camera
*[[camerax]]
*[[cameray]]
*[[cameraz]]
*[[cameraang]]
*[[camerahoriz]]
*[[camerasect]]
*[[cameradist]]
*[[cameraclock]]
 
Player position
*[[myx]]
*[[myy]]
*[[myz]]
*[[omyx]]
*[[omyy]]
*[[omyz]]
*[[myxvel]]
*[[myyvel]]
*[[myzvel]]
 
Player properties
*[[myang]]
*[[mycursectnum]]
*[[myhardlanding]]
*[[myhoriz]]
*[[myhorizoff]]
*[[myjumpingcounter]]
*[[myjumpingtoggle]]
*[[myonground]]
*[[myreturntocenter]]
*[[omyang]]
*[[omyhoriz]]
*[[omyhorizoff]]
|}
 
[[Category:Gamevar manipulation]]

Latest revision as of 00:33, 23 February 2020