Contagion Guide

Making an INSANE configuration for server for Contagion

Making an INSANE configuration for server

Overview

Why don’t make game more difficult?This guide is about messing with Contagion-specific cvars.

Requirements

  • Your own server
  • Sourcemod installed if you wish (makes administrating much easier)

Create configs

As we gonna mess with cvars you may wish to know what cvars we gonna change. You may find them all here.

Save this as normal config (normal.cfg in game cfg directory):
cg_barricade_ammo 4 cg_barricade_health_easy 720 cg_barricade_health_extreme 400 cg_barricade_health_hard 550 cg_barricade_health_normal 600 cg_door_health_easy 250 cg_door_health_extreme 50 cg_door_health_hard 100 cg_door_health_normal 200 cg_friendly_fire_factor_easy 0.0 cg_friendly_fire_factor_extreme 6.0 cg_friendly_fire_factor_hard 1.0 cg_friendly_fire_factor_normal 0.006 cg_glass_damage_easy 0.0 cg_glass_damage_extreme 12.0 cg_glass_damage_hard 6.0 cg_glass_damage_normal 3.0 cg_grapple_damage_easy 15 cg_grapple_damage_extreme 60 cg_grapple_damage_hard 45 cg_grapple_damage_normal 25 cg_infection_attacked_chance_easy -1 cg_infection_attacked_chance_extreme 20 cg_infection_attacked_chance_hard 8 cg_infection_attacked_chance_normal 3 cg_infection_chance_easy 15 cg_infection_chance_extreme 50 cg_infection_chance_hard 38 cg_infection_chance_normal 25 cg_infection_disabled 0 cg_infection_time_max 140 cg_infection_time_min 50 cg_survivor_accuracy_easy 1.15 cg_survivor_accuracy_extreme 1.45 cg_survivor_accuracy_hard 1.32 cg_survivor_accuracy_normal 1.22 cg_survivor_ai_health_easy 290 cg_survivor_ai_health_extreme 140 cg_survivor_ai_health_hard 190 cg_survivor_ai_health_normal 260 cg_survivor_zombie_damage_factor_easy 0.5 cg_survivor_zombie_damage_factor_extreme 5.0 cg_survivor_zombie_damage_factor_hard 2.0 cg_survivor_zombie_damage_factor_normal 1.0 cg_survivorammoonly 0 cg_zombie_ai_only 0 cg_zombie_damage_factor_easy 1.0 cg_zombie_damage_factor_extreme 0.25 cg_zombie_damage_factor_hard 0.75 cg_zombie_damage_factor_normal 1.0 cg_zombie_health_easy 90 cg_zombie_health_extreme 285 cg_zombie_health_hard 235 cg_zombie_health_normal 175 cg_zombie_lives 7 cg_zombie_riot_health_easy 170 cg_zombie_riot_health_extreme 199 cg_zombie_riot_health_hard 310 cg_zombie_riot_health_normal 225 cg_zombieculltimer 10.0 cg_zombiedamagefactor 0.36 cg_zombiedamageheadshotfactor 7.9 cg_zombiedamagemeleefactor 0.9 cg_zombieminspawndist 960 ch_dkmode 0 ch_nopenope 0 ch_phonebird 0 ch_playerjointime 5 ch_score_draw 50 ch_score_killself 50 ch_score_killsurvivor 20 ch_score_killsurvivoraszombie 20 ch_score_killzombie 3 ch_score_killzombieplayer 10 ch_score_lastman 25
Save this as insane config (insane.cfg in game cfg directory):
cg_barricade_ammo 3 cg_barricade_health_easy 550 cg_barricade_health_extreme 300 cg_barricade_health_hard 475 cg_barricade_health_normal 400 cg_door_health_easy 175 cg_door_health_extreme 10 cg_door_health_hard 60 cg_door_health_normal 100 cg_friendly_fire_factor_easy 1.0 cg_friendly_fire_factor_extreme 10.0 cg_friendly_fire_factor_hard 2.5 cg_friendly_fire_factor_normal 1.5 cg_glass_damage_easy 3.0 cg_glass_damage_extreme 25.0 cg_glass_damage_hard 10.0 cg_glass_damage_normal 7.0 cg_grapple_damage_easy 0 cg_grapple_damage_extreme 0 cg_grapple_damage_hard 0 cg_grapple_damage_normal 0 cg_infection_attacked_chance_easy 50 cg_infection_attacked_chance_extreme 100 cg_infection_attacked_chance_hard 65 cg_infection_attacked_chance_normal 85 cg_infection_chance_easy 50 cg_infection_chance_extreme 100 cg_infection_chance_hard 65 cg_infection_chance_normal 85 cg_infection_disabled 0 cg_infection_time_max 0.02 cg_infection_time_min 0.01 cg_survivor_accuracy_easy 1.15 cg_survivor_accuracy_extreme 1.45 cg_survivor_accuracy_hard 1.32 cg_survivor_accuracy_normal 1.22 cg_survivor_ai_health_easy 290 cg_survivor_ai_health_extreme 140 cg_survivor_ai_health_hard 190 cg_survivor_ai_health_normal 260 cg_survivor_zombie_damage_factor_easy 0 cg_survivor_zombie_damage_factor_extreme 0 cg_survivor_zombie_damage_factor_hard 0 cg_survivor_zombie_damage_factor_normal 0 cg_survivorammoonly 0 cg_zombie_ai_only 0 cg_zombie_damage_factor_easy 0 cg_zombie_damage_factor_extreme 0 cg_zombie_damage_factor_hard 0 cg_zombie_damage_factor_normal 0 cg_zombie_health_easy 120 cg_zombie_health_extreme 375 cg_zombie_health_hard 290 cg_zombie_health_normal 210 cg_zombie_lives 300 cg_zombie_riot_health_easy 170 cg_zombie_riot_health_extreme 199 cg_zombie_riot_health_hard 310 cg_zombie_riot_health_normal 225 cg_zombieculltimer 10.0 cg_zombiedamagefactor 0.36 cg_zombiedamageheadshotfactor 9 cg_zombiedamagemeleefactor 0.9 cg_zombieminspawndist 960 ch_playerjointime 3 ch_score_draw 50 ch_score_killself 50 ch_score_killsurvivor 20 ch_score_killsurvivoraszombie 20 ch_score_killzombie 3 ch_score_killzombieplayer 10 ch_score_lastman 25

