]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
q3df compat: add notcpm and notvq3 map entity key support
authorbones_was_here <bones_was_here@yahoo.com.au>
Fri, 10 Jul 2020 11:03:47 +0000 (21:03 +1000)
committerbones_was_here <bones_was_here@yahoo.com.au>
Fri, 10 Jul 2020 11:03:47 +0000 (21:03 +1000)
qcsrc/server/compat/quake3.qc

index 5d9a47d79e6ba6a4d145393064688597eb88a13d..91288baaaa49570efabf88201a4dee213d479ea8 100644 (file)
@@ -259,11 +259,20 @@ spawnfunc(target_fragsFilter)
 .bool notsingle;
 .bool notfree;
 .bool notta;
+.bool notvq3;
+.bool notcpm;
 .string gametype;
 bool DoesQ3ARemoveThisEntity(entity this)
 {
        // Q3 style filters (DO NOT USE, THIS IS COMPAT ONLY)
 
+       // DeFRaG mappers use "notcpm" or "notvq3" to disable an entity in CPM or VQ3 physics
+       // Xonotic is usually played with a CPM-based physics so we default to CPM mode
+       if(cvar_string("g_mod_physics") == "Q3") {
+               if(this.notvq3) return true;
+       }
+       else if(this.notcpm) return true;
+
        // Q3 mappers use "notq3a" or "notta" to disable an entity in Q3A or Q3TA
        // Xonotic has ~equivalent features to Team Arena
        if(this.notta)