To get %w to only show the weapons I want it to instead of all. What do I need to do to modify %w. Ya know, to get it to say possibley GL, RL, LG when I have everything. Instead of SG, SSG, NG, SNG, AXE, FISTS, NUNCHUCKS, RL, LG, HELMET (KEVIN YOUKILIS STYLE)
Thanks
Announcement
Collapse
No announcement yet.
Weapons String Proquake
Collapse
X
-
Wow, why don't I use Qrack..Found what i was looking fer with the goog.
%w is replaced by a comma-separated list of the weapons you have, not including axe or shotgun. You can customize the output by changing the pq_weapons string, which contains the weapon names separated by commas. Default is "SSG:NG:SNG:GL:RL:LG". If there is a weapon you don't want included in your %w bind, don't put anything between the appropriate pair of commas, e.g.
pq_weapons "SSG::SNG:GL:RL:LG"
-
:/ in Qrack I made it so if u use %W (capital W) it prints the weapon in hand... in cmd.c
"say_team I am at %l with my %W and %A"Code://R00k added W for weapon in hand based on pw_weapons.string case 'W': if (cl.stats[STAT_HEALTH] > 0) { int item; char *ch = pq_weapons.string; for (item = IT_SUPER_SHOTGUN ; item <= IT_LIGHTNING ; item *= 2) { if (*ch != ':' && (item == cl.stats[STAT_ACTIVEWEAPON])) { while (*ch && *ch != ':') *dst++ = *ch++; break; } while (*ch && *ch != ':') *ch++; if (*ch) *ch++; if (!*ch) break; } } else dst += sprintf(dst, "%s", pq_noweapons.string); break;
output:
"I am at Mound with my RL and 13 rockets "
Leave a comment:

Leave a comment: