]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
support EF_DYNAMICMODELLIGHT in csqcmodel
authorRudolf Polzer <divverent@alientrap.org>
Sat, 31 Dec 2011 13:32:01 +0000 (14:32 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 31 Dec 2011 13:32:01 +0000 (14:32 +0100)
qcsrc/client/csqcmodel_hooks.qc
qcsrc/dpdefs/csprogsdefs.qc

index fc734b2c83c279650fa5bdabe07d8156003244b0..145218bce75f2b3b6abe08e8ed10b5c1c992d0b0 100644 (file)
@@ -282,6 +282,7 @@ float EF_BRIGHTLIGHT        = 4;
 float EF_DIMLIGHT      = 8;
 float EF_DOUBLESIDED = 32768;
 float EF_NOSELFSHADOW = 65536;
+float EF_DYNAMICMODELLIGHT = 131072;
 float MF_ROCKET  =   1; // leave a trail
 float MF_GRENADE =   2; // leave a trail
 float MF_GIB     =   4; // leave a trail
@@ -346,7 +347,9 @@ void CSQCModel_Effects_Apply(void)
                self.effects |= EF_DOUBLESIDED;
        if(eff & EF_NOSELFSHADOW)
                self.effects |= EF_NOSELFSHADOW;
-       // ignoring EF_UNUSED17, EF_UNUSED18, EF_UNUSED19, EF_RESTARTANIM_BIT, EF_TELEPORT_BIT, EF_LOWPRECISION
+       if(eff & EF_DYNAMICMODELLIGHT)
+               self.renderflags |= RF_DYNAMICMODELLIGHT;
+       // ignoring EF_UNUSED18, EF_UNUSED19, EF_RESTARTANIM_BIT, EF_TELEPORT_BIT, EF_LOWPRECISION
        if(self.csqcmodel_modelflags & MF_ROCKET)
                self.traileffect = particleeffectnum("TR_ROCKET");
        if(self.csqcmodel_modelflags & MF_GRENADE)
index 189a9a96b4e05b42107473897d01db2659fbabe5..0d3088f9cfc3acb83e10eae556dea6acd0d748aa 100644 (file)
@@ -1404,3 +1404,4 @@ void(float effectindex, entity own, vector org_from, vector org_to, vector dir_f
 float trace_networkentity;
 const float RF_FULLBRIGHT      = 256;
 const float RF_NOSHADOW        = 512;
+float RF_DYNAMICMODELLIGHT = 8192;