#include "weaponslist.qh"
-#include <common/weapons/all.qh>
+#include <common/weapons/_all.qh>
.bool disabled;
s = "";
for(i = 0; i < n; ++i)
{
- e = Weapons_from(stof(argv(i)));
+ e = REGISTRY_GET(Weapons, stof(argv(i)));
s = strcat(s, e.m_name, ", ");
}
return substring(s, 0, strlen(s) - 2);
me.focusedItemAlpha = getFadedAlpha(me.focusedItemAlpha, SKINALPHA_LISTBOX_FOCUSED, SKINFADEALPHA_LISTBOX_FOCUSED);
draw_Fill('0 0 0', '1 1 0', SKINCOLOR_LISTBOX_FOCUSED, me.focusedItemAlpha);
}
- e = Weapons_from(stof(argv(i)));
+ e = REGISTRY_GET(Weapons, stof(argv(i)));
string msg = e.m_name;
if(e.spawnflags & WEP_FLAG_MUTATORBLOCKED)
msg = strcat(msg, "*");