Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GameEntityCount = 200000
- local MaxPopulation = 20000
- function NoLimitsMod()
- -- Sets the entity count
- config.MaxGameObjectExCount = GameEntityCount
- config.MaxGameObjectCount = GameEntityCount
- -- Remove the road construction limitations
- road_construction.ReachedLimit = function(x)
- return false
- end
- -- Sets the population
- MigrationMaxCitizens = MaxPopulation
- ImmigrationRandomize = function(y)
- return MulDivRound(y, MaxPopulation - CitizenCount, 375)
- end
- end
- -- Only fire once
- local FiredOnce = false
- -- UA Set Mode
- OnMsg.UASetMode = function(actions,mode)
- if not FiredOnce then
- if(mode == "Boot") then
- FiredOnce = true
- CreateRealTimeThread(function()
- NoLimitsMod()
- OnMsg.MapPermanentObjectsLoaded = function()
- NoLimitsMod()
- end
- end)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement