From: Mircea Kitsune Date: Sun, 26 Sep 2010 00:06:29 +0000 (+0300) Subject: Also complain when reaching the limit, so the player knows why he can't place any... X-Git-Tag: xonotic-v0.1.0preview~307^2~33^2~41 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b9755c71de98c04736556fc4459d5ed3cdc9a28f;p=xonotic%2Fxonotic-data.pk3dir.git Also complain when reaching the limit, so the player knows why he can't place any more mines. --- diff --git a/qcsrc/server/w_minelayer.qc b/qcsrc/server/w_minelayer.qc index 7884ea57c..de65da561 100644 --- a/qcsrc/server/w_minelayer.qc +++ b/qcsrc/server/w_minelayer.qc @@ -149,7 +149,12 @@ void W_Mine_Attack (void) self.mine_number += 1; if(self.mine_number >= cvar("g_balance_minelayer_limit")) + { + // the refire delay keeps this message from being spammed + sprint(self, strcat("You cannot place more than ^2", cvar_string("g_balance_minelayer_limit"), " ^7mines at a time\n") ); + play2(self, "weapons/unavailable.wav"); return; + } } if not(self.items & IT_UNLIMITED_WEAPON_AMMO)