Some more cvars non-specific for Contagion

You may wish to play around with this cvars:

NORMAL
mp_allowNPCs 1 mp_flashligh 1 mp_footsteps 1 mp_roundlimit 8 mp_roundtime 0 mp_tkpunish 0 mp_zombieidletimeout 160
“INSANE”
mp_allowNPCs 1 mp_flashligh 0 mp_footsteps 0 mp_roundlimit 16 mp_roundtime 15 mp_tkpunish 1 mp_zombieidletimeout 60

Switching off NPC will make an easier hunt mode, switching off footsteps may be great for hunt too. Making roundtime for escapes will make it less dull.
Well, just play around!

Configs, autostart, sourcemod

Launch servers with this configs

Just add “exec INSANE.cfg” to server.cfg config. It will be executed on server start. If you want switch you server back to normal without shutting it down type exec NORMAL.cfg

Adding configs to sourcemod

Head to Contagioncontagionaddonssourcemodconfigs and edit adminmenu_cfgs.txt
Add some more entries:

“cfg/sourcemod/INSANE.cfg” “INSANE MODE” “cfg/sourcemod/NORMAL.cfg” “NORMAL MODE”

You may also add some cvars like “mp_allowNPCs” to adminmenu_custom.txt to allow admins use them individually if they have no acess to sm_rcon or sm_cvars. Refer here.[wiki.alliedmods.net]

A little example of my own:

“Commands” { “Contagion cvars” { “Difficulty” { “cmd” “difficulty #1” “admin” “sm_kick” “execute” “server” “1” { “type” “list” “Select difficulty” “1” “0” “1.” “Easy” “2” “1” “2.” “Normal” “3” “2” “3.” “Hard” “4” “3” “4.” “Extreme” } } “Switch Infection” { “cmd” “cg_infection_disabled #1” “admin” “sm_kick” “execute” “server” “1” { “type” “onoff” “Title On/Off” } } “Only AI zombie” { “cmd” “cg_zombie_ai_only #1” “admin” “sm_kick” “execute” “server” “1” { “type” “onoff” “Title On/Off” } } “Alltalk” { “cmd” “sv_alltalk #1” “admin” “sm_kick” “execute” “server” “1” { “type” “onoff” } } } }

Wanna test?

I have one server running this configuration sometimes very often. It also have some custom maps from workshop, you may download them from my forum (WIP)[forum.bloodyfoxy.ru].
To connect find it in server browser (named “Bloody Foxy’s [bloodyfoxy.ru] Custom + Default”) or better type in developer console

connect bloodyfoxy.ru:27015

For my other servers visit my Steam group

SteamSolo.com