]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added DP_EF_NOSELFSHADOW extension
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 18 Dec 2008 04:34:35 +0000 (04:34 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 18 Dec 2008 04:34:35 +0000 (04:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8598 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c
csprogs.c
svvm_cmds.c
todo

index 39f46ab2399d1ab501395088ce46f653a351da59..75e3bd8533504445153cb9353c003d6d7da929b3 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1065,6 +1065,8 @@ void CL_UpdateNetworkEntity(entity_t *e, int recursionlimit, qboolean interpolat
                e->render.flags |= RENDER_SHADOW;
        if (e->render.flags & RENDER_VIEWMODEL)
                e->render.flags |= RENDER_NOSELFSHADOW;
+       if (e->render.effects & EF_NOSELFSHADOW)
+               e->render.flags |= RENDER_NOSELFSHADOW;
 
        // make the other useful stuff
        CL_UpdateRenderEntity(&e->render);
index 14165f0f8802cccc569e345e2b956f3ee6309fc0..2bf194178b004845dfa98f8a192d5ca041344deb 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -224,6 +224,8 @@ qboolean CSQC_AddRenderEdict(prvm_edict_t *ed)
                entrender->flags |= RENDER_SHADOW;
        if (entrender->flags & RENDER_VIEWMODEL)
                entrender->flags |= RENDER_NOSELFSHADOW;
+       if (entrender->effects & EF_NOSELFSHADOW)
+               entrender->flags |= RENDER_NOSELFSHADOW;
 
        // make the other useful stuff
        CL_UpdateRenderEntity(entrender);
index 3b67e0063bebf1e25b16cb4ab68a0be20b1cadbf..a2c2cee0d7d20ee2a5da7683a987c114cf4bdb1c 100644 (file)
@@ -27,6 +27,7 @@ char *vm_sv_extensions =
 "DP_EF_NODEPTHTEST "
 "DP_EF_NODRAW "
 "DP_EF_NOGUNBOB "
+"DP_EF_NOSELFSHADOW "
 "DP_EF_NOSHADOW "
 "DP_EF_RED "
 "DP_EF_STARDUST "
diff --git a/todo b/todo
index 7917606045f2668256128975440716a6299fe2bb..c6cff8a35017a2d4a70baf26a084523b586ad92e 100644 (file)
--- a/todo
+++ b/todo
@@ -1,4 +1,7 @@
 - todo: difficulty ratings are: 0 = trivial, 1 = easy, 2 = easy-moderate, 3 = moderate, 4 = moderate-hard, 5 = hard, 6 = hard++, 7 = nightmare, d = done, -d = done but have not notified the people who asked for it, f = failed, -f = failed but have not notified the people who asked for it
+0 feature darkplaces client rtlights: ChrisP has a suggestion of selecting rtlight properties using the number keys, and increasing/decreasing their value using the mouse wheel (cvars needed for amounts to adjust by), and ability to right click a light to delete it, left click to select a light, left drag to move a light on the XY plane it is on (ChrisP)
+0 feature darkplaces client particles: effectinfo.txt should have a "particlefont" command specifying a filename, number of cells per row, number of rows, number of bottom rows that are beams, this would allow more particle images to be used (ChrisP)
+d feature darkplaces client extensions: EF_NOSELFSHADOW flag (ChrisP)
 0 bug darkplaces client csqc: engine prediction function is not implemented - could just return the engine's current cl.movement_origin (Spike)
 0 bug darkplaces client csqc: entities not being drawn with VF_PERSPECTIVE 0? (daemon)
 0 bug darkplaces client csqc: input queue functions needed for csqc prediction aren't implemented (Spike)