]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add an extension description for DP_SV_DISCARDABLEDEMO
authorRudolf Polzer <divverent@alientrap.org>
Sun, 2 May 2010 12:20:19 +0000 (14:20 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 2 May 2010 12:20:19 +0000 (14:20 +0200)
qcsrc/server/extensions.qh

index e5df457c150d293f0fcb182fd46f3b76f2e29b68..ea6f0b068945772a13e3aecf340e2dc461fcd35d 100644 (file)
@@ -1306,6 +1306,17 @@ float(entity clent) clienttype = #455; // returns one of the CLIENTTYPE_* consta
 //implementation notes:
 //entity customization is done before per-client culling (visibility for instance) because the entity may be doing setorigin to display itself in different locations on different clients, may be altering its .modelindex, .effects and other fields important to culling, so customized entities increase cpu usage (non-customized entities can use all the early culling they want however, as they are not changing on a per client basis).
 
+//DP_SV_DISCARDABLEDEMO
+//idea: parasti
+//darkplaces implementation: parasti
+//field definitions:
+.float discardabledemo;
+//description:
+//when this field is set to a non-zero value on a player entity, a possibly recorded server-side demo for the player is discarded
+//Note that this extension only works if:
+//  auto demos are enabled (the cvar sv_autodemo_perclient is set)
+//  discarding demos is enabled (the cvar sv_autodemo_perclient_discardable is set)
+
 //DP_SV_DRAWONLYTOCLIENT
 //idea: LordHavoc
 //darkplaces implementation: LordHavoc