SERVER: Set Waypoint sprites to EF_FULLBRIGHT explicitly

This commit is contained in:
MotoLegacy 2024-12-07 00:53:47 -08:00
parent 28b25b42dc
commit b0f30c3824
5 changed files with 8 additions and 1 deletions

View file

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

View file

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

View file

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

View file

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

View file

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