From d627ff1528a313c3fe5e9187a733daa1ed48e907 Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 18 Jan 2017 18:13:42 +0200 Subject: [PATCH] Allow incresed charger capacity in coop --- dlls/multiplay_gamerules.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/multiplay_gamerules.cpp b/dlls/multiplay_gamerules.cpp index 2ebb4c10..ae52372b 100644 --- a/dlls/multiplay_gamerules.cpp +++ b/dlls/multiplay_gamerules.cpp @@ -265,7 +265,8 @@ void CHalfLifeMultiplay::RefreshSkillData( void ) // override some values for multiplay. // suitcharger - gSkillData.suitchargerCapacity = 30; + if( !mp_coop.value ) + gSkillData.suitchargerCapacity = 30; // Crowbar whack gSkillData.plrDmgCrowbar = 25; @@ -1296,12 +1297,12 @@ Vector CHalfLifeMultiplay::VecAmmoRespawnSpot( CBasePlayerAmmo *pAmmo ) //========================================================= float CHalfLifeMultiplay::FlHealthChargerRechargeTime( void ) { - return 60; + return cvar_iresptime.value * 2; } float CHalfLifeMultiplay::FlHEVChargerRechargeTime( void ) { - return 30; + return cvar_iresptime.value; } //=========================================================