X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fwaypoints.qc;h=8f50d0276a6efb67158ba9164649edbdec387c70;hb=81b0f2bc5760bb652515453ac450f2822a98b725;hp=957f2478d2e44a6f20ac2f0badf84d2460b69884;hpb=ef74e1ba8e890befb4a4892a96d244a66c05fd48;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/waypoints.qc b/qcsrc/server/bot/waypoints.qc index 957f2478d..8f50d0276 100644 --- a/qcsrc/server/bot/waypoints.qc +++ b/qcsrc/server/bot/waypoints.qc @@ -66,7 +66,7 @@ entity waypoint_spawn(vector m1, vector m2, float f) { m1 = w.mins; m2 = w.maxs; - setmodel(w, "models/runematch/rune.mdl"); w.effects = EF_LOWPRECISION; + setmodel(w, MDL_WAYPOINT); w.effects = EF_LOWPRECISION; setsize(w, m1, m2); if (w.wpflags & WAYPOINTFLAG_ITEM) w.colormod = '1 0 0'; @@ -269,7 +269,7 @@ void waypoint_schedulerelink(entity wp) vector m1, m2; m1 = wp.mins; m2 = wp.maxs; - setmodel(wp, "models/runematch/rune.mdl"); wp.effects = EF_LOWPRECISION; + setmodel(wp, MDL_WAYPOINT); wp.effects = EF_LOWPRECISION; setsize(wp, m1, m2); if (wp.wpflags & WAYPOINTFLAG_ITEM) wp.colormod = '1 0 0'; @@ -293,8 +293,8 @@ void waypoint_schedulerelink(entity wp) } // spawnfunc_waypoint map entity -void spawnfunc_waypoint() -{SELFPARAM(); +spawnfunc(waypoint) +{ setorigin(self, self.origin); // schedule a relink after other waypoints have had a chance to spawn waypoint_clearlinks(self);