From: Rudolf Polzer Date: Sat, 31 Dec 2011 13:32:01 +0000 (+0100) Subject: support EF_DYNAMICMODELLIGHT in csqcmodel X-Git-Tag: xonotic-v0.6.0~189^2~15 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2878eb9811e6668def6681408dbc5e906d982a83;p=xonotic%2Fxonotic-data.pk3dir.git support EF_DYNAMICMODELLIGHT in csqcmodel --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index fc734b2c8..145218bce 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -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) diff --git a/qcsrc/dpdefs/csprogsdefs.qc b/qcsrc/dpdefs/csprogsdefs.qc index 189a9a96b..0d3088f9c 100644 --- a/qcsrc/dpdefs/csprogsdefs.qc +++ b/qcsrc/dpdefs/csprogsdefs.qc @@ -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;