Custom populations

NOTE: i wrote this tutorial in shorter form on the Valve Developer Wikipedia.

But if you are a complete beginner with modding at all, i reccomend to read this here. Since i do not use pictures and some needed info on the developer site, unless you read the complete page.


are you creating a campaign and you want your own population?

read this tutorial and you will have a custom population without any bugs!
if you pick the wrong populations.txt the l4d1 infected start to glow in weird colors.

Atention! 
if another map/campaign uses a custom population.txt, too, you might need to deactivate all but the one you want to play

---

you will need:
GCFScape
and a text editor.

1. navigate to "Steam\SteamApps\common\left 4 dead 2\update" and open up pack01_dir.vpk with GCFScape

2. find populaton.txt and extract it somewhere you want.

3. open it up with the text editor. it should look like this:

4. scroll to the very bottom of the population.txt betwheen the last two } add this:
        mypopulation_1
	{
		common_male_tshirt_cargos	30
	}

"mypopulaton_1"                            - the name your pupilation should have
"common_male_tshirt_cargos"    - is the model of the infected
"30"                                                  - is the chance to appear in %. 
100 = 100%                                    - spawns all the time
1 = 1%                                             - ultra rare (Jimmy Gibbs spawns with a 3% chance)

it should look like this now:

do not forget the } at the very end !!!

change the "common_male_tshirt_cargos" to one of the names below, you can also add lines.


Female
common_female01
common_female_formal
common_female_nurse01
common_female_rual01
common_female_tanktop_jeans
common_female_tanktop_jeans_rain
common_female_tanktop_jeans_swamp
common_female_tshirt_skirt
common_female_tshirt_skirt_swamp

Male
common_male01
common_male_baggagehandler_01
common_male_biker
common_male_ceda
common_male_clown
common_male_dressshirt_jeans
common_male_fallen survivor (from "the passing")
common_male_formal
common_male_jimmy
common_male_mud (mudmen from "swamp fever")
common_male_pilot
common_male_polo_jeans
common_male_riot (police guy with armor)
common_male_roadcrew
common_male_roadcrew_rain
common_male_rual01
common_male_suit
common_male_tanktop_jeans
common_male_tanktop_jeans_rain
common_male_tanktop_jeans_swamp
common_male_tanktop_overalls
common_male_tanktop_overalls_rain
common_male_tanktop_overalls_swamp
common_male_tshirt_cargos
common_male_tshirt_cargos_swamp
common_military_male01
common_patient_male01
common_patient_male01_l4d2 (use this one, )
common_police_male01
common_tsaagent_male01
common_worker_male01
common_police_male01

Here on the valve developer site, is a tutorial how you can apply them to a map

Comments