From b0f30c38240e03bb6e5fe0843bd773f94d707ddb Mon Sep 17 00:00:00 2001 From: MotoLegacy Date: Sat, 7 Dec 2024 00:53:47 -0800 Subject: [PATCH] SERVER: Set Waypoint sprites to EF_FULLBRIGHT explicitly --- source/server/ai/fte/waypoints_core.qc | 5 ++++- source/server/ai/pathfind_code.qc | 1 + source/server/ai/standard/waypoints_func.qc | 1 + source/server/ai/zombie_core.qc | 1 + source/server/utilities/map_compatibility.qc | 1 + 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/source/server/ai/fte/waypoints_core.qc b/source/server/ai/fte/waypoints_core.qc index 7f50908..13d7692 100644 --- a/source/server/ai/fte/waypoints_core.qc +++ b/source/server/ai/fte/waypoints_core.qc @@ -63,6 +63,7 @@ void () Create_New_Waypoint = setmodel(new_way, "models/way/normal_way.spr"); new_way.classname = "waypoint"; + new_way.effects = EF_FULLBRIGHT; new_way.waynum = ftos(way_count + 1); new_way.targetname = strzone(new_way.targetname); @@ -499,7 +500,7 @@ void (vector here, float which, string special, string trg, string trg2, string if (cvar("waypoint_mode")) setmodel(new_way, "models/way/normal_way.spr"); new_way.classname = "waypoint"; - + new_way.effects = EF_FULLBRIGHT; new_way.waynum = ftos(which); dprint ("Created waypoint "); dprint (new_way.waynum); @@ -580,6 +581,7 @@ void() Load_Waypoints if (h == "waypoint") { new_way = spawn(); new_way.solid = SOLID_TRIGGER; + new_way.effects = EF_FULLBRIGHT; new_way.model = "models/way/normal_way.spr"; setmodel(new_way, "models/way/normal_way.spr"); new_way.classname = "waypoint"; @@ -740,6 +742,7 @@ void() Load_Waypoints_Legacy entity new_way = spawn(); new_way.solid = SOLID_TRIGGER; new_way.touch = creator_way_touch; + new_way.effects = EF_FULLBRIGHT; new_way.classname = "waypoint"; new_way.waynum = ftos(which); new_way.targets[0] = trg; diff --git a/source/server/ai/pathfind_code.qc b/source/server/ai/pathfind_code.qc index b124351..2e93d34 100644 --- a/source/server/ai/pathfind_code.qc +++ b/source/server/ai/pathfind_code.qc @@ -399,6 +399,7 @@ void LoadWaypointData() { new_way.solid = SOLID_TRIGGER; setmodel(new_way, "models/way/normal_way.spr"); + new_way.effects = EF_FULLBRIGHT; new_way.classname = "waypoint"; new_way.touch = creator_way_touch; diff --git a/source/server/ai/standard/waypoints_func.qc b/source/server/ai/standard/waypoints_func.qc index b04a3de..e34b0eb 100644 --- a/source/server/ai/standard/waypoints_func.qc +++ b/source/server/ai/standard/waypoints_func.qc @@ -214,6 +214,7 @@ void () Create_New_Waypoint = setmodel(new_way, "models/way/normal_way.spr"); new_way.classname = "waypoint"; + new_way.effects = EF_FULLBRIGHT; tempe = find (world, classname, "waypoint"); while (tempe) diff --git a/source/server/ai/zombie_core.qc b/source/server/ai/zombie_core.qc index 0ffd055..c04a29f 100644 --- a/source/server/ai/zombie_core.qc +++ b/source/server/ai/zombie_core.qc @@ -1654,6 +1654,7 @@ void(float i) spawnSingleZombEnt = zSpawn.goaldummy = spawn(); if (cvar("developer")) { setmodel(zSpawn.goaldummy, "models/way/normal_way.spr"); + zSpawn.goaldummy.effects = EF_FULLBRIGHT; } diff --git a/source/server/utilities/map_compatibility.qc b/source/server/utilities/map_compatibility.qc index 4934da0..64769ab 100644 --- a/source/server/utilities/map_compatibility.qc +++ b/source/server/utilities/map_compatibility.qc @@ -110,6 +110,7 @@ void() Compat_TryLoadBetaWaypoints = if (waypoint_mode) { entity new_way = spawn(); new_way.solid = SOLID_TRIGGER; + new_way.effects = EF_FULLBRIGHT; new_way.touch = creator_way_touch; new_way.classname = "waypoint"; new_way.waynum = ftos(way_id);