Constantly updated gamevars: Difference between revisions
No edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
Line 37: | Line 37: | ||
| width="33%" valign="top" style="border-right: none; border-left: none; padding: 0.6em;" | | | 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]] | *[[current_menu]] | ||
*[[currentweapon]] | *[[currentweapon]] | ||
*[[display_mirror]] | *[[display_mirror]] | ||
*[[gametype_flags]] | *[[gametype_flags]] | ||
*[[gravitationalconstant]] | *[[gravitationalconstant]] | ||
*[[lastvisinc]] | *[[lastvisinc]] | ||
*[[myconnectindex]] | *[[myconnectindex]] | ||
*[[numplayers]] | *[[numplayers]] | ||
Line 56: | Line 70: | ||
*[[totalclock]] | *[[totalclock]] | ||
*[[viewingrange]] | *[[viewingrange]] | ||
*[[ | *[[lastsavepos]] | ||
| width="33%" valign="top" style="border-left: none; padding: 0.6em;" | | | width="33%" valign="top" style="border-left: none; padding: 0.6em;" | |
Revision as of 21:17, 19 August 2011
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. See also 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.
Do not attempt to redefine these unless you know what you are doing or you will have problems.
Map
Multiplayer Current actor or player
|
Screen drawing
Renderer Misc |
Camera Player position Player properties |