diff options
| author | Teetime <TeetimeTW@yahoo.de> | 2011-11-23 15:03:59 +0100 |
|---|---|---|
| committer | Teetime <TeetimeTW@yahoo.de> | 2011-11-23 15:03:59 +0100 |
| commit | 43d589cc97ab3eecf70a6fff410af8ae14db35e2 (patch) | |
| tree | 859e6fdcf58a0a017cbb57a7ce1f22652fd48a2c | |
| parent | 0d55f8847c792b9e0b67044f6cebf1d52ae69be1 (diff) | |
| download | zcatch-43d589cc97ab3eecf70a6fff410af8ae14db35e2.tar.gz zcatch-43d589cc97ab3eecf70a6fff410af8ae14db35e2.zip | |
made kill-penalty adjustable
| -rw-r--r-- | src/game/server/gamemodes/zcatch.cpp | 2 | ||||
| -rw-r--r-- | src/game/variables.h | 1 |
2 files changed, 2 insertions, 1 deletions
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 |