From 43d589cc97ab3eecf70a6fff410af8ae14db35e2 Mon Sep 17 00:00:00 2001 From: Teetime Date: Wed, 23 Nov 2011 15:03:59 +0100 Subject: made kill-penalty adjustable --- src/game/server/gamemodes/zcatch.cpp | 2 +- src/game/variables.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/server/gamemodes/zcatch.cpp b/src/game/server/gamemodes/zcatch.cpp index 2f373e84..6da915db 100644 --- a/src/game/server/gamemodes/zcatch.cpp +++ b/src/game/server/gamemodes/zcatch.cpp @@ -92,7 +92,7 @@ int CGameController_zCatch::OnCharacterDeath(class CCharacter *pVictim, class CP { //Punish selfkill/death if(WeaponID == WEAPON_SELF || WeaponID == WEAPON_WORLD) - pVictim->GetPlayer()->m_Score -= 15; + pVictim->GetPlayer()->m_Score -= g_Config.m_SvKillPenalty; } for(int i=0; i < MAX_CLIENTS; i++) diff --git a/src/game/variables.h b/src/game/variables.h index 0277c9ad..79df19fb 100644 --- a/src/game/variables.h +++ b/src/game/variables.h @@ -108,4 +108,5 @@ MACRO_CONFIG_INT(SvAnticamperRange, sv_anticamper_range, 200, 0, 1000, CFGFLAG_S MACRO_CONFIG_INT(SvVoteForceReason, sv_vote_forcereason, 1, 0, 1, CFGFLAG_SERVER, "Allow only votes with a reason (except settings)") MACRO_CONFIG_INT(SvGrenadeMinDamage, sv_grenade_min_damage, 4, 1, 6, CFGFLAG_SERVER, "How much damage the grenade must do to kill the player (depends how far away it explodes)") MACRO_CONFIG_INT(SvSuicideTime, sv_suicide_time, 15, 0, 60, CFGFLAG_SERVER, "Minimum time between suicides. 0 to forbid suicides completely") +MACRO_CONFIG_INT(SvKillPenalty, sv_kill_penalty, 5, 0, 50, CFGFLAG_SERVER, "The amount of points which the score will be decreased on each suicide") #endif -- cgit 1.4.1