Minor cleanup

This commit is contained in:
Remy Marquis 2020-06-24 14:43:35 +02:00
parent 601c3d5875
commit 7ec5c1786b
4 changed files with 5 additions and 5 deletions

View file

@ -51,7 +51,7 @@ et.CS_INTERMISSION_START_TIME 36
et.CS_ENDGAME_STATS 37 et.CS_ENDGAME_STATS 37
et.CS_CHARGETIMES 38 et.CS_CHARGETIMES 38
et.CS_FILTERCAMS 39 et.CS_FILTERCAMS 39
et.CS_LEGACYINFO 40 et.CS_MODINFO 40
et.CS_SVCVAR 41 et.CS_SVCVAR 41
et.CS_CONFIGNAME 42 et.CS_CONFIGNAME 42
et.CS_TEAMRESTRICTIONS 43 et.CS_TEAMRESTRICTIONS 43

View file

@ -73,9 +73,9 @@ If desired, Lua scripts can also connect to the engine memory database by the fo
conn = assert(env:connect("file::memory:?cache=shared")) conn = assert(env:connect("file::memory:?cache=shared"))
.. Note:: The database is only active when the `db_mode <https://dev.etlegacy.com/projects/etlegacy/wiki/List_of_Cvars#db_-Additional>`_ cvar is set. .. Note:: The database is only active when the *db_mode* cvar is set.
To save this in memory database to disk use the **saveDB** console command. See also the `db_url <https://dev.etlegacy.com/projects/etlegacy/wiki/List_of_Cvars#db_-Additional>`_ cvar to specify the database path. To save this in memory database to disk use the **saveDB** console command. See also the *db_url* cvar to specify the database path.
Connection objects Connection objects

View file

@ -289,7 +289,7 @@ vec3
---- ----
A vec3_t is a 3-element array of numbers, usually used to store and process coordinates in 3D space. A vec3_t is a 3-element array of numbers, usually used to store and process coordinates in 3D space.
Similarly, in Legacy a vector is an array (table indexed by integers) containing 3 numbers. It can be accessed by:: Similarly, a vector is an array (table indexed by integers) containing 3 numbers. It can be accessed by::
origin = et.gentity_get(entNum, "r.currentOrigin") --a vec3 value origin = et.gentity_get(entNum, "r.currentOrigin") --a vec3 value
x, y, z = origin[1], origin[2], origin[3] x, y, z = origin[1], origin[2], origin[3]

View file

@ -2,7 +2,7 @@
Sample code Sample code
=========== ===========
.. tip:: If you want to see some ET-specific Lua examples, you can check the `ET Legacy Lua scripts <https://github.com/etlegacy/etlegacy-lua_scripts>`_ repository. .. tip:: If you want to see some specific Lua examples, you can check the `Lua scripts <https://github.com/etlegacy/etlegacy-lua-scripts>`_ repository.
General General