Skip to content

Commit

Permalink
Make inf_bio_mine_lasers configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Dec 2, 2023
1 parent ad61af1 commit 867d3fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/infclass/classes/humans/human.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/game/server/infclass/infc_config_variables.h
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 867d3fb

Please sign in to comment.