SERVER: Make instances of lightning.spr FULLBRIGHT

This commit is contained in:
cypress 2024-09-01 19:25:08 -07:00
parent 1138c79519
commit dfd5e6787e
3 changed files with 3 additions and 0 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;