X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fitems.qc;h=c961895d95c157aac7ad2439541f9babbd82f557;hb=f2584dd7962fa7c9e37402c9b29d02e94ee9975a;hp=1282d428af96e139049298a6bd2630cf9437d5e8;hpb=6c4aca14b76d71f2ebabb059cd1ee30f6cb7c790;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items.qc b/qcsrc/common/items.qc index 1282d428a..c961895d9 100644 --- a/qcsrc/common/items.qc +++ b/qcsrc/common/items.qc @@ -43,7 +43,7 @@ void register_weapons_done() dummy_weapon_info.weapon = 0; // you can recognize dummies by this WEPSET_CLEAR_E(dummy_weapon_info); dummy_weapon_info.netname = ""; - dummy_weapon_info.message = "@!#%'n Tuba"; + dummy_weapon_info.message = "AOL CD Thrower"; dummy_weapon_info.items = 0; dummy_weapon_info.weapon_func = w_null; dummy_weapon_info.mdl = ""; @@ -172,3 +172,13 @@ void W_RandomWeapons(entity e, float n) } WEPSET_COPY_EA(e, result); } + +string W_Name(float weaponid) +{ + return (get_weaponinfo(weaponid)).message; +} + +float W_AmmoItemCode(float wpn) +{ + return (get_weaponinfo(wpn)).items & IT_AMMO; +}