Modular Combat is a role-playing shooter based in the Half-Life universe. There are over 50 modules that can be upgraded at any level, in any combination. Modules give combatants amazing abilities such as flying, teleporting, spawning minions, and shooting flechettes or energy balls.

Report article RSS Feed Modular Combat: Customizing a Server

There are a significant amount of customisatable settings that can be used to make your Modular Combat server feel unique. This article descibes changes to module balance, scoring & levelling rewards, PVM customisation and more.

Posted by FTWinston on Jul 30th, 2009
Intermediate Management.

Many different effects and behaviours in Modular Combat are controlled by ConVars, and the strength, health & spawn frequency of NPCs are controlled by script files. Server admins can adjust these values as they see fit, although changing any MC convars (but not regular hl2mp convars) will cause the server name to have [Modified] appended to it.

Adjusting module balance

Module cooldown, energy cost, damage and more can all be adjusted through convars. To find the convars related to a module, the naming convension is mod__.

For values that change with level, there will be two convars: one ending in _base and the other ending in _scale. The formula used in handling these convars is: base value + (scale value * module level).

In addition to these, for legacy reasons, the 5 "base player stat" modules still use the following base values (their scale values are named according to the convention)
mc_player_health_base, mc_player_armor_base, mc_player_aux_base, mc_player_sprint_base
mc_player_clipscale_base

Controlling PVM

pvm_difficulty - scales all monster stats by this value - an easy way to make everything easier / harder
pvm_monsters_base - the base number of monsters spawned
pvm_monsters_per_player - the extra number of monsters spawned, per player
pvm_max_monsters - monsters will not spawn if there are this many (or more) present
pvm_max_monster_level_offset_below_player_average - if the average player level is 5 and this value is 1, then the lowest monster level will be 4, even if there are level 0 players.
pvm_wave_interval - pvm monsters will respawn at this frequency
pvm_max_antlionguards - the maximum number of antlion guards that can exist simultaneously

Adjusting NPC stats

The stats for NPCs are controlled by keyvalues script files in the modularcombat/pvm directory. There is a different script file for each NPC type, and different values for each level, up to 20. Beyond level 20, stats are extrapolated based on the difference between levels 19 & 20 stats.

As of 1.75, there are also ExperienceScale and RandomSpawnFrequency values in these files. Setting RandomSpawnFrequency to zero will stop an NPC from ever being used as PVM monsters. While these can be edited by hand, the updated version of MonsterDifficultyConfig.exe that lies in this folder in 1.75 should make editing stat values across all levels much less tiresome. Its usage should be self-explanatory.

Affecting player advancement

mc_player_startlevel - the level that new characters start at, with appropriate number of module points
mc_perlevel_modulepoints - how many module points are awarded per level. Including level zero!
mc_experience_scale - allows scaling up/down of all player experience
mc_experience_monster - scaling applied to experience from killing a monster, compared to a player
mc_experience_minion - scaling applied to experience from killing a minion, compared to a player
mc_faction_win_experience - the experience awarded to each player of the winning faction in a team game
ally_experience_boost_fraction - how much extra experience is awarded for being near allies in team games
pvm_buff_interval_aperture - how frequently the armor regen effect ticks when aperture players are near each other in a team game
pvm_buff_interval_resistance - how frequently the health regen effect ticks when aperture players are near each other in a team game
pvm_buff_combine_scale - the damage bonus that combine players get for being near each other in team games
mc_spawn_protect_time - how long players will be invulnerable for after spawning

Limiting vote options

mc_can_vote_gamemode - 1 by default, 0 to disable game mode voting
mc_can_vote_map - 1 by default, 0 to disable map voting
mc_vote_duration - how long a vote lasts for
mc_vote_seperation - how long after one vote is complete before another can be started (new in 1.76)

Post comment Comments
Ghost747
Ghost747 Jul 30 2009, 2:01pm says:

love it now there is going to be 10 antlion guards

+1 vote     reply to comment
yarow12
yarow12 Apr 5 2011, 9:29pm replied:

...You bastard. =_-"

+1 vote     reply to comment
sasasa
sasasa May 22 2011, 5:28am replied:

easy

+1 vote     reply to comment
PAL-18 Creator
PAL-18 Oct 31 2011, 4:08pm says:

Is there any CVARS that let you disable modules? Laser module crashes my server.

+1 vote   reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Half-Life 2: Deathmatch Icon
Platform
Windows
Developer
Team ModCom
Contact
Send Message
Official Page
ModularCombat.net
Release Date
Released Jun 18, 2008
Mod Watch
Track this mod
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Mods
Modular Combat (Half-Life 2: Deathmatch)
Modular Combat Half-Life 2: Deathmatch - Multiplayer & Co-op First Person Shooter
Related Games
Half-Life 2
Half-Life 2 Single & Multiplayer First Person Shooter
Related Groups
Mod Fidelity
Mod Fidelity Developer & Publisher with 4 members