From 10248a1517a8876bb1ed3761156c3a82b8d3d1a9 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 24 Jul 2016 14:49:29 +1000 Subject: [PATCH] Reduce weapon impulse verbosity --- qcsrc/common/weapons/all.qh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/all.qh b/qcsrc/common/weapons/all.qh index dd691a692..fa9d64ab8 100644 --- a/qcsrc/common/weapons/all.qh +++ b/qcsrc/common/weapons/all.qh @@ -299,6 +299,7 @@ REGISTRY_CHECK(Weapons) STATIC_INIT(register_weapons_done) { + string inaccessible = ""; FOREACH(Weapons, true, { WepSet set = it.m_wepset = _WepSet_FromWeapon(it.m_id = i); WEPSET_ALL |= set; @@ -309,8 +310,9 @@ STATIC_INIT(register_weapons_done) if (imp <= WEP_IMPULSE_END) localcmd(sprintf("alias weapon_%s \"impulse %d\"\n", it.netname, imp)); else - LOG_TRACEF("Impulse limit exceeded, weapon will not be directly accessible: %s\n", it.netname); + inaccessible = strcat(inaccessible, "\n", it.netname); }); + if (inaccessible) LOG_TRACEF("Impulse limit exceeded, weapon(s) will not be directly accessible: %s\n", inaccessible); #ifdef CSQC FOREACH(Weapons, true, it.wr_init(it)); #endif -- 2.39.2