Module dpmod: Change committed

havoc at icculus.org havoc at icculus.org
Tue Dec 16 06:08:17 EST 2003


Commiter   : havoc
CVSROOT    : /cvs/cvsroot/twilight
Module     : dpmod
Commit time: 2003-12-16 11:08:17 UTC

Log message:

added cvar_string extension at the request of Paul Timofeyev

Modified files:
     pr_cmds.c qc/dpextensions.qc

------=MIME.6d4997dd8dce9e88cfd35dcc1c931f84
Content-Type: text/plain; name="dpmod.20031216.110817.havoc.diff"
Content-Disposition: attachment; filename="dpmod.20031216.110817.havoc.diff"
Content-Transfer-Encoding: 8bit

Index: dpmod/qc/dpextensions.qc
diff -u dpmod/qc/dpextensions.qc:1.15 dpmod/qc/dpextensions.qc:1.16
--- dpmod/qc/dpextensions.qc:1.15	Sun Dec  7 04:48:29 2003
+++ dpmod/qc/dpextensions.qc	Tue Dec 16 06:08:07 2003
@@ -23,6 +23,14 @@
 //indicates this engine loads .lit files for any quake1 format .bsp files it loads to enhance maps with colored lighting.
 //implementation description: these files begin with the header QLIT followed by version number 1 (as little endian 32bit), the rest of the file is a replacement lightmaps lump, except being 3x as large as the lightmaps lump of the map it matches up with (and yes the between-lightmap padding is expanded 3x to keep this consistent), so the lightmap offset in each surface is simply multiplied by 3 during loading to properly index the lit data, and the lit file is loaded instead of the lightmap lump, other renderer changes are needed to display these of course...  see the litsupport.zip sample code (almost a tutorial) at http://icculus.org/twilight/darkplaces for more information.
 
+//DP_QC_CVAR_STRING
+//idea: Paul Timofeyev
+//DarkPlaces implementation: Paul Timofeyev, LordHavoc
+//builtin definitions:
+string(string s) cvar_string = #448;
+//description:
+//returns the value of a cvar, as a tempstring.
+
 //DP_QC_TRACE_MOVETYPES
 //idea: LordHavoc
 //darkplaces implementation: id Software


More information about the twilight-commits mailing list