From 2878eb9811e6668def6681408dbc5e906d982a83 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 31 Dec 2011 14:32:01 +0100 Subject: [PATCH] support EF_DYNAMICMODELLIGHT in csqcmodel --- qcsrc/client/csqcmodel_hooks.qc | 5 ++++- qcsrc/dpdefs/csprogsdefs.qc | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.2