This article is a stub. You can help by adding to it.
All entities from the map are spawned and initialised from the MapEntity_ParseAllEntites function within mapentities.cpp, with the pMapData string containing all the relevant entity info. The MapEntity_ParseEntity function takes care of actually spawning an entity and setting up its keyvalues etc.
This text was taken from a post in the VERC Network Forums, you can see the thread here