From 67737800b759f1e1bb177712b87c12def92f4501 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 28 Jul 2015 23:20:01 +0200 Subject: [PATCH] Make all superweapon waypoints blink --- qcsrc/client/waypointsprites.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qcsrc/client/waypointsprites.qc b/qcsrc/client/waypointsprites.qc index b4d5e5392..28da5278d 100644 --- a/qcsrc/client/waypointsprites.qc +++ b/qcsrc/client/waypointsprites.qc @@ -166,6 +166,10 @@ vector drawspritetext(vector o, float ang, float minwidth, vector rgb, float a, float spritelookupblinkvalue(string s) { + if(substring(s, 0, 4) == "wpn-") + if(get_weaponinfo(stof(substring(s, 4, strlen(s)))).spawnflags & WEP_FLAG_SUPERWEAPON) + return 2; + switch(s) { case "ons-cp-atck-neut": return 2; @@ -182,9 +186,6 @@ float spritelookupblinkvalue(string s) case "item-shield": return 2; case "item-fuelregen": return 2; case "item-jetpack": return 2; - case "wpn-fireball": return 2; // superweapon - case "wpn-minstanex": return 2; // superweapon - case "wpn-porto": return 2; // superweapon case "tagged-target": return 2; default: return 1; } -- 2.39.2