From ec0f6d1f179036580fb19d6a85818cf9aa726a22 Mon Sep 17 00:00:00 2001 From: Teetime Date: Mon, 4 Feb 2013 23:30:35 +0100 Subject: Changed weapons a bit. Now you are able to set endless grenade ammo and customize the ammo for mode 2 --- src/game/server/gamemodes/zcatch.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/game/server/gamemodes/zcatch.cpp') diff --git a/src/game/server/gamemodes/zcatch.cpp b/src/game/server/gamemodes/zcatch.cpp index 42c241f9..4a810e04 100644 --- a/src/game/server/gamemodes/zcatch.cpp +++ b/src/game/server/gamemodes/zcatch.cpp @@ -174,16 +174,16 @@ void CGameController_zCatch::OnCharacterSpawn(class CCharacter *pChr) break; case 2: /* All Weapons */ pChr->GiveWeapon(WEAPON_HAMMER, -1); - pChr->GiveWeapon(WEAPON_GUN, 6); - pChr->GiveWeapon(WEAPON_GRENADE, 6); - pChr->GiveWeapon(WEAPON_SHOTGUN, 6); - pChr->GiveWeapon(WEAPON_RIFLE, 6); + pChr->GiveWeapon(WEAPON_GUN, g_Config.m_SvWeaponsAmmo); + pChr->GiveWeapon(WEAPON_GRENADE, g_Config.m_SvWeaponsAmmo); + pChr->GiveWeapon(WEAPON_SHOTGUN, g_Config.m_SvWeaponsAmmo); + pChr->GiveWeapon(WEAPON_RIFLE, g_Config.m_SvWeaponsAmmo); break; case 3: /* Hammer */ pChr->GiveWeapon(WEAPON_HAMMER, -1); break; case 4: /* Grenade */ - pChr->GiveWeapon(WEAPON_GRENADE, g_Config.m_SvGrenadeBullets); + pChr->GiveWeapon(WEAPON_GRENADE, g_Config.m_SvGrenadeEndlessAmmo ? -1 : g_Config.m_SvWeaponsAmmo); break; case 5: /* Ninja */ pChr->GiveNinja(); -- cgit 1.4.1