From dfd5e6787e314abdfdbb8be7d730df65c636e603 Mon Sep 17 00:00:00 2001 From: cypress Date: Sun, 1 Sep 2024 19:25:08 -0700 Subject: [PATCH] SERVER: Make instances of lightning.spr FULLBRIGHT --- source/server/ai/dog_core.qc | 1 + source/server/entities/machines.qc | 1 + source/server/weapons/tesla.qc | 1 + 3 files changed, 3 insertions(+) diff --git a/source/server/ai/dog_core.qc b/source/server/ai/dog_core.qc index 1db2dff..1dde75b 100644 --- a/source/server/ai/dog_core.qc +++ b/source/server/ai/dog_core.qc @@ -403,6 +403,7 @@ void(entity where) spawn_dog_lightning = dogsprite = spawn(); setmodel(dogsprite, "models/sprites/lightning.spr"); setorigin(dogsprite, where.origin); + dogsprite.effects = EF_FULLBRIGHT; dogsprite.owner = where; dogsprite.think = dogsprite_think; dogsprite.nextthink = time + 0.05; diff --git a/source/server/entities/machines.qc b/source/server/entities/machines.qc index d370494..58621f6 100644 --- a/source/server/entities/machines.qc +++ b/source/server/entities/machines.qc @@ -150,6 +150,7 @@ void(vector where, float time_alive) SpawnSpark = entity spark = spawn(); setmodel(spark, "models/sprites/lightning.spr"); setorigin(spark, where); + spark.effects = EF_FULLBRIGHT; spark.think = SparkThink; spark.nextthink = time + 0.05; spark.ltime = time + time_alive; diff --git a/source/server/weapons/tesla.qc b/source/server/weapons/tesla.qc index b6508e2..21571a9 100644 --- a/source/server/weapons/tesla.qc +++ b/source/server/weapons/tesla.qc @@ -49,6 +49,7 @@ void(vector pos) tesla_spark = { local entity lightning = spawn(); setmodel(lightning, "models/sprites/lightning.spr"); setorigin(lightning, pos); + lightning.effects = EF_FULLBRIGHT; lightning.think = tesla_spark_think; lightning.nextthink = time + 0.05; lightning.ltime = time + 1;