From 867d3fb5dfc4fbf991705441c3bde246b58de2ed Mon Sep 17 00:00:00 2001 From: Alexander Akulich Date: Sat, 18 Nov 2023 04:27:35 +0300 Subject: [PATCH] Make inf_bio_mine_lasers configurable --- src/game/server/infclass/classes/humans/human.cpp | 2 +- src/game/server/infclass/infc_config_variables.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/server/infclass/classes/humans/human.cpp b/src/game/server/infclass/classes/humans/human.cpp index 186e9010..536867ea 100644 --- a/src/game/server/infclass/classes/humans/human.cpp +++ b/src/game/server/infclass/classes/humans/human.cpp @@ -2044,7 +2044,7 @@ void CInfClassHuman::OnBiologistLaserFired(WeaponFireContext *pFireContext) GameWorld()->DestroyEntity(pMine); } - int Lasers = 15; + int Lasers = Config()->m_InfBioMineLasers; int PerLaserDamage = 10; new CBiologistMine(GameServer(), GetPos(), To, GetCID(), Lasers, PerLaserDamage); pFireContext->AmmoConsumed = pFireContext->AmmoAvailable; diff --git a/src/game/server/infclass/infc_config_variables.h b/src/game/server/infclass/infc_config_variables.h index c428d7a5..87560c1e 100644 --- a/src/game/server/infclass/infc_config_variables.h +++ b/src/game/server/infclass/infc_config_variables.h @@ -62,6 +62,7 @@ MACRO_CONFIG_INT(InfMercLove, inf_merc_love, 1, 0, 1, CFGFLAG_SERVER, "Enables l MACRO_CONFIG_INT(InfBarrierLifeSpan, inf_barrier_lifespan, 30, 0, 100, CFGFLAG_SERVER, "Barrier lifespan") MACRO_CONFIG_INT(InfVoodooAliveTime, inf_voodoo_alive_time, 550, 0, 10000, CFGFLAG_SERVER, "How long a voodoo keeps staying alive after being killed (in ms)") MACRO_CONFIG_INT(InfBarrierTimeReduce, inf_barrier_timereduce, 150, 0, 10000, CFGFLAG_SERVER, "Time to remove from a barrier lifespan when an infected dies (centisec)") +MACRO_CONFIG_INT(InfBioMineLasers, inf_bio_mine_lasers, 15, 1, 100, CFGFLAG_SERVER, "Radius of mines") MACRO_CONFIG_INT(InfMineRadius, inf_mine_radius, 46, 0, 1024, CFGFLAG_SERVER, "Radius of mines") MACRO_CONFIG_INT(InfMineLimit, inf_mine_limit, 2, 0, 1024, CFGFLAG_SERVER, "Maximum number of mines per player") MACRO_CONFIG_INT(InfNinjaJump, inf_ninja_jump, 2, 0, 1024, CFGFLAG_SERVER, "Maximum number of katana attacks")