Constantly updated gamevars: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
A lot of stuff added
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.
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.
The "Current actor or player" group point to '''current''' actor/player. The other always point to the same internal variables(usually global variables).


<strong>Do not attempt to redefine these or you will have problems.</strong>
<strong>Do not attempt to redefine these 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]]
Multiplayer
*[[COOP]]
*[[MULTIMODE]]
Current actor or player
*[[WEAPON]]
*[[WORKSLIKE]]
*[[RETURN]]
*[[ZRANGE]]
*[[ANGRANGE]]
*[[AUTOAIMANGLE]]
*[[LOTAG]]
*[[HITAG]]
*[[TEXTURE]]
*[[THISACTOR]]
*[[THISACTOR]]
| width="33%" valign="top" style="border-right: none; border-left: none; padding: 0.6em;" |
Video and misc
*[[currentweapon]]
*[[currentweapon]]
*[[display_mirror]]
*[[framerate]]
*[[gametype_flags]]
*[[gravitationalconstant]]
*[[gs]]
*[[gs]]
*[[gun_pos]]
*[[gun_pos]]
*[[lastvisinc]]
*[[looking_angSR1]]
*[[looking_angSR1]]
*[[looking_arc]]
*[[looking_arc]]
*[[myconnectindex]]
*[[myconnectindex]]
*[[numplayers]]
*[[numsectors]]
*[[randomseed]]
*[[screenpeek]]
*[[screenpeek]]
*[[numplayers]]
*[[totalclock]]
*[[viewingrange]]
*[[weapon_xoffset]]
*[[weaponcount]]
*[[weaponcount]]
*[[weapon_xoffset]]
*[[windowx1]]
*[[windowx1]]
*[[windowx2]]
*[[windowx2]]
Line 20: Line 61:
*[[xdim]]
*[[xdim]]
*[[ydim]]
*[[ydim]]
*[[coop]]
*[[yxaspect]]
 
| width="33%" valign="top" style="border-left: none; padding: 0.6em;" |
Camera
*[[camerax]]
*[[cameray]]
*[[cameraz]]
*[[cameraang]]
*[[camerahoriz]]
*[[camerasect]]
 
 
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]]
[[Category:Gamevar manipulation]]

Revision as of 04:19, 9 December 2007

These are gamevars 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.

The "Current actor or player" group point to current actor/player. The other always point to the same internal variables(usually global variables).

Do not attempt to redefine these or you will have problems.

Map

Multiplayer

Current actor or player


Video and misc

Camera


Player position


Player properties