From f0c09030ea7f900872f92979f125324cca94cda1 Mon Sep 17 00:00:00 2001 From: Maik Merten Date: Thu, 5 Aug 2010 18:47:58 +0200 Subject: [PATCH] set classname of assault waypoint sprites to "sprite_waypoint" (instead of having its own classname). The waypoint code checks for the classname when disowning. --- qcsrc/server/assault.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/assault.qc b/qcsrc/server/assault.qc index f5b71b853..c4fe38747 100644 --- a/qcsrc/server/assault.qc +++ b/qcsrc/server/assault.qc @@ -70,7 +70,7 @@ void assault_objective_decrease_use() { return; } - if(other.assault_sprite.classname == "assault_decreaser_sprite") + if(other.assault_sprite.classname == "sprite_waypoint") WaypointSprite_Disown(other.assault_sprite, waypointsprite_deadlifetime); else return; // already activated! cannot activate again! @@ -142,7 +142,7 @@ void target_objective_decrease_activate() spr = WaypointSprite_SpawnFixed("", 0.5 * (ent.absmin + ent.absmax), ent, assault_sprite); spr.assault_decreaser = self; spr.waypointsprite_visible_for_player = assault_decreaser_sprite_visible; - spr.classname = "assault_decreaser_sprite"; + spr.classname = "sprite_waypoint"; WaypointSprite_UpdateRule(spr, assault_attacker_team, SPRITERULE_TEAMPLAY); if(ent.classname == "func_assault_destructible") WaypointSprite_UpdateSprites(spr, "as-defend", "as-destroy", "as-destroy"); -- 2.39.2