From: terencehill Date: Tue, 28 Jul 2015 21:20:01 +0000 (+0200) Subject: Make all superweapon waypoints blink X-Git-Tag: xonotic-v0.8.1~12^2~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=67737800b759f1e1bb177712b87c12def92f4501;p=xonotic%2Fxonotic-data.pk3dir.git Make all superweapon waypoints blink --- 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; }