]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
wpeditor unreachable: properly show player models at spawnopoints that aren't linked...
authorterencehill <piuntn@gmail.com>
Tue, 2 Mar 2021 15:39:49 +0000 (16:39 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 2 Mar 2021 15:39:49 +0000 (16:39 +0100)
qcsrc/server/bot/default/waypoints.qc

index 12bf39fa0c7d7fc348c549872b008279b7b7a2ed..cd74ae54474743506f277c4997f14ced974557d9 100644 (file)
@@ -88,11 +88,11 @@ void waypoint_unreachable(entity pl)
                        LOG_INFO("spawn without waypoint: ", etos(it), " ", vtos(it.origin), "\n");
                        it.spawnpointmodel.effects |= EF_NODEPTHTEST;
                        _setmodel(it.spawnpointmodel, pl.model);
-                       it.spawnpointmodel.frame = pl.frame;
+                       it.spawnpointmodel.frame = ANIM_idle.m_id;
                        it.spawnpointmodel.skin = pl.skin;
-                       it.spawnpointmodel.colormap = pl.colormap;
-                       it.spawnpointmodel.colormod = pl.colormod;
-                       it.spawnpointmodel.glowmod = pl.glowmod;
+                       it.spawnpointmodel.colormap = 1024 + 68;
+                       it.spawnpointmodel.glowmod = '1 0 0';
+                       it.spawnpointmodel.angles = it.angles;
                        setsize(it.spawnpointmodel, PL_MIN_CONST, PL_MAX_CONST);
                        j++;
                }